The Session class from the latest patch notes:
Added session class, GetSession function, and weak_map map supertype lacking iteration or Length to allow defining session-local globals. For example:
var GlobalInt:weak_map(session, int) = map{}
ExampleFunction():void=
X := if (Y := GlobalInt[GetSession()]) then Y + 1 else 0
if:
set GlobalInt[GetSession()] = X
Print(“{X}”)
Am I correct in thinking this is for round persistence? EX: A variable that tracks the current round, or a players total number of wins that Game as a whole that you couldn’t track otherwise because of lack of persistence between rounds without creating a custom round manager?