public static void StartGame(CTFGameStone stone) { Running = true; Open = true; Stone = stone; Price = stone.Price; RewardItemChance = stone.RewardItemChance; GiveRobe = stone.GiveRobe; MsgStaff = stone.MessageStaff; GiveRewards = stone.GiveRewards; Teams = stone.Teams; DrawLength = stone.DrawLength; GameLength = stone.GameLength; GameArea = stone.GameArea; Spawn = stone.Spawn; FlagArray = stone.FlagArray; GameData = new CTFGameData(); if (Region != null) Region.Unregister(); Region = new CTFGameRegion(); Region.Register(); EventSystem.Start(stone.MinutesOpen,"Capture The Flag Game", new EDC.StartMethod(StartGame), new EDC.StopMethod(EndGame), new EDC.JoinMethod(JoinMethod)); }
public CTFSpawnTimer( CTFSpawn ctfSpawn ) : base(TimeSpan.FromSeconds( 0.5 ), TimeSpan.FromSeconds( 0.5 )) { Priority = TimerPriority.FiftyMS; m_CTFSpawn = ctfSpawn; }