immersive-home/app/addons/rdot/array.gd

13 lines
284 B
GDScript3
Raw Normal View History

2024-04-09 16:30:23 +03:00
class_name RdotArray
static func do_set(array: Array, index: int, value):
if index >= array.size():
array.resize(index + 1)
array[index] = value
static func do_get(array: Array, index: int):
if index >= array.size():
return null
return array[index]