Class: SectorScene
Methods
Fields
| Name | Type | Description |
|---|---|---|
physics | PhysicsDynamicsWorld |
Method declarations
Method: addComponentBounds
lua
function SectorScene:addComponentBounds(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentCollisionShape
lua
function SectorScene:addComponentCollisionShape(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentGrid
lua
function SectorScene:addComponentGrid(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentIcon
lua
function SectorScene:addComponentIcon(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentLabel
lua
function SectorScene:addComponentLabel(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentModel
lua
function SectorScene:addComponentModel(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentNetwork
lua
function SectorScene:addComponentNetwork(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentPathfinding
lua
function SectorScene:addComponentPathfinding(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentPlayerControl
lua
function SectorScene:addComponentPlayerControl(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentRigidBody
lua
function SectorScene:addComponentRigidBody(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentRigidBody
lua
function SectorScene:addComponentRigidBody(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentShip
lua
function SectorScene:addComponentShip(
entityId,
data
) endParameters:
- entityId (
integer) - data (
table)
Returns:
Method: addComponentTransform
lua
function SectorScene:addComponentTransform(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: addEntityType
lua
function SectorScene:addEntityType(
name,
type
) endParameters:
- name (
string) - Name of the entity to define - type (
table) - Entity class as a table (not an instance)
Method: createEntity
lua
function SectorScene:createEntity() endReturns:
integer- new entity ID
Method: createEntityType
lua
function SectorScene:createEntityType(
name,
props
) endParameters:
- name (
string) - Name of the entity type to spawn - props (
table|nil) - Optional properties to pass to onSpawn function
Returns:
table- new entity instance
Method: getComponentBounds
lua
function SectorScene:getComponentBounds(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentCollisionShape
lua
function SectorScene:getComponentCollisionShape(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentGrid
lua
function SectorScene:getComponentGrid(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentIcon
lua
function SectorScene:getComponentIcon(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentLabel
lua
function SectorScene:getComponentLabel(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentModel
lua
function SectorScene:getComponentModel(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentNetwork
lua
function SectorScene:getComponentNetwork(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentPathfinding
lua
function SectorScene:getComponentPathfinding(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentPlayerControl
lua
function SectorScene:getComponentPlayerControl(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentRigidBody
lua
function SectorScene:getComponentRigidBody(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentRigidBody
lua
function SectorScene:getComponentRigidBody(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentShip
lua
function SectorScene:getComponentShip(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: getComponentTransform
lua
function SectorScene:getComponentTransform(
entityId
) endParameters:
- entityId (
integer)
Returns:
Method: patchComponentBounds
lua
function SectorScene:patchComponentBounds(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentCollisionShape
lua
function SectorScene:patchComponentCollisionShape(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentGrid
lua
function SectorScene:patchComponentGrid(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentIcon
lua
function SectorScene:patchComponentIcon(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentLabel
lua
function SectorScene:patchComponentLabel(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentModel
lua
function SectorScene:patchComponentModel(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentNetwork
lua
function SectorScene:patchComponentNetwork(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentPathfinding
lua
function SectorScene:patchComponentPathfinding(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentPlayerControl
lua
function SectorScene:patchComponentPlayerControl(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentRigidBody
lua
function SectorScene:patchComponentRigidBody(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentRigidBody
lua
function SectorScene:patchComponentRigidBody(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentShip
lua
function SectorScene:patchComponentShip(
entityId
) endParameters:
- entityId (
integer)
Method: patchComponentTransform
lua
function SectorScene:patchComponentTransform(
entityId
) endParameters:
- entityId (
integer)
Method: removeEntity
lua
function SectorScene:removeEntity(
entityId
) endParameters:
- entityId (
integer)
Field declarations
Field: physics
Type: PhysicsDynamicsWorld
