MCLawl.PlayerBot.PlayerBot C# (CSharp) Метод

PlayerBot() публичный Метод

public PlayerBot ( string n, Level l ) : System
n string
l Level
Результат System
        public PlayerBot(string n, Level l)
        {
            Server.s.Log("adding " + n + " bot");
            name = n;
            color = "&1";
            id = FreeId();

            level = l;
            ushort x = (ushort)((0.5 + level.spawnx) * 32);
            ushort y = (ushort)((1 + level.spawny) * 32);
            ushort z = (ushort)((0.5 + level.spawnz) * 32);
            pos = new ushort[3] { x, y, z }; rot = new byte[2] { level.rotx, level.roty };
            GlobalSpawn();
        }

Same methods

PlayerBot::PlayerBot ( string n, Level l, ushort x, ushort y, ushort z, byte rotx, byte roty ) : System