diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-04 12:03:23 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-04 12:03:23 +0800 |
| commit | e7b8b3c3113cbdb652a27dce888e6b5a1c97f9a4 (patch) | |
| tree | bf04bc1d612cd8c69e49ad079ba535f1834f1689 /objects/Loot.lua | |
| parent | b7ae36440273848353efe7b7d6327c2fc046f7c3 (diff) | |
perf: localize all objects module
Diffstat (limited to 'objects/Loot.lua')
| -rw-r--r-- | objects/Loot.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/objects/Loot.lua b/objects/Loot.lua index 6a66957..2621f66 100644 --- a/objects/Loot.lua +++ b/objects/Loot.lua @@ -1,6 +1,6 @@ local Body = require "objects.Body" -Loot = {} +local Loot = {} Loot.__index = Loot function Loot:new(name, x, y) @@ -15,3 +15,5 @@ function Loot:new(name, x, y) return obj end + +return Loot |
