C# Class uFrame.ECS.JsonComponentRepository

Inheritance: ComponentRepositoryBehaviour
Mostra file Open project: InvertGames/uFrame.ECS

Public Methods

Method Description
GetDataByEntity ( int entityId, int componentId ) : JSONNode
Initialize ( PlayerDataGroup @group ) : void
LoadComponent ( IPlayerDataComponent ecsComponent ) : void
SaveComponent ( IPlayerDataComponent ecsComponent ) : void
SetDataByEntity ( int entityId, int componentId, JSONNode data ) : void

Method Details

GetDataByEntity() public method

public GetDataByEntity ( int entityId, int componentId ) : JSONNode
entityId int
componentId int
return JSONNode

Initialize() public method

public Initialize ( PlayerDataGroup @group ) : void
@group PlayerDataGroup
return void

LoadComponent() public method

public LoadComponent ( IPlayerDataComponent ecsComponent ) : void
ecsComponent IPlayerDataComponent
return void

SaveComponent() public method

public SaveComponent ( IPlayerDataComponent ecsComponent ) : void
ecsComponent IPlayerDataComponent
return void

SetDataByEntity() public method

public SetDataByEntity ( int entityId, int componentId, JSONNode data ) : void
entityId int
componentId int
data JSONNode
return void