◆ OnGameModeEnded()
| void WorldEditorPlugin.OnGameModeEnded |
( |
| ) |
|
◆ OnGameModeStarted()
| void WorldEditorPlugin.OnGameModeStarted |
( |
string | worldName, |
|
|
string | gameMode, |
|
|
bool | playFromCameraPos, |
|
|
vector | cameraPosition, |
|
|
vector | cameraAngles ) |
◆ OnWorldEditWindowDataDropped()
| bool WorldEditorPlugin.OnWorldEditWindowDataDropped |
( |
int | windowType, |
|
|
int | posX, |
|
|
int | posY, |
|
|
string | dataType, |
|
|
array< string > | data ) |
Called when user dropped some kind of data into a world edit window.
Plugins can completely reimplement default editor funtionality using WorldEditorAPI
- Parameters
-
| windowType | Type of a window where data were dropped. Values represent Perpective, Top, Right, Back views |
| posX | Horizontal window position |
| posY | Vertical window position |
| dataType | Type of dropped data. At the moment we support "WorldEditor/EntityType" and "Workbench/ResourceFiles" values |
| data | Depends on dataType. If dataType is "WorldEditor/EntityType" then data[0] contains a className. If dataType is "Workbench/ResourceFiles" then it contains one or more registered resource names |
The documentation for this interface was generated from the following file:
- GameLib/generated/WorkbenchAPI/Plugins/WorldEditorPlugin.c