示例#1
0
        // ***************
        // Constructors
        // ***************

        // Copy constructor to Clone this snapview only used by FootyStatInit to save a copy right at the start.
        public SnapView(SnapViewDirector svd, SnapView previous_sv) : base(svd)
        {
            // Copy the table (DEEP COPY) because the table will be different for all users.
            table = new List <SVRow>(100);
            foreach (SVRow row in previous_sv.table)
            {
                table.Add(row);
            }

            // Shallow copy the dict because this is the same for all.
            dict = previous_sv.dict;

            // isValid default to true for snapview (different to actions)
            isValid = true;
        }
示例#2
0
 // Set the dictionary member
 public void setDict(FieldDictionary d)
 {
     dict = d;
 }