increment Counter
Increases the current count for the counter with the supplied name. If no counter with this name exists or this operation would increase the corresponding counter above the current capacity, an appropriate exception will be thrown.
The Counts and Lists API will eventually supersede the specific player tracking APIs of the AgonesSdk, as these cover a broader use-case and offer similar interfaces for tracking. Therefore, this method should be preferred.
Parameters
name
The unique identifier of this instance's counter whose count should be incremented.
See also
Throws
If null
is supplied as the counter identifier and therefore no counter can be derived from it.