Esempio n. 1
0
        public void CreateUniqueInstance(uint treeID, string newName, string newDescription = "")
        {
            TreeInfo   oldInfo    = TreeManager.instance.m_trees.m_buffer[treeID].Info;
            UniqueTree uniqueTree = oldInfo.GetImmediateCopy(newName);

            TreeInfos.Add(uniqueTree);
            TreeInstances.Add(treeID, uniqueTree);
        }
Esempio n. 2
0
 public void Add(uint treeID, UniqueTree uniqueTree, bool replace = false)
 {
     if (!Buffer.ContainsKey(treeID))
     {
         Buffer.Add(treeID, new UniqueTreeInstance(treeID, uniqueTree));
     }
     else if (replace)
     {
         Buffer[treeID] = new UniqueTreeInstance(treeID, uniqueTree);
     }
 }