43 public virtual void Update(
float dt) {
58 m_dayRange = valuesDictionary.GetValue<
float>(
"DayRange");
59 m_nightRange = valuesDictionary.GetValue<
float>(
"NightRange");
60 m_minRange = valuesDictionary.GetValue<
float>(
"MinRange");
75 if (componentPlayer !=
null
119 m_componentCreature.ComponentCreatureModel.LookRandomOrder =
true;
134 if (componentCreature !=
null) {
138 result = componentCreature;
156 return num * num - num2;
static int Min(int x1, int x2)
static int Max(int x1, int x2)
ComponentHealth ComponentHealth
ComponentBody ComponentBody
override float ImportanceLevel
virtual float ScoreTarget(ComponentCreature target)
SubsystemSky m_subsystemSky
ComponentCreature m_target
virtual void Update(float dt)
ComponentPathfinding m_componentPathfinding
SubsystemGameInfo m_subsystemGameInfo
ComponentCreature m_componentCreature
SubsystemTime m_subsystemTime
SubsystemBodies m_subsystemBodies
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
StateMachine m_stateMachine
virtual ComponentCreature FindTarget()
DynamicArray< ComponentBody > m_componentBodies
ComponentSleep ComponentSleep
ValuesDictionary ValuesDictionary
Component FindComponent(Type type, string name, bool throwOnError)
static float DistanceSquared(Vector3 v1, Vector3 v2)