Nebula
Loading...
Searching...
No Matches
Nebula.Game.NebulaApiV1 Class Reference

Inherits Nebula.Game.INebulaApi.

Public Member Functions

static UInt64 CreateEntity (uint worldId)
static bool IsValid (UInt64 entityId)
static bool HasInstance (UInt64 entityId)
static void DeleteEntity (UInt64 entityId)
static Vector3 GetPosition (UInt64 entityId)
static void SetPosition (UInt64 entityId, Vector3 position)
static Quaternion GetOrientation (UInt64 entityId)
static void SetOrientation (UInt64 entityId, Quaternion orientation)
static Vector3 GetScale (UInt64 entityId)
static void SetScale (UInt64 entityId, Vector3 scale)
static bool HasComponent (UInt64 entityId, uint componentId)
static void GetComponentData (UInt64 entityId, uint componentId, IntPtr data, int dataSize)
static void SetComponentData (UInt64 entityId, uint componentId, IntPtr data, int dataSize)
static uint GetDefaultWorldId ()
static bool HasWorld (uint worldId)
static bool IsSimulating (uint worldId)
static int SyncTimeSources (IntPtr buffer, int maxEntries)
static void SetTimeSourceTimeFactor (uint hash, float factor)
static void SetTimeSourcePauseCounter (uint hash, int counter)
static uint CreateTimeSource (uint hash, double fixedFrameTime, int maxStepsPerFrame)
static void SetGlobalTimeFactor (float factor)
static float GetGlobalTimeFactor ()

Static Public Member Functions

static unsafe uint GetComponentId (string name)

Private Member Functions

static uint GetComponentIdUtf8 (IntPtr name, uint length)

Member Function Documentation

◆ CreateEntity()

UInt64 Nebula.Game.NebulaApiV1.CreateEntity ( uint worldId)

◆ CreateTimeSource()

uint Nebula.Game.NebulaApiV1.CreateTimeSource ( uint hash,
double fixedFrameTime,
int maxStepsPerFrame )

◆ DeleteEntity()

void Nebula.Game.NebulaApiV1.DeleteEntity ( UInt64 entityId)

◆ GetComponentData()

void Nebula.Game.NebulaApiV1.GetComponentData ( UInt64 entityId,
uint componentId,
IntPtr data,
int dataSize )

◆ GetComponentId()

unsafe uint Nebula.Game.NebulaApiV1.GetComponentId ( string name)
inlinestatic

◆ GetComponentIdUtf8()

uint Nebula.Game.NebulaApiV1.GetComponentIdUtf8 ( IntPtr name,
uint length )
private

◆ GetDefaultWorldId()

uint Nebula.Game.NebulaApiV1.GetDefaultWorldId ( )

◆ GetGlobalTimeFactor()

float Nebula.Game.NebulaApiV1.GetGlobalTimeFactor ( )

◆ GetOrientation()

Quaternion Nebula.Game.NebulaApiV1.GetOrientation ( UInt64 entityId)

◆ GetPosition()

Vector3 Nebula.Game.NebulaApiV1.GetPosition ( UInt64 entityId)

◆ GetScale()

Vector3 Nebula.Game.NebulaApiV1.GetScale ( UInt64 entityId)

◆ HasComponent()

bool Nebula.Game.NebulaApiV1.HasComponent ( UInt64 entityId,
uint componentId )

◆ HasInstance()

bool Nebula.Game.NebulaApiV1.HasInstance ( UInt64 entityId)

◆ HasWorld()

bool Nebula.Game.NebulaApiV1.HasWorld ( uint worldId)

◆ IsSimulating()

bool Nebula.Game.NebulaApiV1.IsSimulating ( uint worldId)

◆ IsValid()

bool Nebula.Game.NebulaApiV1.IsValid ( UInt64 entityId)

◆ SetComponentData()

void Nebula.Game.NebulaApiV1.SetComponentData ( UInt64 entityId,
uint componentId,
IntPtr data,
int dataSize )

◆ SetGlobalTimeFactor()

void Nebula.Game.NebulaApiV1.SetGlobalTimeFactor ( float factor)

◆ SetOrientation()

void Nebula.Game.NebulaApiV1.SetOrientation ( UInt64 entityId,
Quaternion orientation )

◆ SetPosition()

void Nebula.Game.NebulaApiV1.SetPosition ( UInt64 entityId,
Vector3 position )

◆ SetScale()

void Nebula.Game.NebulaApiV1.SetScale ( UInt64 entityId,
Vector3 scale )

◆ SetTimeSourcePauseCounter()

void Nebula.Game.NebulaApiV1.SetTimeSourcePauseCounter ( uint hash,
int counter )

◆ SetTimeSourceTimeFactor()

void Nebula.Game.NebulaApiV1.SetTimeSourceTimeFactor ( uint hash,
float factor )

◆ SyncTimeSources()

int Nebula.Game.NebulaApiV1.SyncTimeSources ( IntPtr buffer,
int maxEntries )

The documentation for this class was generated from the following file:
  • /github/workspace/code/addons/nsharp/NebulaEngine/engine/Api.cs