C# Class Common.GameEntityFactory

Inheritance: MonoBehaviour, IGameEntityFactory
Afficher le fichier Open project: gamemachine/gamemachine

Méthodes publiques

Свойство Type Description
gameEntityPrefabs List
instance GameEntityFactory
setSpawnPoint bool

Méthodes publiques

Méthode 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

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

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Create() public méthode

public Create ( ) : IGameEntity
Résultat IGameEntity

Create() public méthode

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
Résultat IGameEntity

CreateFromNetwork() public méthode

public CreateFromNetwork ( string entityId, Common.Character character, TrackData trackData ) : IGameEntity
entityId string
character Common.Character
trackData TrackData
Résultat IGameEntity

CreateLocal() public méthode

public CreateLocal ( GameEntityType entityType ) : IGameEntity
entityType GameEntityType
Résultat IGameEntity

CreateLocalNpc() public méthode

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
Résultat IGameEntity

GetGameEntityPrefab() public méthode

public GetGameEntityPrefab ( string id ) : Common.GameObject
id string
Résultat Common.GameObject

Property Details

gameEntityPrefabs public_oe property

public List gameEntityPrefabs
Résultat List

instance public_oe static_oe property

public static GameEntityFactory,Common instance
Résultat GameEntityFactory

setSpawnPoint public_oe property

public bool setSpawnPoint
Résultat bool