How change tracking works in Colyseus Schema
masterEvery Schema instance maintains an internal ChangeTree instance that tracks modifications made to its properties. Changes are categorized into three distinct types to support different synchronization needs:
all: Tracks all changes.changes: Tracks specific changes.filtered: Used specifically when encoding withStateViewto provide a subset of the state.
When a property within a Schema instance is modified, the change is cached within this ChangeTree for later encoding.