public static void Inscribir(SessionInstance Session, int ID) { switch (Session.User.Game) { case GameType.Ring: RingInstance.Inscribir(Session, ID); break; case GameType.CocosLocos: CocosInstance.Inscribir(Session, ID); break; case GameType.Camino: CaminoInstance.Inscribir(Session, ID); break; case GameType.Sendero: SenderoInstance.Inscribir(Session, ID); break; default: Output.WriteLine("Inscripcion de juego no pogramada: " + Session.User.Game.ToString() + " -> " + ID); break; } }
public static void BuscarParticipantes(GameType Game, int Type) { switch (Game) { case GameType.Ring: RingInstance.BuscarParticipantes(Type); break; case GameType.CocosLocos: CocosInstance.BuscarParticipantes(Type); break; case GameType.Camino: CaminoInstance.BuscarParticipantes(Type); break; case GameType.Sendero: SenderoInstance.BuscarParticipantes(Type); break; } }
public static void CargarSabio(SessionInstance Session, int GameID) { GameType Game = DefineGame(GameID); switch (Game) { case GameType.Ring: RingInstance.CargarSabio(Session); break; case GameType.Sendero: SenderoInstance.CargarSabio(Session); break; case GameType.CocosLocos: CocosInstance.CargarSabio(Session); break; case GameType.Camino: CaminoInstance.CargarSabio(Session); break; } }
private void DoGame() { this.PathFinder = false; switch (Escenario.id) { case 2: this.Ring = new RingInstance(this); break; case 3: this.Ring = new RingInstance(this); break; case 8: this.Cocos = new CocosInstance(this); break; case 9: this.Cocos = new CocosInstance(this); break; case 12: this.Camino = new CaminoInstance(this); break; case 13: this.Camino = new CaminoInstance(this); break; case 6: this.Sendero = new SenderoInstance(this); break; case 7: this.Sendero = new SenderoInstance(this); break; } }
public static void Desinscribir(SessionInstance Session, int ID) { switch (Session.User.Game) { case GameType.Ring: if (ID == 2) { RingInstance.Desinscribir(Session); } if (ID == 3) { RingInstance.Desinscribir(Session); } if (ID == 0) { RingInstance.Desinscribir(Session); } break; case GameType.CocosLocos: if (ID == 8) { CocosInstance.Desinscribir(Session); } if (ID == 9) { CocosInstance.Desinscribir(Session); } if (ID == 0) { CocosInstance.Desinscribir(Session); } break; case GameType.Camino: if (ID == 12) { CaminoInstance.Desinscribir(Session); } if (ID == 13) { CaminoInstance.Desinscribir(Session); } if (ID == 0) { CaminoInstance.Desinscribir(Session); } break; case GameType.Sendero: if (ID == 6) { SenderoInstance.Desinscribir(Session); } if (ID == 7) { SenderoInstance.Desinscribir(Session); } if (ID == 0) { SenderoInstance.Desinscribir(Session); } break; } }