public override void OnRemoveBehaviour() { if (this._isMultiplayer) { GameNetwork.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Remove); } GameNetwork.TerminateClientSide(); this.Mission.Recorder.ClearRecordBuffers(); }
public override void OnBehaviourInitialize() { base.OnBehaviourInitialize(); if (this._isMultiplayer) { GameNetwork.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Add); } MBCommon.CurrentGameType = MBCommon.GameType.SingleReplay; GameNetwork.InitializeClientSide((string)null, 0, -1, -1); this.Mission.Recorder.RestoreRecordFromFile(this.FileName); }