class

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"
Source
new(expression : String)
Source

Instance methods

evaluate(engine : Core::Engine) : Bool
Source
expression
Source
expression=(expression : String)
Source