Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
Sandbox.Game.Entities.Cube.MyOreDetectorComponent Class Reference

Public Member Functions

delegate bool CheckControlDelegate ()
 
 MyOreDetectorComponent ()
 
void Update (Vector3D position, bool checkControl=true)
 
void Clear ()
 

Public Attributes

const int QUERY_LOD = 1
 
const int CELL_SIZE_IN_VOXELS_BITS = 3
 
const int CELL_SIZE_IN_LOD_VOXELS = 1 << CELL_SIZE_IN_VOXELS_BITS
 
const float CELL_SIZE_IN_METERS = MyVoxelConstants.VOXEL_SIZE_IN_METRES * (1 << (CELL_SIZE_IN_VOXELS_BITS + QUERY_LOD))
 
const float CELL_SIZE_IN_METERS_HALF = CELL_SIZE_IN_METERS * 0.5f
 
CheckControlDelegate OnCheckControl
 

Properties

float DetectionRadius [get, set]
 
bool BroadcastUsingAntennas [get, set]
 
bool SetRelayedRequest [get, set]
 

Detailed Description

Definition at line 174 of file MyOreDetectorComponent.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyOreDetectorComponent.MyOreDetectorComponent ( )
inline

Definition at line 194 of file MyOreDetectorComponent.cs.

Member Function Documentation

delegate bool Sandbox.Game.Entities.Cube.MyOreDetectorComponent.CheckControlDelegate ( )
void Sandbox.Game.Entities.Cube.MyOreDetectorComponent.Clear ( )
inline

Definition at line 259 of file MyOreDetectorComponent.cs.

void Sandbox.Game.Entities.Cube.MyOreDetectorComponent.Update ( Vector3D  position,
bool  checkControl = true 
)
inline

Definition at line 203 of file MyOreDetectorComponent.cs.

Member Data Documentation

const int Sandbox.Game.Entities.Cube.MyOreDetectorComponent.CELL_SIZE_IN_LOD_VOXELS = 1 << CELL_SIZE_IN_VOXELS_BITS

Definition at line 178 of file MyOreDetectorComponent.cs.

const float Sandbox.Game.Entities.Cube.MyOreDetectorComponent.CELL_SIZE_IN_METERS = MyVoxelConstants.VOXEL_SIZE_IN_METRES * (1 << (CELL_SIZE_IN_VOXELS_BITS + QUERY_LOD))

Definition at line 179 of file MyOreDetectorComponent.cs.

const float Sandbox.Game.Entities.Cube.MyOreDetectorComponent.CELL_SIZE_IN_METERS_HALF = CELL_SIZE_IN_METERS * 0.5f

Definition at line 180 of file MyOreDetectorComponent.cs.

const int Sandbox.Game.Entities.Cube.MyOreDetectorComponent.CELL_SIZE_IN_VOXELS_BITS = 3

Definition at line 177 of file MyOreDetectorComponent.cs.

CheckControlDelegate Sandbox.Game.Entities.Cube.MyOreDetectorComponent.OnCheckControl

Definition at line 188 of file MyOreDetectorComponent.cs.

const int Sandbox.Game.Entities.Cube.MyOreDetectorComponent.QUERY_LOD = 1

Definition at line 176 of file MyOreDetectorComponent.cs.

Property Documentation

bool Sandbox.Game.Entities.Cube.MyOreDetectorComponent.BroadcastUsingAntennas
getset

Definition at line 190 of file MyOreDetectorComponent.cs.

float Sandbox.Game.Entities.Cube.MyOreDetectorComponent.DetectionRadius
getset

Definition at line 187 of file MyOreDetectorComponent.cs.

bool Sandbox.Game.Entities.Cube.MyOreDetectorComponent.SetRelayedRequest
getset

Definition at line 201 of file MyOreDetectorComponent.cs.


The documentation for this class was generated from the following file: