Пример #1
0
 public override void OnRegister()
 {
     if (m_Region1 == null)
     {
         m_Region1 = this;
     }
     else if (m_Region2 == null)
     {
         m_Region2 = this;
     }
 }
Пример #2
0
        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));
            }
        }
Пример #3
0
 public InternalTimer(SeaMarketRegion reg)
     : base(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(1))
 {
     m_Region = reg;
 }
Пример #4
0
 public static void SetRegions(SeaMarketRegion reg1, SeaMarketRegion reg2)
 {
     m_Region1 = reg1;
     m_Region2 = reg2;
 }
Пример #5
0
 public InternalTimer(SeaMarketRegion reg)
     : base(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(1))
 {
     m_Region = reg;
 }
Пример #6
0
 public static void SetRegions(SeaMarketRegion reg1, SeaMarketRegion reg2)
 {
     m_Region1 = reg1;
     m_Region2 = reg2;
 }