Add deprecated args field to Point.Register

Introduces a self.args field to the Point.Register function, marked as deprecated for future removal 2025-09-10. This change preserves compatibility for code relying on the args property.
This commit is contained in:
Mr.Crowley committed 2025-09-10 17:43:18 -05:00
1 parent bc3558c622
commit 8215a16c27
1 file changed
+1
+1
View File
@@ -99,6 +99,7 @@ function Point.Register(id, target, distance, args, _onEnter, _onExit, _onUpdate
self.onExit = _onExit or function() end
self.onUpdate = _onUpdate or function() end
self.inside = false -- Track if player is inside
self.args = args or {} --DEPRICATED 2025-09-10
local grid = Grid.GetCellByCoords(coords)
grid[id] = self
Point.All[id] = self