Better support for serialization and sorting of the Token data type

This commit is contained in:
2026-02-18 23:23:59 -05:00
parent 0de2a50843
commit 1fd06f0628
6 changed files with 98 additions and 44 deletions

View File

@@ -69,3 +69,12 @@ Tokens can get passed to Unreal in a variety of ways. For example, in animation
## Usage
Tokens are mainly intended as sentinels and special reserved values. The JSON null example above is the motivating case, but tokens can represent any short reserved constant the engine needs.
## Serialization and Difference Transmission
I believe that we properly serialize and difference transmit tokens.
* the serialize_lua function handles tokens explicitly
* the difference transmitter has code for tokens
* eris always saved lightuserdata as 64-bit numbers