protected override void Execute(IOnlineConnection Host) { FightingZone NewGame = new FightingZone(Owner); GameRules Rules = new MissionGameRules(Room, NewGame); NewGame.Rules = Rules; NewGame.ListGameScreen = ListGameScreen; NewGame.PushScreen(new LoadingScreen(NewGame, Owner)); Dictionary <string, OnlineScript> DicNewScript = OnlineHelper.GetTripleThunderScriptsClient(Owner); Host.AddOrReplaceScripts(DicNewScript); }
protected void EndGame() { if (Map.IsServer) { Map.GameGroup.SetGame(null); foreach (IOnlineConnection ActivePlayer in Map.GameGroup.Room.ListOnlinePlayer) { ActivePlayer.IsGameReady = false; ActivePlayer.Send(new GameEndedScriptServer()); } } else if (Map.IsOfflineOrServer) { Map.PushScreen(new GameEndBattleScreen(Map)); } }
protected override void Execute(IOnlineConnection Host) { FightingZone NewGame = new FightingZone(Owner); GameRules Rules = new BattleGameRules(Room, NewGame); NewGame.Rules = Rules; NewGame.ListGameScreen = ListGameScreen; NewGame.PushScreen(new LoadingScreen(NewGame, Owner)); Dictionary <string, OnlineScript> DicNewScript = new Dictionary <string, OnlineScript>(); DicNewScript.Add(SendPlayerUpdateScriptClient.ScriptName, new SendPlayerUpdateScriptClient(Owner)); DicNewScript.Add(SendPlayerRespawnScriptClient.ScriptName, new SendPlayerRespawnScriptClient(Owner)); DicNewScript.Add(SendPlayerDamageScriptClient.ScriptName, new SendPlayerDamageScriptClient(Owner)); DicNewScript.Add(ShootBulletScriptClient.ScriptName, new ShootBulletScriptClient(Owner)); DicNewScript.Add(ReceiveGameDataScriptClient.ScriptName, new ReceiveGameDataScriptClient(Owner)); DicNewScript.Add(GoToNextMapScriptClient.ScriptName, new GoToNextMapScriptClient(Owner)); DicNewScript.Add(GameEndedScriptClient.ScriptName, new GameEndedScriptClient(Owner)); Host.AddOrReplaceScripts(DicNewScript); }