예제 #1
0
        internal Character(CharacterManager characterManager, byte slot, CharacterGender gender)
        {
            CharacterManager = characterManager;

            Weapons  = new WeaponManager(this);
            Skills   = new SkillManager(this);
            Costumes = new CostumeManager(this);

            Slot   = slot;
            Gender = gender;
        }
예제 #2
0
        internal Character(CharacterManager characterManager, PlayerCharacterDto dto)
        {
            CharacterManager = characterManager;

            Weapons  = new WeaponManager(this, dto);
            Skills   = new SkillManager(this, dto);
            Costumes = new CostumeManager(this, dto);

            var defaultItems = GameServer.Instance.ResourceCache.GetDefaultItems();

            ExistsInDatabase = true;
            Id     = dto.Id;
            Slot   = dto.Slot;
            Gender = (CharacterGender)dto.Gender;
        }