-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62e29d8
commit 57dffde
Showing
10 changed files
with
61 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,5 @@ public override VisualElement CreateInspectorGUI() | |
|
||
return root; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Package/Runtime/CrashKonijn.Agent.Runtime/AgentActionBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CrashKonijn.Agent.Core; | ||
|
||
namespace CrashKonijn.Agent.Runtime | ||
{ | ||
// Backwards compatibility for old actions | ||
public abstract class AgentActionBase<TActionData> : AgentActionBase<TActionData, EmptyActionProperties> | ||
where TActionData : IActionData, new() | ||
{ | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Package/Runtime/CrashKonijn.Agent.Runtime/AgentActionBase.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Package/Runtime/CrashKonijn.Agent.Runtime/EmptyActionProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using CrashKonijn.Agent.Core; | ||
|
||
namespace CrashKonijn.Agent.Runtime | ||
{ | ||
public class EmptyActionProperties : IActionProperties | ||
{ | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Package/Runtime/CrashKonijn.Agent.Runtime/EmptyActionProperties.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
Package/Runtime/CrashKonijn.Goap.Runtime/Behaviours/ActionBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using CrashKonijn.Agent.Core; | ||
using CrashKonijn.Agent.Runtime; | ||
|
||
namespace CrashKonijn.Goap.Runtime | ||
{ | ||
[Obsolete("Use GoapActionBase instead of ActionBase")] | ||
public abstract class ActionBase<TActionData> : GoapActionBase<TActionData, EmptyActionProperties> | ||
where TActionData : IActionData, new() | ||
{ | ||
public override IActionRunState Perform(IMonoAgent agent, TActionData data, IActionContext context) | ||
{ | ||
return this.Perform(agent, data, context as ActionContext); | ||
} | ||
|
||
public abstract ActionRunState Perform(IMonoAgent agent, TActionData data, ActionContext context); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Package/Runtime/CrashKonijn.Goap.Runtime/Behaviours/ActionBase.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters