Exemplo n.º 1
0
 public GenericStateVarKey(GenericStateVarKeyTemplate <ValueType, GenericArgument> parent, GenericArgument argument) :
     base(parent.Name + string.Format("<{0}>", "tmp" /*argument*/), parent.GetTypedDefaultValue())
 {
     this.parent   = parent;
     this.argument = argument;
 }
Exemplo n.º 2
0
 protected void AddParametrizedGenericPrecondition <T, G>(GenericStateVarKeyTemplate <T, G> key, AStateVarKey <T> variableValue, AStateVarKey <G> variableGeneric)
 {
     preconditions.Add(new GoapStateGenericParametrizedEntry <T, G>(key, variableGeneric, variableValue));
     variables.Add(variableValue);
     variables.Add(variableGeneric);
 }
Exemplo n.º 3
0
 public GoapStateGenericParametrizedEntry(GenericStateVarKeyTemplate <T, Generic> key, AStateVarKey <Generic> variableAsGeneric, AStateVarKey <T> variableAsParameter) : base(key, default(T), variableAsGeneric)
 {
     this.variableAsParameter = variableAsParameter;
 }
Exemplo n.º 4
0
 protected void AddStaticGenericPrecondition <T, G>(GenericStateVarKeyTemplate <T, G> key, AStateVarKey <G> variable, T staticValue)
 {
     preconditions.Add(new GoapStateGenericEntry <T, G>(key, staticValue, variable));
     variables.Add(variable);
 }
Exemplo n.º 5
0
 public GoapStateGenericEntry(GenericStateVarKeyTemplate <T, Generic> key, T value, AStateVarKey <Generic> variableAsGeneric) : base(key, value)
 {
     this.variableAsGeneric = variableAsGeneric;
 }