示例#1
0
        public void TeleportationType_Set_Get(TeleportationType value)
        {
            var packet = new EntityTeleport();

            packet.TeleportationType = value;

            Assert.Equal(value, packet.TeleportationType);
        }
示例#2
0
        public void UseTargetsPosition_Set_Get(bool value)
        {
            var packet = new EntityTeleport();

            packet.UseTargetsPosition = value;

            Assert.Equal(value, packet.UseTargetsPosition);
        }
示例#3
0
        public void ExtraInfo_Set_Get()
        {
            var packet = new EntityTeleport();

            packet.ExtraInfo = 1;

            Assert.Equal(1, packet.ExtraInfo);
        }
示例#4
0
        public void Style_Set_Get()
        {
            var packet = new EntityTeleport();

            packet.Style = 1;

            Assert.Equal(1, packet.Style);
        }
示例#5
0
        public void Position_Set_Get()
        {
            var packet = new EntityTeleport();

            packet.Position = new Utils.Vector2f(1.23F, 4.56F);

            Assert.Equal(new Utils.Vector2f(1.23F, 4.56F), packet.Position);
        }
示例#6
0
        public void EntityIndex_Set_Get()
        {
            var packet = new EntityTeleport();

            packet.EntityIndex = 1;

            Assert.Equal(1, packet.EntityIndex);
        }