コード例 #1
0
        public void Position_Set_Get()
        {
            var packet = new PlayerPortal();

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

            Assert.Equal(new Vector2f(1.23F, 4.56F), packet.Position);
        }
コード例 #2
0
        public void Velocity_Set_Get()
        {
            var packet = new PlayerPortal();

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

            Assert.Equal(new Vector2f(1.23F, 4.56F), packet.Velocity);
        }
コード例 #3
0
        public void PortalColorIndex_Set_Get()
        {
            var packet = new PlayerPortal();

            packet.PortalColorIndex = 1;

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