10 protected bool m_bAutoInitEditor;
17 protected int m_iPersistentGameMasterPlayerID;
29 return m_GameMasterTarget;
39 votingManager.StartVoting(
EVotingType.EDITOR_IN, editorManager.GetPlayerID());
50 if (editorManager.IsLimited())
53 SCR_HintSequenceComponent hintSequence = SCR_HintSequenceComponent.Cast(FindComponent(SCR_HintSequenceComponent));
55 GetGame().GetCallqueue().CallLater(hintSequence.StartSequence, 1000);
60 editorManager.SetAutoInit(m_bAutoInitEditor);
65 protected void OnLimitedChanged(
bool isLimited)
68 if (!editorManager)
return;
70 int playerID = editorManager.GetPlayerID();
75 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_PLAYER_NO_LONGER_GM, playerID);
80 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_PLAYER_BECAME_GM, playerID);
83 protected void OnPlayerTerminated(
int playerId)
89 if (!playerController || !playerController.IsPossessing())
96 override void OnPlayerKilled(
int playerId, IEntity playerEntity, IEntity killerEntity, notnull
Instigator killer)
98 OnPlayerTerminated(playerId);
99 super.OnPlayerKilled(playerId, playerEntity, killerEntity, killer);
101 override void OnPlayerDeleted(
int playerId, IEntity player)
103 OnPlayerTerminated(playerId);
104 super.OnPlayerDeleted(playerId, player);
106 override void OnGameStart()
110 if (RplSession.Mode() == RplMode.Client || !m_Core)
113 m_Core.Event_OnEditorManagerCreatedServer.Insert(OnEditorManagerCreatedServer);
114 m_Core.Event_OnEditorManagerDeletedServer.Insert(OnEditorManagerDeletedServer);
117 if (localEditorManager)
118 OnEditorManagerCreatedServer(localEditorManager);
122 statsApi.EditorStart();
124 override void OnGameEnd()
126 if (RplSession.Mode() != RplMode.Client)
130 statsApi.EditorClosed();
140 m_Core.Event_OnEditorManagerInitOwner.Insert(OnEditorManagerInitOwner);
146 editorManager.GetOnLimitedChange().Remove(OnLimitedChanged);