public void init() { world = new PlayerWorld(); world.ctrl = this; }
public async Task SetWorld(int playerId, PlayerWorld playerWorld) { await using var writer = File.CreateText(PATH); var json = JsonConvert.SerializeObject(playerWorld); await writer.WriteLineAsync(json); }