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