-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTaskNode.cs
More file actions
40 lines (35 loc) · 1.16 KB
/
TaskNode.cs
File metadata and controls
40 lines (35 loc) · 1.16 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SharpDX;
namespace Alpha
{
public class TaskNode
{
/// <summary>
/// The position of the task in world space.
/// </summary>
public Vector3 WorldPosition { get; set; }
/// <summary>
/// Type of task we are performing. Different tasks have different underlying logic
/// </summary>
public TaskNodeType Type { get; set; }
/// <summary>
/// Bounds represents how close we must get to the node to complete it.
/// Some tasks require multiple actions within Bounds to be marked as complete.
/// </summary>
public int Bounds { get; set; }
/// <summary>
/// Counts the number of times the Task has been executed. Used for canceling invalid actions
/// </summary>
public int AttemptCount { get; set; }
public TaskNode(Vector3 position, int bounds, TaskNodeType type = TaskNodeType.Movement)
{
WorldPosition = position;
Type = type;
Bounds = bounds;
}
}
}