Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | List of all members
Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector Class Reference
Inheritance diagram for Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector:
Sandbox.Game.WorldEnvironment.MyLogicalEnvironmentSectorBase VRage.Network.IMyEventProxy VRage.Network.IMyEventOwner

Public Member Functions

 MyProceduralLogicalSector (MyProceduralEnvironmentProvider provider, int x, int y, int localLod, MyObjectBuilder_ProceduralEnvironmentSector moduleData)
 
override unsafe void EnableItem (int itemId, bool enabled)
 
override unsafe void UpdateItemModel (int itemId, short modelId)
 
override unsafe void UpdateItemModelBatch (List< int > itemIds, short newModelId)
 
override T GetModule< T > ()
 
override IMyEnvironmentModule GetModuleForDefinition (MyRuntimeEnvironmentItemInfo def)
 
Vector3 GetRandomPerpendicularVector (ref Vector3 axis, int seed)
 
unsafe void ScanItems (int targetLod)
 
override void Init (MyObjectBuilder_EnvironmentSector sectorBuilder)
 
override MyObjectBuilder_EnvironmentSector GetObjectBuilder ()
 
override void GetItemDefinition (ushort key, out MyRuntimeEnvironmentItemInfo it)
 
override void Close ()
 
override void DebugDraw (int lod)
 
void RaiseItemEvent< TModule > (int logicalItem, object eventData, bool fromClient=false)
 Raise event from a storage module. More...
 
override void RaiseItemEvent< T > (int logicalItem, ref MyDefinitionId modDef, T eventData, bool fromClient)
 
void HandleItemEventServer (int logicalItem, SerializableDefinitionId def, [Serialize(MyObjectFlags.Dynamic|MyObjectFlags.Nullable, DynamicSerializerType=typeof(MyDynamicObjectResolver))] object data)
 
void HandleItemEventClient (int logicalItem, SerializableDefinitionId def, [Serialize(MyObjectFlags.Dynamic|MyObjectFlags.Nullable, DynamicSerializerType=typeof(MyDynamicObjectResolver))] object data)
 
void HandleItemEvent (int logicalItem, SerializableDefinitionId def, object data, bool fromClient)
 
void UpdateMinLod ()
 
override string ToString ()
 

Public Attributes

int MinimumScannedLod = MyEnvironmentSectorConstants.MaximumLod + 1
 
- Public Attributes inherited from Sandbox.Game.WorldEnvironment.MyLogicalEnvironmentSectorBase
long Id
 
Vector3D WorldPos
 
Vector3D[] Bounds
 

Properties

override List< ItemInfoItems [get]
 
override bool ServerOwned [get, set]
 
override string DebugData [get]
 
- Properties inherited from Sandbox.Game.WorldEnvironment.MyLogicalEnvironmentSectorBase
IMyEnvironmentOwner Owner [get, protected set]
 
abstract List< ItemInfoItems [get]
 
abstract string DebugData [get]
 
abstract bool ServerOwned [get, set]
 
int MinLod [get, protected set]
 

Additional Inherited Members

- Events inherited from Sandbox.Game.WorldEnvironment.MyLogicalEnvironmentSectorBase
Action OnClose
 

Detailed Description

Definition at line 26 of file MyProceduralLogicalSector.cs.

Constructor & Destructor Documentation

Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.MyProceduralLogicalSector ( MyProceduralEnvironmentProvider  provider,
int  x,
int  y,
int  localLod,
MyObjectBuilder_ProceduralEnvironmentSector  moduleData 
)
inline

Definition at line 56 of file MyProceduralLogicalSector.cs.

Member Function Documentation

override void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.Close ( )
inlinevirtual
override void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.DebugDraw ( int  lod)
inlinevirtual
override unsafe void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.EnableItem ( int  itemId,
bool  enabled 
)
inlinevirtual
override void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.GetItemDefinition ( ushort  key,
out MyRuntimeEnvironmentItemInfo  it 
)
inlinevirtual
override T Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.GetModule< T > ( )
inlinevirtual
override IMyEnvironmentModule Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.GetModuleForDefinition ( MyRuntimeEnvironmentItemInfo  def)
inlinevirtual
override MyObjectBuilder_EnvironmentSector Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.GetObjectBuilder ( )
inlinevirtual
Vector3 Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.GetRandomPerpendicularVector ( ref Vector3  axis,
int  seed 
)
inline

Definition at line 248 of file MyProceduralLogicalSector.cs.

void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.HandleItemEvent ( int  logicalItem,
SerializableDefinitionId  def,
object  data,
bool  fromClient 
)
inline

Handler for multiplayer events.

Depending on the provided module definition the event may be coming from server to clients or from a clientto the server.

Definition at line 658 of file MyProceduralLogicalSector.cs.

void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.HandleItemEventClient ( int  logicalItem,
SerializableDefinitionId  def,
[Serialize(MyObjectFlags.Dynamic | MyObjectFlags.Nullable, DynamicSerializerType = typeof(MyDynamicObjectResolver))] object  data 
)
inline

Definition at line 647 of file MyProceduralLogicalSector.cs.

void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.HandleItemEventServer ( int  logicalItem,
SerializableDefinitionId  def,
[Serialize(MyObjectFlags.Dynamic | MyObjectFlags.Nullable, DynamicSerializerType = typeof(MyDynamicObjectResolver))] object  data 
)
inline

Definition at line 639 of file MyProceduralLogicalSector.cs.

override void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.Init ( MyObjectBuilder_EnvironmentSector  sectorBuilder)
inlinevirtual
override void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.RaiseItemEvent< T > ( int  logicalItem,
ref MyDefinitionId  modDef,
eventData,
bool  fromClient 
)
inlinevirtual
void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.RaiseItemEvent< TModule > ( int  logicalItem,
object  eventData,
bool  fromClient = false 
)
inline

Raise event from a storage module.

Can be either a client event to server (fromClient = true) or a broadcast of a server event to all clients with this logical sector (fromClient = false).

Template Parameters
TModuleType of the storage module to notify
Parameters
logicalItemLogical item Id
eventDataData to send along with the event.
fromClientWeather this event comes from client to server or server to all clients.
Type Constraints
TModule :IMyEnvironmentModule 

Definition at line 618 of file MyProceduralLogicalSector.cs.

unsafe void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.ScanItems ( int  targetLod)
inline

Definition at line 313 of file MyProceduralLogicalSector.cs.

override string Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.ToString ( )
inline

Definition at line 737 of file MyProceduralLogicalSector.cs.

override unsafe void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.UpdateItemModel ( int  itemId,
short  modelId 
)
inlinevirtual
override unsafe void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.UpdateItemModelBatch ( List< int >  itemIds,
short  newModelId 
)
inlinevirtual
void Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.UpdateMinLod ( )
inline

Definition at line 715 of file MyProceduralLogicalSector.cs.

Member Data Documentation

int Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.MinimumScannedLod = MyEnvironmentSectorConstants.MaximumLod + 1

Definition at line 215 of file MyProceduralLogicalSector.cs.

Property Documentation

override string Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.DebugData
get

Definition at line 743 of file MyProceduralLogicalSector.cs.

override List<ItemInfo> Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.Items
get

Definition at line 185 of file MyProceduralLogicalSector.cs.

override bool Sandbox.Game.WorldEnvironment.MyProceduralLogicalSector.ServerOwned
getset

Definition at line 594 of file MyProceduralLogicalSector.cs.


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