Spaces:
Runtime error
Runtime error
using Photon.Deterministic; | |
using System.Collections.Generic; | |
namespace Quantum | |
{ | |
public abstract unsafe partial class GOAPAction | |
{ | |
public enum EResult | |
{ | |
Continue, | |
IsDone, | |
IsFailed, | |
} | |
// PUBLIC MEMBERS | |
public string Label; | |
[ | ]|
public GOAPState Conditions; | |
[ | ]|
public GOAPState Effects; | |
public bool Interruptible; | |
public abstract bool UsePlanStateValidation { get; } | |
// PUBLIC METHODS | |
public virtual bool ValidateAction(Frame frame, GOAPEntityContext context, GOAPState startState, out FP cost) | |
{ | |
cost = 1; | |
return true; | |
} | |
public virtual void ValidatePlanState(Frame frame, GOAPEntityContext context, GOAPState stateToValidate, GOAPState nextState, FP costToNextState, List<StateBackValidation> validatedStates) | |
{ | |
} | |
public virtual void Activate(Frame frame, GOAPEntityContext context) | |
{ | |
} | |
public virtual EResult Update(Frame frame, GOAPEntityContext context) | |
{ | |
return EResult.Continue; | |
} | |
public virtual void Deactivate(Frame frame, GOAPEntityContext context) | |
{ | |
} | |
} | |
} |