Refactor AI considerations (#1278)
Considerations are now instantiated under a manager and re-used between entities where they pass in their blackboard to get a score back. Also makes the API a bit nicer to use. Also some random cleanup. Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -56,6 +56,11 @@ namespace Content.Server.AI.WorldState
|
||||
}
|
||||
}
|
||||
|
||||
public void GetState(Type type, out IAiState state)
|
||||
{
|
||||
state = _states[type];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the AI state class
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user