예제 #1
0
        private TtabItemMotiveTable Clone(TtabItem parent)
        {
            TtabItemMotiveTable clone = new TtabItemMotiveTable(parent, counts, type);

            this.CopyTo(clone);
            return(clone);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public bool Contains(TtabItem item)
 {
     return(items.Contains(item));
 }
예제 #4
0
 public TtabItemMotiveTable(TtabItem parent, int[] counts, TtabItemMotiveTableType type, System.IO.BinaryReader reader)
     : this(parent, counts, type)
 {
     Unserialize(reader);
 }