on Alloc
open override fun onAlloc(index: Int, oldSchoolClientType: OldSchoolClientType, newInstance: Boolean)
Resets all the primitive properties of this class which can be lazy-reset. We utilize lazy resetting here as there's no guarantee that a given PlayerInfo object will ever be re-used. Due to the nature of soft references, it is possible for the garbage collector to collect it when it truly needs it. In order to reduce processing time, we skip resetting these properties on de-allocation.
Parameters
index
the index of the new player who will be utilizing this player info object.
old School Client Type
the client the new player is utilizing.