C# Class GameMachine.NpcManager

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: gamemachine/gamemachine Class Usage Examples

Public Properties

Property Type Description
agroRange float
awarenessRange float
buildObjectLosMask UnityEngine.LayerMask
createServerNpcs bool
gameEntitiesPerPrefab int
gameEntityLosMask UnityEngine.LayerMask
groupUpdateInterval float
hitMask UnityEngine.LayerMask
instance NpcManager
meleeDistance float
npcUpdateInterval float
prefabNames List
rangedDistance float
reachedTargetLength float
useNavmesh bool

Public Methods

Method Description
GetEntityByCharacterId ( string characterId ) : IGameEntity
GetEntityById ( string entityId ) : IGameEntity
HasNpc ( string characterId ) : bool
UpdateTracking ( ) : void

Private Methods

Method Description
Awake ( ) : void
CreateGameEntity ( string entityId, io.gamemachine.messages.Character character, Vector3 spawnPosition, GameObject prefab ) : IGameEntity
CreateNpc ( NpcGroup group, NpcDef npcDef, io.gamemachine.messages.Character character, int order ) : void
CreateNpcs ( ) : void
Load ( ) : io.gamemachine.messages.Characters
LoadNpcs ( ) : void
Save ( io.gamemachine.messages.Characters characters ) : void
SendTrackDatas ( io.gamemachine.messages.AgentTrackData agentTrackData ) : void
Start ( ) : void

Method Details

GetEntityByCharacterId() public method

public GetEntityByCharacterId ( string characterId ) : IGameEntity
characterId string
return IGameEntity

GetEntityById() public method

public GetEntityById ( string entityId ) : IGameEntity
entityId string
return IGameEntity

HasNpc() public method

public HasNpc ( string characterId ) : bool
characterId string
return bool

UpdateTracking() public method

public UpdateTracking ( ) : void
return void

Property Details

agroRange public_oe property

public float agroRange
return float

awarenessRange public_oe property

public float awarenessRange
return float

buildObjectLosMask public_oe property

public LayerMask,UnityEngine buildObjectLosMask
return UnityEngine.LayerMask

createServerNpcs public_oe property

public bool createServerNpcs
return bool

gameEntitiesPerPrefab public_oe property

public int gameEntitiesPerPrefab
return int

gameEntityLosMask public_oe property

public LayerMask,UnityEngine gameEntityLosMask
return UnityEngine.LayerMask

groupUpdateInterval public_oe property

public float groupUpdateInterval
return float

hitMask public_oe property

public LayerMask,UnityEngine hitMask
return UnityEngine.LayerMask

instance public_oe static_oe property

public static NpcManager,GameMachine instance
return NpcManager

meleeDistance public_oe property

public float meleeDistance
return float

npcUpdateInterval public_oe property

public float npcUpdateInterval
return float

prefabNames public_oe property

public List prefabNames
return List

rangedDistance public_oe property

public float rangedDistance
return float

reachedTargetLength public_oe property

public float reachedTargetLength
return float

useNavmesh public_oe property

public bool useNavmesh
return bool