Class MapEditor
Entity for edit the map in run-time
Constructors
MapEditor()
Declaration
public MapEditor()
Fields
SETTING_QUICK_PLAYER_DROP
ID for send/receive remote setting with the engine
Declaration
public const int SETTING_QUICK_PLAYER_DROP = 921761
SETTING_SHOW_BEHIND
ID for send/receive remote setting with the engine
Declaration
public const int SETTING_SHOW_BEHIND = 921762
SETTING_SHOW_GRID_GIZMOS
ID for send/receive remote setting with the engine
Declaration
public const int SETTING_SHOW_GRID_GIZMOS = 921764
SETTING_SHOW_STATE
ID for send/receive remote setting with the engine
Declaration
public const int SETTING_SHOW_STATE = 921763
TYPE_ID
Map editor's type id
Declaration
public static readonly int TYPE_ID
Properties
BackgroundRect
Rect position of the background part in global space
Declaration
public override IRect BackgroundRect { get; }
Overrides
CurrentZ
Current position Z value for the camera view
Declaration
public int CurrentZ { get; }
Instance
Single instance of the map editor
Declaration
public static MapEditor Instance { get; }
IsActived
True if the map editor entity is actived
Declaration
public static bool IsActived { get; }
IsEditing
True if the map editor is in edit mode
Declaration
public static bool IsEditing { get; }
IsEditorNavigating
True if the map editor entity is in navigating mode
Declaration
public static bool IsEditorNavigating { get; }
IsPlaying
True if the map editor entity is in play mode
Declaration
public static bool IsPlaying { get; }
Methods
OnActivated()
This function is called when entity enter the stage
Declaration
public override void OnActivated()
Overrides
Save(bool)
Require save the data
Declaration
public override void Save(bool forceSave = false)
Parameters
Type | Name | Description |
---|---|---|
bool | forceSave | True if this save performs without dirty checks |
Overrides
SetViewZ(int)
Set view position Z for map editor
Declaration
public void SetViewZ(int newZ)
UpdateWindowUI()
Declaration
public override void UpdateWindowUI()