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 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 position)
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 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)

◆ 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 ( )

◆ 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 )

◆ IsValid()

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

◆ SetComponentData()

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

◆ 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 position )

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