public bool RegisterMesh(string name, MCBaseMesh mesh) { if (m_nameMeshIndex.ContainsKey(name)) { return(false); } m_nameMeshIndex.Add(name, new WeakReference <MCBaseMesh>(mesh)); return(true); }
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); }
public abstract int CloneInstanceizing(string name, out MCBaseMesh mesh);