void SetPosition(PositionValue position) { if (!PositionLookup.ContainsKey(position)) { PositionLookup[position] = new PositionDef { Position = position } } ; }
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() }; }