mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-12 20:55:44 -05:00
Switcharoo to Gee Emm 2.3
This commit is contained in:
14
Project/scripts/object_get_depth/object_get_depth.gml
Normal file
14
Project/scripts/object_get_depth/object_get_depth.gml
Normal file
@@ -0,0 +1,14 @@
|
||||
/// @description Returns the depth of the specified object.
|
||||
/// @param {Number} obj The index of the object to check
|
||||
/// @return {Number} depth of the object
|
||||
function object_get_depth(argument0) {
|
||||
|
||||
var objID = argument0;
|
||||
var ret = 0;
|
||||
if (objID >= 0) && (objID < array_length_1d(global.__objectID2Depth)) {
|
||||
ret = global.__objectID2Depth[objID];
|
||||
} // end if
|
||||
return ret;
|
||||
|
||||
|
||||
}
|
||||
12
Project/scripts/object_get_depth/object_get_depth.yy
Normal file
12
Project/scripts/object_get_depth/object_get_depth.yy
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": true,
|
||||
"parent": {
|
||||
"name": "object",
|
||||
"path": "folders/Scripts/compatibility/object.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "object_get_depth",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
||||
Reference in New Issue
Block a user