Skip to content

Commit

Permalink
refactor(server/groups): stricter types
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Sep 18, 2022
1 parent 6c06bd5 commit 2d73727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/groups/class.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---@class CGroup
---@field name string
---@field grades number[]
---@field principal string
---@field add fun(player: CPlayer, grade: number?)
---@field remove fun(player: CPlayer, grade: number?)
---@field set fun(player: CPlayer, grade: number?)

---@type CGroup
local CGroup = Class.new('CGroup')
local CGroup = Class.new()

---Adds a player to a group and grants permissions based on their grade.
---@param player CPlayer
Expand Down

0 comments on commit 2d73727

Please sign in to comment.