Space Engineers
Classes | Enumerations
Package VRage.Voxels

Classes

interface  IMyClipmapCell
 
interface  IMyClipmapCellHandler
 
struct  MyCellCoord
 
class  MyClipmap
 
class  MyClipmap_CellData
 
struct  MyClipmapCellBatch
 
class  MyStorageData
 
class  MyVoxelConstants
 
class  MyVoxelCoordSystems
 Functions for transforming to and from various coordinate systems in voxel maps and for computing bounding boxes of various types of cells. Note that local and world positions are (and should be) always in the min-corner!
 
class  MyVoxelEnumExtensions
 

Enumerations

enum  MyVoxelRangeType : byte { MyVoxelRangeType.EMPTY, MyVoxelRangeType.FULL, MyVoxelRangeType.MIXED }
 
enum  MyStorageDataTypeEnum { MyStorageDataTypeEnum.Content, MyStorageDataTypeEnum.Material, MyStorageDataTypeEnum.Occlusion, MyStorageDataTypeEnum.NUM_STORAGE_DATA_TYPES }
 
enum  MyStorageDataTypeFlags : byte {
  MyStorageDataTypeFlags.None = 0, MyStorageDataTypeFlags.Content = 1 << MyStorageDataTypeEnum.Content, MyStorageDataTypeFlags.Material = 1 << MyStorageDataTypeEnum.Material, MyStorageDataTypeFlags.ContentAndMaterial = Content | Material,
  MyStorageDataTypeFlags.Occlusion = 1 << MyStorageDataTypeEnum.Occlusion, MyStorageDataTypeFlags.All = 0xFF
}
 
enum  MyVoxelRequestFlags {
  MyVoxelRequestFlags.SurfaceMaterial = 1 << 0, MyVoxelRequestFlags.ConsiderContent = 1 << 1, MyVoxelRequestFlags.EmptyContent = 1 << 3, MyVoxelRequestFlags.FullContent = 1 << 4,
  MyVoxelRequestFlags.OneMaterial = 1 << 5, MyVoxelRequestFlags.AdviseCache = 1 << 6, MyVoxelRequestFlags.ContentChecked = 1 << 7, MyVoxelRequestFlags.ContentCheckedDeep = 1 << 8,
  MyVoxelRequestFlags.DoNotCheck = 1 << 16, MyVoxelRequestFlags.RequestFlags = ConsiderContent | SurfaceMaterial
}
 Flags used when requesting voxel materials and content. More...
 
enum  OperationType : byte { OperationType.Fill, OperationType.Paint, OperationType.Cut }
 Type of voxel operation to perform More...
 
enum  MyClipmapScaleEnum { MyClipmapScaleEnum.Normal, MyClipmapScaleEnum.Massive }
 

Enumeration Type Documentation

Enumerator
Normal 
Massive 

Definition at line 139 of file Enums.cs.

Enumerator
Content 
Material 
Occlusion 
NUM_STORAGE_DATA_TYPES 

Definition at line 13 of file Enums.cs.

Enumerator
None 
Content 
Material 
ContentAndMaterial 
Occlusion 
All 

Definition at line 23 of file Enums.cs.

Enumerator
EMPTY 
FULL 
MIXED 

Definition at line 6 of file Enums.cs.

Flags used when requesting voxel materials and content.

These flags allow for optimizations such as avoiding expensive material computations or quickly assigning the whole storage the same material or content.

Enumerator
SurfaceMaterial 

Materials are assigned only to surface (convention now is materials to be filled are 0, rest is left null (255)

ConsiderContent 

Assign material according to content, i.e. null where empty

EmptyContent 

Content is empty, materials are unassigned

FullContent 

Content is full

OneMaterial 

The whole assigned storage area contains a single material, the material is on the first cell

AdviseCache 

cache storage chunks, this only works for lod0

ContentChecked 

Storages that do support content hints will mark this, this is also the flag they should check when doing this optimization.

ContentCheckedDeep 

When the content is empty or full this flag tells that the content is empty or full at all lower lod levels.

DoNotCheck 

Do not check for containment beforehand, assume the caller expects content

RequestFlags 

Minimum flags to use when making requests

Definition at line 43 of file Enums.cs.

Type of voxel operation to perform

Enumerator
Fill 

Fills in a range with voxels

Paint 

Paints a range of voxels a different material

Cut 

Cuts out a range of voxels

Definition at line 102 of file Enums.cs.