Example #1
0
 /// <inheritdoc />
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:Tibia.Spawns.CharacterSpawn" /> class.
 /// </summary>
 public CharacterSpawn()
 {
     LastLogin        = new LoginInfo();
     MagicLevel       = new MagicLevel();
     Mana             = new Mana();
     Mounts           = new HashSet <IMount>();
     OfflineTraining  = new OfflineTrainingInfo();
     OpenContainers   = new Dictionary <int, IContainerItemSpawn>();
     Outfits          = new HashSet <IOutfit>();
     PartyInvitations = new HashSet <IParty>();
     Quests           = new HashSet <IQuestInfo>();
 }
Example #2
0
 public Player(uint id, string name, string password, Outfit outfit, Position position, Position spawnPosition,
               ushort hitpoints,
               ushort maxHitpoints, ushort mana, ushort maxMana, uint experience, byte level, byte magicLevel,
               uint magicLevelExp,
               ushort capacity, ushort speed, Skills skills, Equipment equipment)
     : base(id, name, outfit, position, spawnPosition, hitpoints, maxHitpoints, mana, maxMana, experience, level, magicLevel,
            capacity, speed)
 {
     Packets   = new PacketHelper(this);
     Password  = password;
     Skills    = skills;
     Equipment = equipment;
     MagicLevel.SetExp(magicLevelExp);
 }