예제 #1
0
 public bool RegisterMesh(string name, MCBaseMesh mesh)
 {
     if (m_nameMeshIndex.ContainsKey(name))
     {
         return(false);
     }
     m_nameMeshIndex.Add(name, new WeakReference <MCBaseMesh>(mesh));
     return(true);
 }
예제 #2
0
        public bool GetMesh(string name, out MCBaseMesh mesh)
        {
            mesh = null;
            if (!m_nameMeshIndex.ContainsKey(name))
            {
                return(false);
            }


            if (m_nameMeshIndex[name].TryGetTarget(out mesh))
            {
                m_nameMeshIndex.Remove(name);
                return(false);
            }
            return(true);
        }
예제 #3
0
 public abstract int CloneInstanceizing(string name, out MCBaseMesh mesh);