예제 #1
0
 public Item(ItemSaveData saveData)
 {
     SkillNames = saveData.SkillNames;
     Effects    = EffectTracker.IDStoEffects(saveData.EffectIDS);
     IsEquipped = saveData.IsEquipped;
     Damage     = saveData.Damage;
     Weight     = saveData.Weight;
     Name       = saveData.Name;
     Value      = saveData.Value;
     TL         = saveData.TL;
     Quantity   = saveData.Quantity;
 }
예제 #2
0
 public void Load(TileSaveData saveData)
 {
     color      = saveData.Color;
     savedColor = color;
     effects    = EffectTracker.IDStoEffects(saveData.EffectIDs);
     pins       = saveData.Pins;
     items      = new List <Item>();
     foreach (ItemSaveData isd in saveData.Items)
     {
         items.Add(new Item(isd));
     }
     hints     = saveData.Hints;
     occupants = new List <CharacterSheet>();
     foreach (CharacterSaveData csd in saveData.Occupants)
     {
         occupants.Add(new CharacterSheet(csd));
     }
     isReveialed = saveData.isReveialed;
     isBlock     = saveData.isBlock;
     isVisible   = saveData.isVisible;
 }
 public Advantage(AdvantageSaveData saveData)
 {
     Name        = saveData.Name;
     Description = saveData.Description;
     Effects     = EffectTracker.IDStoEffects(saveData.EffectIDs);
 }