Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
final class ConVar : ConsoleCommand {
string name;
double value;
ConVar(const string& Name, double initial = 0) {
name = Name;
value = initial;
addConsoleCommand(Name, this);
}
void execute(const string& args) {
if(args.length != 0)
value = toDouble(args);
print(name + " = " + value);
}
};