StorageInterface
The StorageInterface interface represents the interface of a store.
Properties
actors
actors:
string
[] |Map
<string
,any
>
Source
components
components:
Components
|Map
<string
,any
>
Source
componentsIndex
componentsIndex:
ComponentsIndex
<string
,string
>
Source
entities
entities:
string
[] |Map
<string
,any
>
Source
indexes
indexes:
Object
Index signature
[key
: string
]: Object
Source
inputs
inputs:
Inputs
Source
typeCtors
typeCtors:
Object
Index signature
[key
: string
]: Function
Source
types
types:
Object
Index signature
[key
: string
]: any
Source
Methods
destroyActor()
destroyActor(
id
):boolean
|Promise
<boolean
>
Parameters
• id: string
Returns
boolean
| Promise
<boolean
>
Source
destroyComponent()
destroyComponent(
id
,key
):void
|Promise
<void
>
Parameters
• id: string
• key: string
Returns
void
| Promise
<void
>
Source
destroyEntity()
destroyEntity(
id
):boolean
|Promise
<boolean
>
Parameters
• id: string
Returns
boolean
| Promise
<boolean
>
Source
destroyId()
destroyId(
list
,id
):boolean
|Promise
<boolean
>
Parameters
• list: any
• id: string
Returns
boolean
| Promise
<boolean
>
Source
findComponent()
findComponent(
id
,key
):any
Parameters
• id: string
• key: string
Returns
any
Source
findComponents()
findComponents(
id
):Components
|Promise
<Components
>
Parameters
• id: string
Returns
Components
| Promise
<Components
>
Source
findInput()
findInput(
id
,index
):InputPayload
|Promise
<InputPayload
>
Parameters
• id: string
• index: number
Returns
InputPayload
| Promise
<InputPayload
>
Source
findInputs()
Parameters
• id: string
Returns
Source
getActors()
getActors():
string
[] |Emitter
<string
[]>
Returns
string
[] | Emitter
<string
[]>
Source
getComponents()
getComponents():
Components
|Emitter
<Components
>
Returns
Components
| Emitter
<Components
>
Source
getEntities()
getEntities():
string
[] |Emitter
<string
[]>
Returns
string
[] | Emitter
<string
[]>
Source
getInputs()
Returns
Source
isActor()
isActor(
id
):boolean
Parameters
• id: string
Returns
boolean
Source
isEntity()
isEntity(
id
):boolean
Parameters
• id: string
Returns
boolean
Source
listActors()
listActors(
query
,pageSize
):string
[][] |Emitter
<string
[][]>
Parameters
• query: any
• pageSize: number
Returns
string
[][] | Emitter
<string
[][]>
Source
listComponents()
listComponents(
query
,pageSize
):Components
[] |Emitter
<Components
[]>
Parameters
• query: any
• pageSize: number
Returns
Components
[] | Emitter
<Components
[]>
Source
listEntities()
listEntities(
query
,pageSize
):string
[][] |Emitter
<string
[][]>
Parameters
• query: any
• pageSize: number
Returns
string
[][] | Emitter
<string
[][]>
Source
listInputs()
Parameters
• query: any
• pageSize: number
Returns
Source
queryComponents()
queryComponents(
query
):Set
<any
> |Promise
<Set
<any
>>
Parameters
• query: any
Returns
Set
<any
> | Promise
<Set
<any
>>
Source
removeComponentsIndex()
removeComponentsIndex(
id
,key
,prevValue
):void
|Promise
<void
>
Parameters
• id: string
• key: string
• prevValue: any
Returns
void
| Promise
<void
>
Source
setActors()
setActors(
actors
):string
[] |Promise
<string
[]>
Parameters
• actors: string
[]
Returns
string
[] | Promise
<string
[]>
Source
setComponents()
setComponents(
components
):Components
|Promise
<Components
>
Parameters
• components: Components
Returns
Components
| Promise
<Components
>
Source
setEntities()
setEntities(
entities
):string
[] |Promise
<string
[]>
Parameters
• entities: any
Returns
string
[] | Promise
<string
[]>
Source
setInputs()
Parameters
• inputs: any
Returns
Source
storeActor()
storeActor(
id
):boolean
|Promise
<boolean
>
Parameters
• id: string
Returns
boolean
| Promise
<boolean
>
Source
storeComponent()
storeComponent(
id
,key
,value
):void
|Promise
<void
>
Parameters
• id: string
• key: string
• value: any
Returns
void
| Promise
<void
>
Source
storeEntity()
storeEntity(
id
):boolean
|Promise
<boolean
>
Parameters
• id: string
Returns
boolean
| Promise
<boolean
>
Source
storeId()
storeId(
list
,id
):boolean
|Promise
<boolean
>
Parameters
• list: any
• id: string
Returns
boolean
| Promise
<boolean
>
Source
storeInput()
storeInput(
id
,input
,tick
):number
|Promise
<number
>
Parameters
• id: string
• input: any
• tick: number
Returns
number
| Promise
<number
>
Source
updateComponentsIndex()
updateComponentsIndex(
id
,key
,prevValue
,value
):void
|Promise
<void
>
Parameters
• id: string
• key: string
• prevValue: any
• value: any
Returns
void
| Promise
<void
>
Source
Generated using typedoc-plugin-markdown and TypeDoc