Aw terrain delete all

From ActiveWiki
Jump to: navigation, search


Minimum requirements
Added in version 3.3
SDKbuild 24


int aw_terrain_delete_all (void)

Description

Deletes all terrain in a world.

Callback

AW_CALLBACK_TERRAIN_DELETE_ALL_RESULT

Notes

This method deletes all terrain data in a world. The terrain is reset to its default state: a flat plain of elevation 0, using terrain texture 0.

Arguments

None

Argument attributes

None

Return values

RC_SUCCESS
RC_NOT_INITIALIZED
RC_NO_INSTANCE
RC_NO_CONNECTION
The connection to the world is down.
RC_UNAUTHORIZED
Only world server administration instances or those owned by a caretaker (i.e. aw_bool (AW_WORLD_CARETAKER_CAPABILITY) returns 1) may use this method.

Returned attributes

None

See also