Automatic conversion of keyword parameter to number;

Made alignment scriptable

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@386 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-17 00:46:57 +00:00
parent d2fe3b6ba0
commit ee8f14c2ed
6 changed files with 21 additions and 3 deletions
+3
View File
@@ -12,6 +12,8 @@
#include <script/script.hpp>
#include <script/value.hpp>
Alignment from_string(const String&);
// ----------------------------------------------------------------------------- : Store
void store(const ScriptValueP& val, String& var) { var = val->toString(); }
@@ -21,6 +23,7 @@ void store(const ScriptValueP& val, bool& var) { var = static_cas
void store(const ScriptValueP& val, Color& var) { var = *val; }
void store(const ScriptValueP& val, Defaultable<String>& var) { var.assign(*val); }
void store(const ScriptValueP& val, Defaultable<Color>& var) { var.assign(*val); }
void store(const ScriptValueP& val, Alignment& var) { var = from_string(val->toString()); }
// ----------------------------------------------------------------------------- : OptionalScript