コード例 #1
0
 public void RemoveShowNode(IMapable node)
 {
     if (node != null)
     {
         RemoveShowNode(node.Index);
     }
 }
コード例 #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();
        }
コード例 #3
0
    GameObject PlantShower(IMapable n)
    {
        GameObject g;

        switch (n.ID)
        {
        case 0:
        case 1:
        // return GameObject.Instantiate<GameObject>(fileManager.plants[n.ID]);
        default: return(null);
        }
    }
コード例 #4
0
 public void Dispose()
 {
     lock (syncRoot)
     {
         if (mappable != null)
         {
             if (mappedData != null)
             {
                 UnMap();
             }
             mappable = null;
         }
     }
 }
コード例 #5
0
 public List <SPParameter> UnMap(IMapable entity)
 {
     return(new List <SPParameter>());
 }
コード例 #6
0
 public List<SPParameter> UnMap(IMapable entity)
 {
     return new List<SPParameter>();
 }
コード例 #7
0
 public void AddShowNode(IMapable node)
 {
     AddShowNode(node.Index);
 }
コード例 #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)
 {
 }
コード例 #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;
 }