Skip to content

Commit

Permalink
补注释
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jun 27, 2023
1 parent 81532c2 commit e6c5cbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/game/basePlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ local sign,expApproach=MATH.sign,MATH.expApproach
---| 'UKE' Other reason

--- @class Techmino.Player
--- @field gameMode Techmino.mode.playerType
--- @field id number limited to 1~1000
--- @field group number
--- @field isMain boolean
--- @field sound boolean
--- @field settings table
Expand Down Expand Up @@ -44,6 +47,9 @@ local sign,expApproach=MATH.sign,MATH.expApproach
--- @field event table
--- @field soundEvent table
--- @field _actions table<string, {press:fun(P:Techmino.Player), release:fun(P:Techmino.Player)}>
---
--- @field receive function
--- @field render function
local P={}

--------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions assets/game/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
--- @field checkFinish function Return if the game should end when a player finishes
--- @field result function Called when the game ends
--- @field resultPage fun(time:number) Drawing the result page
--- @field name string Mode name, for debug use

local floor=math.floor

Expand Down

0 comments on commit e6c5cbf

Please sign in to comment.