PlaceObjects

From SIMboxWiki
Jump to navigation Jump to search

Description

Use the function PlaceObjects for rapid positioning of an object list.

Syntax

ZS_DECL ZsRET ZSAPI PlaceObjects(

UINT nSize,
const zsObjectEntry* pObjList
);

Parameters

UINT nSize

[in] Number of elements (objects) in the array.

const zsObjectEntry* pObjList

[in] Pointer to an array of zsObjectEntry structures.

Return Value

On success, zsOK (zero) is returned, otherwise an error code is returned.

Remarks

Use this function instead of sifting through objects and setting each one's position individually. This saves a lot of time.

See also: zsObjectEntry, SetObjectPos