PointClickEngine::Scenes::StringCondition
Inherits PointClickEngine::Scenes::Condition < YAML::Serializable < Reference < Object
String-based condition using the new type-safe condition parser
This allows using the powerful Core::Conditions syntax in YAML files:
condition:
type: string
expression: "has_key && gold >= 100 || quest:main:completed"
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
String-based condition using the new type-safe condition parser
This allows using the powerful Core::Conditions syntax in YAML files:
condition:
type: string
expression: "has_key && gold >= 100 || quest:main:completed"
new(expression : String)
SourceInstance methods
evaluate(engine : Core::Engine) : Bool
Sourceexpression
Sourceexpression=(expression : String)
Source