Skip to content

GameStats

Divided by Zer0 edited this page Mar 9, 2022 · 4 revisions

GameStats

Extends: Reference

Description

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.

Property Descriptions

game_uuid

var game_uuid: String

Stores the unique id for this match. It is used to submit final results

thread

var thread: Thread

Stores the unique id for this match. It is used to submit final results

Method Descriptions

_init

func _init(deck)

Initiates the game stats for this game as soon as this object is instanced

complete_game

func complete_game(game_data)

Submits results of the game (victory/defeat etc) to the CFG-Stats

call_api

func call_api(userdata)

Handles calling CGF-Stats for all request types.

Clone this wiki locally