Reset() public method

public Reset ( ) : void
return void
Exemplo n.º 1
0
        public static void Init()
        {
            Terraria.Netplay.Clients = new ServerSlot[256];
            tdsm.api.Callbacks.NetplayCallback.CheckSectionMethod = CheckSection;
            for (int i = 0; i < 256; i++)
            {
                var slot = new ServerSlot()
                {
                    whoAmI = i
                };
                slot.Reset();
                Terraria.Netplay.Clients[i] = slot;
            }

            Ops            = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "ops.txt"));
            Bans           = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "bans.txt"));
            Whitelist      = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "whitelist.txt"));
            ItemRejections = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "itemrejection.txt"));
            IsInitialised  = true;
        }
        public static void Init()
        {
            Terraria.Netplay.Clients = new ServerSlot[256];
            tdsm.api.Callbacks.NetplayCallback.CheckSectionMethod = CheckSection;
            for (int i = 0; i < 256; i++)
            {
                var slot = new ServerSlot()
                {
                    whoAmI = i
                };
                slot.Reset();
                Terraria.Netplay.Clients[i] = slot;
            }

            Ops = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "ops.txt"));
            Bans = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "bans.txt"));
            Whitelist = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "whitelist.txt"));
            ItemRejections = new DataRegister(System.IO.Path.Combine(Globals.DataPath, "itemrejection.txt"));
            IsInitialised = true;
        }