public GenericStateVarKey(GenericStateVarKeyTemplate <ValueType, GenericArgument> parent, GenericArgument argument) : base(parent.Name + string.Format("<{0}>", "tmp" /*argument*/), parent.GetTypedDefaultValue()) { this.parent = parent; this.argument = argument; }
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); }
public GoapStateGenericParametrizedEntry(GenericStateVarKeyTemplate <T, Generic> key, AStateVarKey <Generic> variableAsGeneric, AStateVarKey <T> variableAsParameter) : base(key, default(T), variableAsGeneric) { this.variableAsParameter = variableAsParameter; }
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); }
public GoapStateGenericEntry(GenericStateVarKeyTemplate <T, Generic> key, T value, AStateVarKey <Generic> variableAsGeneric) : base(key, value) { this.variableAsGeneric = variableAsGeneric; }