Commit ef46024c authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Re-register new Lua runtime functions.

parent c2788ab1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ func (n *RuntimeLuaNakamaModule) Loader(l *lua.LState) int {
		"tournament_add_attempt":      n.tournamentAddAttempt,
		"tournament_join":             n.tournamentJoin,
		"tournament_list":             n.tournamentList,
		"tournaments_get_id":          n.tournamentsGetId,
		"tournament_record_write":     n.tournamentRecordWrite,
		"tournament_records_haystack": n.tournamentRecordsHaystack,
		"groups_get_id":               n.groupsGetId,
@@ -4651,7 +4652,7 @@ func (n *RuntimeLuaNakamaModule) tournamentsGetId(l *lua.LState) int {

	tournaments := l.CreateTable(len(list), 0)
	for i, t := range list {
		tt := l.CreateTable(0, 16)
		tt := l.CreateTable(0, 17)

		tt.RawSetString("id", lua.LString(t.Id))
		tt.RawSetString("title", lua.LString(t.Title))
@@ -4666,6 +4667,7 @@ func (n *RuntimeLuaNakamaModule) tournamentsGetId(l *lua.LState) int {
		tt.RawSetString("max_size", lua.LNumber(t.MaxSize))
		tt.RawSetString("max_num_score", lua.LNumber(t.MaxNumScore))
		tt.RawSetString("duration", lua.LNumber(t.Duration))
		tt.RawSetString("start_active", lua.LNumber(t.StartActive))
		tt.RawSetString("end_active", lua.LNumber(t.EndActive))
		tt.RawSetString("can_enter", lua.LBool(t.CanEnter))
		tt.RawSetString("next_reset", lua.LNumber(t.NextReset))