C# Class Common.GameEntityFactory

Inheritance: MonoBehaviour, IGameEntityFactory
Datei anzeigen Open project: gamemachine/gamemachine

Public Properties

Property Type Description
gameEntityPrefabs List
instance GameEntityFactory
setSpawnPoint bool

Public Methods

Method Description
Awake ( ) : void
Create ( ) : IGameEntity
Create ( string entityId, Common.Character character, GameEntityType entityType, Common.Vector3 spawnPoint, ControllerType controllerType ) : IGameEntity
CreateFromNetwork ( string entityId, Common.Character character, TrackData trackData ) : IGameEntity
CreateLocal ( GameEntityType entityType ) : IGameEntity
CreateLocalNpc ( string entityId, Common.Character character, Common.Vector3 spawnPosition, Common.GameObject prefab ) : IGameEntity
GetGameEntityPrefab ( string id ) : Common.GameObject

Private Methods

Method Description
GetEntityContainer ( ) : Common.GameObject
GetSpawnpoint ( GameEntityType entityType, Common.Character character ) : Common.Vector3
LoadUmaModel ( GameEntity gameEntity ) : Common.GameObject

Method Details

Awake() public method

public Awake ( ) : void
return void

Create() public method

public Create ( ) : IGameEntity
return IGameEntity

Create() public method

public Create ( string entityId, Common.Character character, GameEntityType entityType, Common.Vector3 spawnPoint, ControllerType controllerType ) : IGameEntity
entityId string
character Common.Character
entityType GameEntityType
spawnPoint Common.Vector3
controllerType ControllerType
return IGameEntity

CreateFromNetwork() public method

public CreateFromNetwork ( string entityId, Common.Character character, TrackData trackData ) : IGameEntity
entityId string
character Common.Character
trackData TrackData
return IGameEntity

CreateLocal() public method

public CreateLocal ( GameEntityType entityType ) : IGameEntity
entityType GameEntityType
return IGameEntity

CreateLocalNpc() public method

public CreateLocalNpc ( string entityId, Common.Character character, Common.Vector3 spawnPosition, Common.GameObject prefab ) : IGameEntity
entityId string
character Common.Character
spawnPosition Common.Vector3
prefab Common.GameObject
return IGameEntity

GetGameEntityPrefab() public method

public GetGameEntityPrefab ( string id ) : Common.GameObject
id string
return Common.GameObject

Property Details

gameEntityPrefabs public_oe property

public List gameEntityPrefabs
return List

instance public_oe static_oe property

public static GameEntityFactory,Common instance
return GameEntityFactory

setSpawnPoint public_oe property

public bool setSpawnPoint
return bool