Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WorldEditorPlugin Interface Reference
Inheritance diagram for WorldEditorPlugin:
[legend]

Public Member Functions

void OnGameModeStarted (string worldName, string gameMode, bool playFromCameraPos, vector cameraPosition, vector cameraAngles)
 
void OnGameModeEnded ()
 
bool 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.
 
- Public Member Functions inherited from WorkbenchPlugin
void Run ()
 
void RunCommandline ()
 
void Configure ()
 
void OnResourceContextMenu (notnull array< ResourceName > resources)
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Member Function Documentation

◆ OnGameModeEnded()

void WorldEditorPlugin.OnGameModeEnded ( )

Implemented in PeerPlugin.

◆ OnGameModeStarted()

void WorldEditorPlugin.OnGameModeStarted ( string  worldName,
string  gameMode,
bool  playFromCameraPos,
vector  cameraPosition,
vector  cameraAngles 
)

Implemented in PeerPlugin.

◆ 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
windowTypeType of a window where data were dropped. Values represent Perpective, Top, Right, Back views
posXHorizontal window position
posYVertical window position
dataTypeType of dropped data. At the moment we support "WorldEditor/EntityType" and "Workbench/ResourceFiles" values
dataDepends 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: