Exemple #1
0
        protected override void DeleteRawData()
        {
            if (mSaveState == null) //fail-safe
            {
                mSaveState = new LoLSaveState();
            }

            mSaveState.EncodeRawData(new byte[0]);

            LOLSDK.Instance.SaveState(mSaveState);
        }
Exemple #2
0
        protected override void SaveRawData(byte[] dat)
        {
            if (mSaveState == null) //fail-safe
            {
                mSaveState = new LoLSaveState();
            }

            mSaveState.EncodeRawData(dat);

            LOLSDK.Instance.SaveState(mSaveState);
        }
Exemple #3
0
        void OnLoaded(State <LoLSaveState> state)
        {
            if (state != null)
            {
                score           = state.score;
                currentProgress = state.currentProgress;
                maximumProgress = state.maximumProgress;

                mSaveState = state.data;
            }
            else
            {
                score           = 0;
                currentProgress = 0;
                maximumProgress = 0;

                mSaveState = new LoLSaveState()
                {
                    encodedData = ""
                };
            }

            base.Load();
        }