39 public virtual void Update(
float dt) {
53 m_dayRange = valuesDictionary.GetValue<
float>(
"DayRange");
54 m_nightRange = valuesDictionary.GetValue<
float>(
"NightRange");
103 m_componentCreature.ComponentCreatureModel.LookRandomOrder =
true;
126 if (componentCreature !=
null) {
130 result = componentCreature;
static int Min(int x1, int x2)
static float Saturate(float x)
static int Max(int x1, int x2)
static float Lerp(float x1, float x2, float f)
ComponentCreature m_target
override float ImportanceLevel
SubsystemTime m_subsystemTime
StateMachine m_stateMachine
SubsystemSky m_subsystemSky
DynamicArray< ComponentBody > m_componentBodies
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual void Update(float dt)
virtual void SetImportanceLevel(float score)
virtual float ScoreTarget(ComponentCreature target)
SubsystemBodies m_subsystemBodies
virtual ComponentCreature FindTarget(out float targetScore)
ComponentPathfinding m_componentPathfinding
ComponentCreature m_componentCreature
ComponentHealth ComponentHealth
ComponentBody ComponentBody
ValuesDictionary ValuesDictionary
Component FindComponent(Type type, string name, bool throwOnError)
static Vector3 Normalize(Vector3 v)
static float Distance(Vector3 v1, Vector3 v2)