Beispiel #1
0
        public void Save(CharacterContext context)
        {
            if (!isDirty)
            {
                return;
            }

            var model = new CharacterPetFlair
            {
                Id         = Owner,
                PetFlairId = Entry.Id
            };

            context.Add(model);
            isDirty = false;
        }
Beispiel #2
0
 /// <summary>
 /// Create a new <see cref="PetFlair"/> from existing <see cref="CharacterPetFlair"/> database model.
 /// </summary>
 public PetFlair(CharacterPetFlair model)
 {
     Owner = model.Id;
     Entry = GameTableManager.PetFlair.GetEntry(model.PetFlairId);
 }