Commit 4058bc80 authored by twanvl's avatar twanvl

store things in ScriptValues (for AnyValue)

parent a0bc8b71
......@@ -33,6 +33,7 @@ void store(const ScriptValueP& val, Defaultable<Color>& var) { var.assign(val->
void store(const ScriptValueP& val, Defaultable<AColor>& var) { var.assign(val->toColor()); }
void store(const ScriptValueP& val, Alignment& var) { var = from_string(val->toString()); }
void store(const ScriptValueP& val, Direction& var) { parse_enum(val->toString(),var); }
void store(const ScriptValueP& val, ScriptValueP& var) { var = val; }
// ----------------------------------------------------------------------------- : OptionalScript
......
......@@ -34,6 +34,7 @@ void store(const ScriptValueP& val, Defaultable<String>& var);
void store(const ScriptValueP& val, Defaultable<Color>& var);
void store(const ScriptValueP& val, Alignment& var);
void store(const ScriptValueP& val, Direction& var);
void store(const ScriptValueP& val, ScriptValueP& var);
// ----------------------------------------------------------------------------- : OptionalScript
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment