mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-11 16:22:12 +00:00
Added Vec2 initialization
This commit is contained in:
parent
aa312cbc3b
commit
74da7a7590
@ -137,6 +137,11 @@ boost::any CPPFunction(const string& name, const vector<boost::any>& args)
|
||||
cout << AnyAsString(args[0]);
|
||||
else if (name == "CPP.System.PrintLine")
|
||||
cout << AnyAsString(args[0]) << endl;
|
||||
else if (name == "CPP.System.Vec2")
|
||||
{
|
||||
Vec2 v(AnyAsFloat(args[0]), AnyAsFloat(args[1]));
|
||||
return v;
|
||||
}
|
||||
else
|
||||
LogWarning("CPP function \'" + name + "\' does not exist.");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user