Nebula
Loading...
Searching...
No Matches
Scripting::Api Namespace Reference

Functions

bool EntityIsValid (uint64_t entity)
 
uint64_t EntityCreateFromTemplate (uint32_t worldId, const char *tmpl)
 
void EntityDelete (uint64_t entity)
 
bool EntityHasComponent (uint64_t entity, uint32_t componentId)
 
Math::float4 EntityGetPosition (uint64_t entity)
 
void EntitySetPosition (uint64_t entity, Math::vec3 pos)
 
Math::float4 EntityGetOrientation (uint64_t entity)
 
void EntitySetOrientation (uint64_t entity, Math::quat orientation)
 
Math::float4 EntityGetScale (uint64_t entity)
 
void EntitySetScale (uint64_t entity, Math::vec3 scale)
 
uint32_t ComponentGetId (const char *name)
 
void ComponentGetData (uint64_t entityId, uint32_t componentId, void *outData, int dataSize)
 
void ComponentSetData (uint64_t entityId, uint32_t componentId, void *data, int dataSize)
 
uint32_t WorldGetDefaultWorldId ()
 

Function Documentation

◆ ComponentGetData()

NEBULA_EXPORT void Scripting::Api::ComponentGetData ( uint64_t entityId,
uint32_t componentId,
void * outData,
int dataSize )

◆ ComponentGetId()

NEBULA_EXPORT uint32_t Scripting::Api::ComponentGetId ( const char * name)

◆ ComponentSetData()

NEBULA_EXPORT void Scripting::Api::ComponentSetData ( uint64_t entityId,
uint32_t componentId,
void * data,
int dataSize )

◆ EntityCreateFromTemplate()

NEBULA_EXPORT uint64_t Scripting::Api::EntityCreateFromTemplate ( uint32_t worldId,
const char * tmpl )

◆ EntityDelete()

NEBULA_EXPORT void Scripting::Api::EntityDelete ( uint64_t entity)

◆ EntityGetOrientation()

NEBULA_EXPORT Math::float4 Scripting::Api::EntityGetOrientation ( uint64_t entity)

◆ EntityGetPosition()

NEBULA_EXPORT Math::float4 Scripting::Api::EntityGetPosition ( uint64_t entity)

◆ EntityGetScale()

NEBULA_EXPORT Math::float4 Scripting::Api::EntityGetScale ( uint64_t entity)

◆ EntityHasComponent()

NEBULA_EXPORT bool Scripting::Api::EntityHasComponent ( uint64_t entity,
uint32_t componentId )

◆ EntityIsValid()

NEBULA_EXPORT bool Scripting::Api::EntityIsValid ( uint64_t entity)

◆ EntitySetOrientation()

NEBULA_EXPORT void Scripting::Api::EntitySetOrientation ( uint64_t entity,
Math::quat orientation )

◆ EntitySetPosition()

NEBULA_EXPORT void Scripting::Api::EntitySetPosition ( uint64_t entity,
Math::vec3 pos )

◆ EntitySetScale()

NEBULA_EXPORT void Scripting::Api::EntitySetScale ( uint64_t entity,
Math::vec3 scale )

◆ WorldGetDefaultWorldId()

NEBULA_EXPORT uint32_t Scripting::Api::WorldGetDefaultWorldId ( )