public static PVPTeamArrangement Deserialize(GenericReader reader, PVPEvent pvpevent) { int val = reader.ReadInt(); PVPTeamArrangement teamArrangement = null; if (val != -1) { teamArrangement = (PVPTeamArrangement)Activator.CreateInstance(TeamArrangementList.Keys.ElementAt(val), pvpevent); int TeamsCount = reader.ReadInt(); for (int i = 0; i < TeamsCount; ++i) { teamArrangement.AjouterEquipe(); int JoueursCount = reader.ReadInt(); for (int j = 0; j < JoueursCount; ++j) { ScriptMobile mob = (ScriptMobile)reader.ReadMobile(); teamArrangement[i].Add(mob); mob.PVPInfo = new PVPInfo(pvpevent, teamArrangement[i]); } } } return(teamArrangement); }
public static PVPMode Deserialize(GenericReader reader, PVPEvent pvpevent) { int val = reader.ReadInt(); if (val != -1) { return((PVPMode)Activator.CreateInstance(ModeList.Keys.ElementAt(val), pvpevent)); } else { return(null); } }
public PVPInfo(PVPEvent CurrentEvent, ScriptMobile Player) { m_IsDespawned = false; m_CurrentEvent = CurrentEvent; foreach (PVPTeam team in m_CurrentEvent.teams) { if (team.Contains(Player)) { m_CurrentTeam = team; break; } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); rect = reader.ReadRect3D(); int count = reader.ReadInt(); for (int i = 0; i < count; ++i) { PVPEvent pvpevent = PVPEvent.CreateEvent(null, this); pvpevent.Deserialize(reader); } }
public static PVPEvent CreateEvent(Mobile maker, PVPStone stone) { PVPEvent pvpevent = new PVPEvent(maker, stone); if (maker != null) { foreach (PVPEvent _event in PVPEvent.m_InstancesList) { if (maker == _event.m_maker && _event != pvpevent) { maker.SendMessage("Vous ne pouvez pas créer un autre event, étant donné que vous avez déjà créé " + _event.nom); pvpevent.StopEvent(); return(pvpevent = null); } } } return(pvpevent); }
public PreparationTimer(PVPEvent pvpevent) : base(TimeSpan.Zero, TimeSpan.FromSeconds(1)) { m_pvpevent = pvpevent; m_toCheck = new List <ScriptMobile>(); m_EndTime = DateTime.Now + tempsAttente; m_pvpevent.state = PVPEventState.Preparing; foreach (PVPTeam team in m_pvpevent.teams) { foreach (ScriptMobile joueur in team) { m_toCheck.Add(joueur); } } // Send Gump le gump de choix. foreach (ScriptMobile mob in m_toCheck) { mob.SendGump(new PVPGumpPreparation(mob, m_pvpevent, m_toCheck)); } }
public PVPMode(PVPEvent pvpevent) { m_pvpevent = pvpevent; m_timeoutTimer = new TimeoutTimer(this); }
public PVPInfo(PVPEvent CurrentEvent, PVPTeam CurrentTeam) { m_IsDespawned = false; m_CurrentEvent = CurrentEvent; m_CurrentTeam = CurrentTeam; }
public PVPTeamArrangement(PVPEvent pvpevent) { m_pvpevent = pvpevent; m_teams = new List <PVPTeam>(); }
public KillCount(PVPEvent pvpevent) : base(pvpevent) { killcount = new List <int>(); }
public Teams(PVPEvent pvpevent) : base(pvpevent) { }
public YOLO(PVPEvent pvpevent) : base(pvpevent) { NbPlayersAlive = new List <int>(); }
public WaitingTimer(PVPEvent pvpevent) : base(TimeSpan.Zero, TimeSpan.FromSeconds(3)) { m_pvpevent = pvpevent; }
public Tickets(PVPEvent pvpevent) : base(pvpevent) { tickets = new List <int>(); }
public CaptureTheFlag(PVPEvent pvpevent) : base(pvpevent) { }
public FFA(PVPEvent pvpevent) : base(pvpevent) { }