Skip to content

AgeSortPlayerDataTrimAlg

Samuel Gomes edited this page Jul 15, 2024 · 7 revisions

AgeSortPlayerDataTrimAlg

This class is a child of PlayerDataTrimAlg, which trims a list of states based on the age of the elements. The older states are discarded.

Constructor

AgeSortPlayerDataTrimAlg(max_num_model_elements: int): void

Functions

__creation_time_sort(elem: PlayerState): Date

Description

Sorting function to order a list by age.

Overrides trimmedList (see PlayerDataTrimAlg).

Clone this wiki locally