A Smoll game engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 

54 行
988 B

namespace Smoll.Ex4.Commands {
interface IScriptable {
}
class Number : IScriptable {
public double value;
public Number(double value) {
this.value = value;
}
public override string ToString()
{
return value.ToString();
}
}
class Complex : IScriptable {
public Complex value;
public override string ToString()
{
return value.ToString();
}
}
class Atom : IScriptable {
public string value;
public Atom(string value) {
this.value = value;
}
public override string ToString()
{
return "[[" + value.ToString() + "]]";
}
}
class String : IScriptable {
public string value;
public String(string value) {
this.value = value;
}
public override string ToString()
{
return value;
}
}
}