public void MergeDataTo(MainProgress destProgress) { if (this != destProgress) { MergeDexTo(destProgress); } foreach (CharData charData in CharsToStore) { Character chara = new Character(charData, ActiveTeam); AITactic tactic = DataManager.Instance.GetAITactic(0); chara.Tactic = new AITactic(tactic); destProgress.ActiveTeam.Assembly.Add(chara); } CharsToStore.Clear(); destProgress.ActiveTeam.StoreItems(ItemsToStore); ItemsToStore.Clear(); //just add storage values for (int ii = 0; ii < StorageToStore.Length; ii++) { destProgress.ActiveTeam.Storage[ii] += StorageToStore[ii]; StorageToStore[ii] = 0; } //put the money in the bank destProgress.ActiveTeam.Bank += MoneyToStore; MoneyToStore = 0; }
public AITactic(AITactic other) : this() { Name = new LocalText(other.Name); foreach (BasePlan plan in other.Plans) { Plans.Add(plan.CreateNew()); } ID = other.ID; }
public AITactic(AITactic other) : this() { ID = other.ID; Assignable = other.Assignable; Name = new LocalText(other.Name); Comment = other.Comment; foreach (BasePlan plan in other.Plans) { Plans.Add(plan.CreateNew()); } }