void OnRecvDelete(DeleteMessage mes) { int numInstanceMeshes = mes.numInstances; for (int i = 0; i < numInstanceMeshes; i++) { var instance = mes.GetInstance(i); EraseInstanceInfoRecord(instance); EraseInstancedEntityRecord(instance); } int numEntities = mes.numEntities; for (int i = 0; i < numEntities; ++i) { EraseEntityRecord(mes.GetEntity(i)); } int numMaterials = mes.numMaterials; for (int i = 0; i < numMaterials; ++i) { EraseMaterialRecord(mes.GetMaterial(i).id); } }
void OnRecvDelete(DeleteMessage mes) { int numEntities = mes.numEntities; for (int i = 0; i < numEntities; ++i) { EraseEntityRecord(mes.GetEntity(i)); } int numMaterials = mes.numMaterials; for (int i = 0; i < numMaterials; ++i) { EraseMaterialRecord(mes.GetMaterial(i).id); } }