コード例 #1
0
ファイル: PlayerWorldCtrl.cs プロジェクト: 12cry/testJava
 public void init()
 {
     world      = new PlayerWorld();
     world.ctrl = this;
 }
コード例 #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);
 }