private TtabItemMotiveTable Clone(TtabItem parent) { TtabItemMotiveTable clone = new TtabItemMotiveTable(parent, counts, type); this.CopyTo(clone); return(clone); }
public TtabItemMotiveTable(TtabItem parent, int[] counts, TtabItemMotiveTableType type) { this.parent = parent; this.counts = counts; this.type = type; int nrGroups = 0; if (counts != null) { nrGroups = counts.Length; } else { nrGroups = type == TtabItemMotiveTableType.Human ? 5 : 8; } items = new TtabItemMotiveGroupArrayList(new TtabItemMotiveGroup[nrGroups]); for (int i = 0; i < nrGroups; i++) { items[i] = new TtabItemMotiveGroup(this, counts != null ? counts[i] : -1, type); } }
public bool Contains(TtabItem item) { return(items.Contains(item)); }
public TtabItemMotiveTable(TtabItem parent, int[] counts, TtabItemMotiveTableType type, System.IO.BinaryReader reader) : this(parent, counts, type) { Unserialize(reader); }