Exemplo n.º 1
0
        public UserDataItemDto[] GetUserDataDto()
        {
            var UserData = new List <UserDataItemDto>();

            var xx = new UserDataItemDto
            {
                ItemNumber = Player.CharacterManager.CurrentCharacter.Skills.GetItem(SkillSlot.Skill)?.ItemNumber ?? 0,
                PriceType  = Player.CharacterManager.CurrentCharacter.Skills.GetItem(SkillSlot.Skill)?.PriceType ?? 0,
                Unk2       = 0,
                Unk3       = 0,
                Color      = Player.CharacterManager.CurrentCharacter.Skills.GetItem(SkillSlot.Skill)?.Color ?? 0,
                Effects    = Player.CharacterManager.CurrentCharacter.Skills.GetItem(SkillSlot.Skill)?.GetItemEffectsInt() ?? new uint[0],
                Unk4       = 0,
                Unk5       = 0
            };

            UserData.Add(xx);

            return(UserData.ToArray());
        }
Exemplo n.º 2
0
        public UserDataItemDto[] GetUserDataDto()
        {
            var UserData = new List <UserDataItemDto>();

            for (WeaponSlot i = 0; i < WeaponSlot.None; i++)
            {
                var xx = new UserDataItemDto
                {
                    ItemNumber = Player.CharacterManager.CurrentCharacter.Weapons.GetItem(i)?.ItemNumber ?? 0,
                    PriceType  = Player.CharacterManager.CurrentCharacter.Weapons.GetItem(i)?.PriceType ?? 0,
                    Unk2       = 0,
                    Unk3       = 0,
                    Color      = Player.CharacterManager.CurrentCharacter.Weapons.GetItem(i)?.Color ?? 0,
                    Effects    = Player.CharacterManager.CurrentCharacter.Weapons.GetItem(i)?.GetItemEffectsInt() ?? new uint[0],
                    Unk4       = 0,
                    Unk5       = 0
                };

                UserData.Add(xx);
            }
            return(UserData.ToArray());
        }