Repository navigation
API Function replicate
github-actions[bot] edited this page Nov 24, 2026
·
1 revision
function replicate(def, options?): void;Defined in: src/engine/net/replication.ts:65
Mark a data component as replicated. Both ends must call it the same way (it's part of the game's code, like the component itself).
export const Health = defineComponent("game.Health", { current: f32, max: f32 });
replicate(Health, { encoding: { current: { quantize: 0.1 } } });DataReplication = {}
void
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference