-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBrainDebugInfo.cs
More file actions
61 lines (57 loc) · 1.54 KB
/
BrainDebugInfo.cs
File metadata and controls
61 lines (57 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) 2023 Vladimir Popov zor1994@gmail.com https://github.com/ZorPastaman/UtilityAI
using System.Collections.Generic;
using Zor.UtilityAI.Core;
namespace Zor.UtilityAI.Debugging
{
/// <summary>
/// <see cref="Brain"/> debug info. It's usually used to show a state of a <see cref="Brain"/> in ui.
/// </summary>
/// <seealso cref="Brain.FillDebugInfo"/>
public sealed class BrainDebugInfo
{
/// <summary>
/// <see cref="Action"/> infos.
/// </summary>
public readonly List<ActionInfo> actionInfos = new();
/// <summary>
/// Brain settings.
/// </summary>
public BrainSettings brainSettings;
/// <summary>
/// <see cref="Action"/> info.
/// </summary>
public sealed class ActionInfo
{
/// <summary>
/// <see cref="Action"/> name.
/// </summary>
public string name = string.Empty;
/// <summary>
/// <see cref="Consideration"/> infos.
/// </summary>
public readonly List<ConsiderationInfo> considerationInfos = new();
/// <summary>
/// <see cref="Action"/> utility.
/// </summary>
public float utility;
/// <summary>
/// Is this <see cref="Action"/> currently active in the <see cref="Brain"/>.
/// </summary>
public bool isActive;
}
/// <summary>
/// <see cref="Consideration"/> info.
/// </summary>
public sealed class ConsiderationInfo
{
/// <summary>
/// <see cref="Consideration"/> name.
/// </summary>
public string name = string.Empty;
/// <summary>
/// <see cref="Consideration"/> utility.
/// </summary>
public float utility;
}
}
}