Skip to content

Commit 635c596

Browse files
committed
Player info has defaults
1 parent 7395047 commit 635c596

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

library/snapshot.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343

4444
---@class SnapItemPlayerInfo
4545
---@field id integer # Snap item id that should be unique per snap item, use `ddnetpp.snap.new_id()` for that
46-
---@field is_local boolean # If set to true the snap receiver will use this as its own info
46+
---@field is_local? boolean # If set to true the snap receiver will use this as its own info
4747
---@field client_id integer
48-
---@field team integer # See ddnetpp.team.* constants for possible values (but without team.ALL xd)
49-
---@field score integer
50-
---@field latency integer
48+
---@field team? integer # See ddnetpp.team.* constants for possible values (but without team.ALL xd)
49+
---@field score? integer
50+
---@field latency? integer
5151

5252
---@class Snapshot
5353
local snap = {}

0 commit comments

Comments
 (0)