Exemple #1
0
    public void SavePlayerData(Model_SaveData data)
    {
        game.UpdatePlayerStateToCurrent();
        Model_PlayerState p = game.GetPlayerState();

        data.playerData = new Model_PlayerState(
            p.spawnX,
            p.spawnY,
            p.spawnZ,
            p.faceDirection
            );
    }