protected override void DeleteRawData() { if (mSaveState == null) //fail-safe { mSaveState = new LoLSaveState(); } mSaveState.EncodeRawData(new byte[0]); LOLSDK.Instance.SaveState(mSaveState); }
protected override void SaveRawData(byte[] dat) { if (mSaveState == null) //fail-safe { mSaveState = new LoLSaveState(); } mSaveState.EncodeRawData(dat); LOLSDK.Instance.SaveState(mSaveState); }
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(); }