mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-24 19:44:13 -05:00
Reordering a bit.
This commit is contained in:
10
Project/scripts/@object_get_depth/object_get_depth.gml
Normal file
10
Project/scripts/@object_get_depth/object_get_depth.gml
Normal file
@@ -0,0 +1,10 @@
|
||||
/// @description Returns the depth of the specified object.
|
||||
/// @param {Number} obj The index of the object to check
|
||||
/// @return {Number} depth of the object
|
||||
|
||||
var objID = argument0;
|
||||
var ret = 0;
|
||||
if (objID >= 0) && (objID < array_length_1d(global.__objectID2Depth)) {
|
||||
ret = global.__objectID2Depth[objID];
|
||||
} // end if
|
||||
return ret;
|
||||
8
Project/scripts/@object_get_depth/object_get_depth.yy
Normal file
8
Project/scripts/@object_get_depth/object_get_depth.yy
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "47499278-a397-46b2-ab97-0c5fc9c1e1cc",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "object_get_depth",
|
||||
"IsCompatibility": true,
|
||||
"IsDnD": false
|
||||
}
|
||||
Reference in New Issue
Block a user