Nakama Snippets for GO
Just a bunch of snippets to write Nakama functions
List of snippets
Context
ctxuserid, cuserid: User ID from Context
ctxusername, cusername: Username from Context
ctxvalue, cvalue: Get value form Context (All of 'em)
RPC
rpc: Remote Procedure Call Function
Match
Lifetime
matchcreator, mcreator: Match Creator Function
matchinit, minit: Match Init Method
matchjoin, mjoin: Match Join Method
matchjoinattempt, mjoinattempt: Match Join Attempt Method
matchleave, mleave: Match Leave Method
matchloop, mloop: Match Loop Method
matchsignal, msignal: Match Signal Method
matchterminate, mterminate: Match Terminate Method
matchbroadcast, mbroadcast: Match Broadcast Message
matchkick, mkick: Match Kick
matchlabelupdate, mlabelupdate: Match Label Update
Hooks
beforehook, bhook: Before Hooks Handler(All of 'em. Start typing to find the one you want)
afterhook, ahook: After Hooks Handler(All of 'em. Start typing to find the one you want)
eventhook, ehook: Event Hook Handler
matchmakerhook, mmhook: Matchmaker Hook Handler
tournamenthook, thook: Tournament Hook Handler
leaderboardhook, lhook: Leaderboard Hook Handler
purchasehook, phook: Purchase / Subscription Hook Handler
| |