public override void OnRegister() { if (m_Region1 == null) { m_Region1 = this; } else if (m_Region2 == null) { m_Region2 = this; } }
public static void Initialize() { if (Core.HS) { Region reg = new TokunoDocksRegion(); reg.Register(); SeaMarketRegion reg1 = new SeaMarketRegion(Map.Felucca); SeaMarketRegion reg2 = new SeaMarketRegion(Map.Trammel); reg1.Register(); reg2.Register(); SeaMarketRegion.SetRegions(reg1, reg2); CommandSystem.Register("RestrictBoats", AccessLevel.GameMaster, new CommandEventHandler(SeaMarketRegion.SetRestriction_OnCommand)); //CommandSystem.Register("GetBoatInfo", AccessLevel.GameMaster, new CommandEventHandler(SeaMarketRegion.GetBoatInfo_OnCommand)); } }
public InternalTimer(SeaMarketRegion reg) : base(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(1)) { m_Region = reg; }
public static void SetRegions(SeaMarketRegion reg1, SeaMarketRegion reg2) { m_Region1 = reg1; m_Region2 = reg2; }