Exemple #1
0
    private void OnSaveButtonPressed(string filename, int savegameId)
    {
        Savegame savegame = new Savegame()
        {
            Id   = savegameId, Name = filename,
            Type = typeof(T).Name, File = JsonConvert.SerializeObject(Serialize())
        };

        backendManager.SaveGame(savegame);
    }