public void Event_PlayerTurretAttach(SSPlayer attacher, SSPlayer host) { if (m_Races == null) { return; } RaceGame race = getRace(attacher); if (race == null) { return; } race.Event_PlayerTurretAttach(attacher, host); }
public void Event_PlayerLeft(SSPlayer p) { if (m_Races == null) { return; } RaceGame race = getRace(p); if (race == null) { return; } race.race_PlayerLeaving(p); }
public void Event_PlayerFreqChange(SSPlayer p) { if (m_Races == null) { return; } RaceGame race = getRace(p.OldFrequency); if (race == null) { return; } race.race_PlayerLeaving(p); }
//----------------------------------------------------------------------// // Events // //----------------------------------------------------------------------// public void Event_PlayerPosition(SSPlayer p) { if (m_Races == null) { return; } RaceGame race = getRace(p); if (race == null) { return; } race.Event_PlayerPosition(p); }
//----------------------------------------------------------------------// // Race Functions // //----------------------------------------------------------------------// private void BaseRace_Load(string PlayerName) { // Create the list m_Races = new List <RaceGame>(); // Config main bd game RaceGame pubGame = new RaceGame(msg, psyGame, m_FakeDB, m_Players, m_BaseManager, m_MultiGame, 1); pubGame.raceFreq(this.m_FreqStartIndex); m_Races.Add(pubGame); if (this.m_MultiGame) { } // load and configure stuff to start baseduel module psyGame.Send(msg.arena("[ BaseRace ] Module Loaded - " + PlayerName)); psyGame.Send(msg.arena("[ BaseRace ] MultiGame Toggle: [ " + (this.m_MultiGame ? "On" : "Off") + " ]")); }