IMyVoxelMap IMyVoxelMaps.CreateVoxelMap(string storageName, IMyStorage storage, Vector3D position,long voxelMapId)
 {
     var voxelMap = new MyVoxelMap();
     voxelMap.EntityId = voxelMapId;
     voxelMap.Init(storageName, storage as Sandbox.Engine.Voxels.IMyStorage, position);
     MyEntities.Add(voxelMap);
     return voxelMap;
 }
Exemple #2
0
        IMyVoxelMap IMyVoxelMaps.CreateVoxelMap(string storageName, IMyStorage storage, Vector3D position, long voxelMapId)
        {
            var voxelMap = new MyVoxelMap();

            voxelMap.EntityId = voxelMapId;
            voxelMap.Init(storageName, storage as Sandbox.Engine.Voxels.IMyStorage, position);
            MyEntities.Add(voxelMap);
            return(voxelMap);
        }