public void RemoveShowNode(IMapable node)
 {
     if (node != null)
     {
         RemoveShowNode(node.Index);
     }
 }
Exemple #2
0
        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);
        }
    }
Exemple #4
0
 public void Dispose()
 {
     lock (syncRoot)
     {
         if (mappable != null)
         {
             if (mappedData != null)
             {
                 UnMap();
             }
             mappable = null;
         }
     }
 }
Exemple #5
0
 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);
 }
Exemple #8
0
 /// <summary>
 /// The constructor.
 /// </summary>
 /// <param name="format"></param>
 /// <param name="mappable"></param>
 public ShapeIndexBufferView(ShapeIndexFormat format, IMapable <byte[]> mappable)
     : this(format, mappable, 0)
 {
 }
Exemple #9
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;
 }