mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-16 05:37:49 -05:00
Implement more map api functions
This commit is contained in:
@@ -73,3 +73,10 @@ QJSValue Scripting::fromBlock(Block block) {
|
||||
obj.setProperty("rawValue", block.rawValue());
|
||||
return obj;
|
||||
}
|
||||
|
||||
QJSValue Scripting::dimensions(int width, int height) {
|
||||
QJSValue obj = instance->engine->newObject();
|
||||
obj.setProperty("width", width);
|
||||
obj.setProperty("height", height);
|
||||
return obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user