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

            packet.BaseValue = 1;

            Assert.Equal(1, packet.BaseValue);
        }
コード例 #2
0
        public void AiStyle_Set_Get()
        {
            var packet = new NpcRevengeInfo();

            packet.AiStyle = 1;

            Assert.Equal(1, packet.AiStyle);
        }
コード例 #3
0
        public void CoinStealValue_Set_Get()
        {
            var packet = new NpcRevengeInfo();

            packet.CoinStealValue = 1;

            Assert.Equal(1, packet.CoinStealValue);
        }
コード例 #4
0
        public void NpcType_Set_Get()
        {
            var packet = new NpcRevengeInfo();

            packet.NpcType = 1;

            Assert.Equal(1, packet.NpcType);
        }
コード例 #5
0
        public void HealthPercentage_Set_Get()
        {
            var packet = new NpcRevengeInfo();

            packet.HealthPercentage = 100;

            Assert.Equal(100, packet.HealthPercentage);
        }
コード例 #6
0
        public void NetId_Set_Get()
        {
            var packet = new NpcRevengeInfo();

            packet.NetId = 1;

            Assert.Equal(1, packet.NetId);
        }
コード例 #7
0
        public void Position_Set_Get()
        {
            var packet = new NpcRevengeInfo();

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

            Assert.Equal(new Vector2f(1.23F, 4.56F), packet.Position);
        }
コード例 #8
0
        public void SpawnedFromStatue_Set_Get(bool value)
        {
            var packet = new NpcRevengeInfo();

            packet.SpawnedFromStatue = value;

            Assert.Equal(value, packet.SpawnedFromStatue);
        }