public static void GenerateEvent(EventType type) { if (!ServerManager.Instance.StartedEvents.Contains(type)) { Task.Factory.StartNew(() => { ServerManager.Instance.StartedEvents.Add(type); switch (type) { case EventType.RANKINGREFRESH: ServerManager.Instance.RefreshRanking(); ServerManager.Instance.StartedEvents.Remove(EventType.RANKINGREFRESH); break; case EventType.LOD: LOD.GenerateLod(); break; case EventType.MINILANDREFRESHEVENT: MinilandRefresh.GenerateMinilandEvent(); break; case EventType.INSTANTBATTLE: InstantBattle.GenerateInstantBattle(); break; case EventType.LODDH: LOD.GenerateLod(35); break; case EventType.METEORITEGAME: MeteoriteGame.GenerateMeteoriteGame(); break; case EventType.ACT4SHIP: ACT4SHIP.GenerateAct4Ship(1); ACT4SHIP.GenerateAct4Ship(2); break; case EventType.TALENTARENA: TalentArena.Run(); break; case EventType.CALIGOR: CaligorRaid.Run(); break; case EventType.TOXIC: LevelRaid.GenerateLevelRaid(); break; } }); } }
public static void GenerateEvent(EventType type) { if (!ServerManager.Instance.StartedEvents.Contains(type)) { Task.Factory.StartNew(() => { ServerManager.Instance.StartedEvents.Add(type); switch (type) { case EventType.RankingRefresh: ServerManager.Instance.RefreshRanking(); ServerManager.Instance.StartedEvents.Remove(EventType.RankingRefresh); break; case EventType.LOD: Lod.GenerateLod(); break; case EventType.MinilandRefresh: MinilandRefresh.GenerateMinilandEvent(); break; case EventType.InstantBattle: InstantBattle.GenerateInstantBattle(); break; case EventType.LODDH: Lod.GenerateLod(35); break; case EventType.MeteoriteGame: MeteoriteGame.GenerateMeteoriteGame(); break; case EventType.Act4Ship: Act4Ship.GenerateAct4Ship(1); Act4Ship.GenerateAct4Ship(2); break; case EventType.TalentArena: TalentArena.Run(); break; case EventType.Caligor: CaligorRaid.Run(); break; } }); } }
public static void GenerateEvent(EventType type, bool useTimer = true) { if (!ServerManager.Instance.StartedEvents.Contains(type)) { Task.Factory.StartNew(() => { ServerManager.Instance.StartedEvents.Add(type); switch (type) { case EventType.RANKINGREFRESH: ServerManager.Instance.RefreshRanking(); ServerManager.Instance.StartedEvents.Remove(EventType.RANKINGREFRESH); break; case EventType.LOD: LOD.GenerateLod(); break; case EventType.MINILANDREFRESHEVENT: MinilandRefresh.GenerateMinilandEvent(); break; case EventType.INSTANTBATTLE: InstantBattle.GenerateInstantBattle(); break; case EventType.LODDH: LOD.GenerateLod(35); break; case EventType.METEORITEGAME: MeteoriteGame.GenerateMeteoriteGame(); break; case EventType.SHEEP: Sheep.GenerateSheepGames(); break; case EventType.ACT4SHIP: ACT4SHIP.GenerateAct4Ship(1); ACT4SHIP.GenerateAct4Ship(2); break; case EventType.ICEBREAKER: // IceBreaker.GenerateIceBreaker(useTimer); break; case EventType.BATTLEROYAL: // BattleRoyaleManager.Instance.Prepare(useTimer); break; case EventType.FORTNITE: // FortniteManager.Instance.Prepare(useTimer); break; case EventType.TALENTARENA: TalentArena.Run(); break; case EventType.CALIGOR: CaligorRaid.Run(); break; } }); } }