TRoot.CreateWorld

Function CreateWorld(Width, Height: Integer): TWorld;
The newly created world initiates all its required system objects and automatically appends itself to the list of worlds the user can choose from.

Worlds must have height and width that are multiples of 32 (to satisfy the region system). If the size does not fit this requirement, it will be rounded up to a maximum of 256.

Example: var D: TWorld; begin D := Root.CreateWorld(64, 96); D.Name := 'Courtyard of King Randolf'; end;