Пример #1
0
 void SetPosition(PositionValue position)
 {
     if (!PositionLookup.ContainsKey(position))
     {
         PositionLookup[position] = new PositionDef {
             Position = position
         }
     }
     ;
 }
Пример #2
0
 internal void SetPosition(PositionValue position, Rect location, IList <int> coords = null)
 {
     PositionLookup[position] = new PositionDef {
         Position = position, Location = location, Coords = coords == null ? null : coords.ToArray()
     };
 }