public static void Init() { if (instance == null) { instance = new BvApiMaster(); instance.RegisterClientHandler(); instance.CheckClientQueue(); } }
public override void Close() { UnregisterClientHandler(); if (ExceptionHandler.Reloading) { for (int n = clients.Count - 1; n >= 0; n--) { clients[n].Unregister(); } clients.Clear(); } else if (ExceptionHandler.Unloading) { instance = null; } }
protected override void AfterLoadData() { BvApiMaster.Init(); BvServer.Init(); }