예제 #1
0
 /// <summary>
 /// Setups as caster in party.
 /// </summary>
 /// <param name="partyIndex">Index of the party.</param>
 public void SetupAsCasterInParty(int partyIndex)
 {
     this.Type              = SaveType.CASTER_IN_PARTY;
     this.PartyIndex        = partyIndex;
     this.StatCopy          = null;
     this.CasterCharacterId = Character.UNKNOWN_ID;
 }
예제 #2
0
        public int PartyIndex; // Setup in Party

        /// <summary>
        /// Initializes a new instance of the <see cref="BuffSave"/> class.
        /// </summary>
        /// <param name="turnsRemaining">The turns remaining.</param>
        /// <param name="statCopy">The stat copy.</param>
        /// <param name="casterId">The caster identifier.</param>
        /// <param name="type">The type.</param>
        public BuffSave(int turnsRemaining, CharacterStatsSave statCopy, int casterId, Type type) : base(type)
        {
            this.TurnsRemaining    = turnsRemaining;
            this.StatCopy          = statCopy;
            this.CasterCharacterId = casterId;
            this.PartyIndex        = -1;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CharacterSave"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="flags">The flags.</param>
 /// <param name="stats">The stats.</param>
 /// <param name="buffs">The buffs.</param>
 /// <param name="look">The look.</param>
 /// <param name="spells">The spells.</param>
 /// <param name="brain">The brain.</param>
 /// <param name="equipment">The equipment.</param>
 public CharacterSave(
     int id,
     List<Characters.Flag> flags,
     CharacterStatsSave stats,
     CharacterBuffsSave buffs,
     LookSave look,
     CharacterSpellBooksSave spells,
     BrainSave brain,
     EquipmentSave equipment) {
     this.Id = id;
     this.Flags = flags;
     this.Stats = stats;
     this.Buffs = buffs;
     this.Look = look;
     this.Spells = spells;
     this.Brain = brain;
     this.Equipment = equipment;
 }