public void RemoveShowNode(IMapable node) { if (node != null) { RemoveShowNode(node.Index); } }
static void Print <Tkey, TValue>(IMapable <Tkey, TValue> map) { int index = 0; if (map.Count > 0) { foreach (var item in map) { index++; if (map.Count == index) { Console.Write($"{item}"); } else { Console.Write($"{item}, "); } } } if (map.Count == 0 || index == 0) { Console.WriteLine("Словарь пуст!"); } Console.WriteLine(); Console.WriteLine(); }
GameObject PlantShower(IMapable n) { GameObject g; switch (n.ID) { case 0: case 1: // return GameObject.Instantiate<GameObject>(fileManager.plants[n.ID]); default: return(null); } }
public void Dispose() { lock (syncRoot) { if (mappable != null) { if (mappedData != null) { UnMap(); } mappable = null; } } }
public List <SPParameter> UnMap(IMapable entity) { return(new List <SPParameter>()); }
public List<SPParameter> UnMap(IMapable entity) { return new List<SPParameter>(); }
public void AddShowNode(IMapable node) { AddShowNode(node.Index); }
/// <summary> /// The constructor. /// </summary> /// <param name="format"></param> /// <param name="mappable"></param> public ShapeIndexBufferView(ShapeIndexFormat format, IMapable <byte[]> mappable) : this(format, mappable, 0) { }
/// <summary> /// The constructor. /// </summary> /// <param name="format"></param> /// <param name="mappable"></param> public ShapeIndexBufferView(ShapeIndexFormat format, IMapable <byte[]> mappable, ulong offset) { this.format = format; this.mappable = mappable; this.offset = 0; }