-
-
Notifications
You must be signed in to change notification settings - Fork 106
GameStats
Divided by Zer0 edited this page Mar 9, 2022
·
4 revisions
Extends: Reference
This class handles submitting game stats to a CGF-Stats instance It requires CFConst.STATS_URI and CFConst.STATS_PORT to be set And the game name in the Project > Settings should match the game name set when running CGF-Stats.
var game_uuid: String
Stores the unique id for this match. It is used to submit final results
var thread: Thread
Stores the unique id for this match. It is used to submit final results
func _init(deck)
Initiates the game stats for this game as soon as this object is instanced
func complete_game(game_data)
Submits results of the game (victory/defeat etc) to the CFG-Stats
func call_api(userdata)
Handles calling CGF-Stats for all request types.