-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring Save Slot Controllers to work more with Save Slot Views #1014
base: CG-Tespy-CGTFungusSaveSystem
Are you sure you want to change the base?
Refactoring Save Slot Controllers to work more with Save Slot Views #1014
Commits on Sep 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5cad400 - Browse repository at this point
Copy the full SHA 5cad400View commit details -
Configuration menu - View commit details
-
Copy full SHA for e03289b - Browse repository at this point
Copy the full SHA e03289bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4e4808 - Browse repository at this point
Copy the full SHA d4e4808View commit details
Commits on Sep 9, 2020
-
Revert "Added more versatile version of Message Received"
This reverts commit d4e4808.
Configuration menu - View commit details
-
Copy full SHA for 4ac233d - Browse repository at this point
Copy the full SHA 4ac233dView commit details
Commits on Jan 11, 2021
-
Merge pull request #2 from snozbot/develop
Updating develop branch on my end
Configuration menu - View commit details
-
Copy full SHA for 00bd682 - Browse repository at this point
Copy the full SHA 00bd682View commit details
Commits on Jan 12, 2021
-
Revert "Updated test scene and narrative log prefab"
This reverts commit e03289b.
Configuration menu - View commit details
-
Copy full SHA for 1df345d - Browse repository at this point
Copy the full SHA 1df345dView commit details -
Revert "Added requested feature: Narrative Log not registering empty …
…Say dialog entries" This reverts commit 5cad400.
Configuration menu - View commit details
-
Copy full SHA for 2ee5fb2 - Browse repository at this point
Copy the full SHA 2ee5fb2View commit details -
Merge pull request #4 from snozbot/CG-Tespy-CGTFungusSaveSystem
Updating the branch on my end
Configuration menu - View commit details
-
Copy full SHA for 9b40b15 - Browse repository at this point
Copy the full SHA 9b40b15View commit details
Commits on Jul 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cbf1524 - Browse repository at this point
Copy the full SHA cbf1524View commit details
Commits on Jul 11, 2021
-
Added unit test for music encoding result count
Also did a little reorganizing of what's in the Fungus Save script folder
Configuration menu - View commit details
-
Copy full SHA for 2b89b56 - Browse repository at this point
Copy the full SHA 2b89b56View commit details
Commits on Jul 13, 2021
-
Removed hard-coded view fields
Thanks to the new view system, they're no longer necessary
Configuration menu - View commit details
-
Copy full SHA for fbe3573 - Browse repository at this point
Copy the full SHA fbe3573View commit details -
Added more tests. Seems the base slot views work as intended
All the tests have passed at the time of this writing
Configuration menu - View commit details
-
Copy full SHA for 883f74c - Browse repository at this point
Copy the full SHA 883f74cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d64908e - Browse repository at this point
Copy the full SHA d64908eView commit details
Commits on Aug 25, 2021
-
Merge remote-tracking branch 'origin/CG-Tespy-CGTFungusSaveSystem' in…
…to SaveDataCreationTesting
Configuration menu - View commit details
-
Copy full SHA for 21cc13e - Browse repository at this point
Copy the full SHA 21cc13eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9233af0 - Browse repository at this point
Copy the full SHA 9233af0View commit details
Commits on Aug 27, 2021
-
Added unit test for encoding many numeric vars at once
Added an Encode func to NumericVarSaveEncoder that can take an IList of vars, returning an IList of said vars encoded. I know that Fungus would normally return just a regular List, but I felt it'd be better to go with IList here due to how it's good practice to code more to interfaces than to concrete implementations. Especially in this case. If the client really wants a regular List of the encoded results, they can easily make their own by passing said results to the regular List's constructor.
Configuration menu - View commit details
-
Copy full SHA for 86034be - Browse repository at this point
Copy the full SHA 86034beView commit details -
Refactored number saver so it works off a generic implementation
One that lets subclasses decide which var types they can support. This should cut down on boilerplate code we'd otherwise make when working on other var encoders.
Configuration menu - View commit details
-
Copy full SHA for 8b00934 - Browse repository at this point
Copy the full SHA 8b00934View commit details -
Added tests for ensuring invalid inputs get rejected
Also deleted the sound tests, since we're quite a ways off from testing that stuff
Configuration menu - View commit details
-
Copy full SHA for ec08b18 - Browse repository at this point
Copy the full SHA ec08b18View commit details -
Reorganized the num-saving test suite
FlowchartSavingTests was getting a bit big, and I felt that testing other var type encodings would take similar amounts of code. Hence, I made FlowchartSavingTests an abstract class for various suites that each focus on certain var types or groups. Hence the new FlowchartNumSavingTests suite.
Configuration menu - View commit details
-
Copy full SHA for fcdc19a - Browse repository at this point
Copy the full SHA fcdc19aView commit details
Commits on Aug 28, 2021
-
Added unit tests for saving string vars
To cut down on code duplication, I created a testing extensions script. I may have to do something about the code duplication in the string var tests as they are now...
Configuration menu - View commit details
-
Copy full SHA for 29ac3db - Browse repository at this point
Copy the full SHA 29ac3dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 389784f - Browse repository at this point
Copy the full SHA 389784fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b7601c - Browse repository at this point
Copy the full SHA 1b7601cView commit details -
Will need to add back in the tests that check to make sure that invalid inputs get rejected
Configuration menu - View commit details
-
Copy full SHA for adbbce8 - Browse repository at this point
Copy the full SHA adbbce8View commit details -
Readded input-rejecting tests, renamed var test suite
That test suite was set up only for var-encoding, so naming it "FlowchartSavingTests" was a bit misleading
Configuration menu - View commit details
-
Copy full SHA for 2697698 - Browse repository at this point
Copy the full SHA 2697698View commit details
Commits on Sep 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4a6222b - Browse repository at this point
Copy the full SHA 4a6222bView commit details -
Altered tests so they work with json by default
As jsons don't work with all var types, I refactored the encoders to be more flexible about whether their values get encoded as json strings or regular strings
Configuration menu - View commit details
-
Copy full SHA for aa467b7 - Browse repository at this point
Copy the full SHA aa467b7View commit details
Commits on Sep 19, 2021
-
Renamed a couple flowcharts to reduce confusion, too
Configuration menu - View commit details
-
Copy full SHA for cd8c882 - Browse repository at this point
Copy the full SHA cd8c882View commit details -
Renamed the SaveEncoder classes to have "Saver" instead of "SaveEncoder"
It's shorter and more intuitive, considering this is a Save/Load system
Configuration menu - View commit details
-
Copy full SHA for 33a0cc4 - Browse repository at this point
Copy the full SHA 33a0cc4View commit details
Commits on Oct 7, 2021
-
Laying out groundwork for restructure in how save data is defined
I feel that rather than relying on StringPairs to be the save data units, there should be different classes handling the job for different types of state. I find this approach a lot more extensible, flexible, and as a result, more user-friendly. Of course, this means that the unit tests may need to be restructured. New tests will be written as the restructure continues.
Configuration menu - View commit details
-
Copy full SHA for 51b7af8 - Browse repository at this point
Copy the full SHA 51b7af8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 100b911 - Browse repository at this point
Copy the full SHA 100b911View commit details -
Currently expecting VarSaver to become obsolete and its subclasses to be reworked to fit the new ISaveCreator interface
Configuration menu - View commit details
-
Copy full SHA for d27769b - Browse repository at this point
Copy the full SHA d27769bView commit details
Commits on Oct 13, 2021
-
Reworking variable-saving to be more consolidated
Also reworked the unit tests
Configuration menu - View commit details
-
Copy full SHA for 2f2ee3d - Browse repository at this point
Copy the full SHA 2f2ee3dView commit details -
Removed invalid input checks and redundant code
All variables are saved in units with the values stored as normal strings, after all
Configuration menu - View commit details
-
Copy full SHA for 4524437 - Browse repository at this point
Copy the full SHA 4524437View commit details -
Undid some of the consolidation in the saver architecture
Turns out that simply saving every var as a string by applying ToString on their values doesn't always get the right results. Revised the architecture so that it lets you make more variable-specific savers without necessarily having to make new ones for each variable type.
Configuration menu - View commit details
-
Copy full SHA for 00df2b6 - Browse repository at this point
Copy the full SHA 00df2b6View commit details
Commits on Oct 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8cfedd2 - Browse repository at this point
Copy the full SHA 8cfedd2View commit details
Commits on Oct 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7c51a0d - Browse repository at this point
Copy the full SHA 7c51a0dView commit details
Commits on Oct 31, 2021
-
Layout out groundwork for stage-saving tests
With the first stage stuff to save being the states of the portraits
Configuration menu - View commit details
-
Copy full SHA for 49112ae - Browse repository at this point
Copy the full SHA 49112aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c3a26f - Browse repository at this point
Copy the full SHA 0c3a26fView commit details
Commits on Nov 6, 2021
-
PortraitSaveState refactor for position field
PortraitSaveState now saves the name of the position instead of the point in space said position is in. Makes things more flexible, like for when the user decides to slightly change the coords of a Stage Pos.
Configuration menu - View commit details
-
Copy full SHA for 84258ea - Browse repository at this point
Copy the full SHA 84258eaView commit details -
Removed sibling index test, implemented stage name check test
It doesn't seem like it'll be necessary to record the sibling indexes of the portraits, hence the removal
Configuration menu - View commit details
-
Copy full SHA for 2bc9efa - Browse repository at this point
Copy the full SHA 2bc9efaView commit details -
Fixed error in stage name test, did cleanup, implemented correct char…
…acter test Given how not all the setup can be done in one function call, all the tests will need to be IEnumerators
Configuration menu - View commit details
-
Copy full SHA for 6652199 - Browse repository at this point
Copy the full SHA 6652199View commit details -
Configuration menu - View commit details
-
Copy full SHA for 428d6b7 - Browse repository at this point
Copy the full SHA 428d6b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0436e4 - Browse repository at this point
Copy the full SHA e0436e4View commit details -
Portrait indexes now saved instead of names. Added tests for said ind…
…exes Indexes are a lot less volatile than names, hence it should lead to less problems if we just record indexes there.
Configuration menu - View commit details
-
Copy full SHA for e7c0c3d - Browse repository at this point
Copy the full SHA e7c0c3dView commit details
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8a12778 - Browse repository at this point
Copy the full SHA 8a12778View commit details -
Added support for saving portrait names, fixed testing bugs caused by…
… Dude Figured it might help code in backwards-compatible saves if we have the index AND the name registered, so... Also, a couple tests broke due to adding the Character named Dude. Fixed those
Configuration menu - View commit details
-
Copy full SHA for 03c639f - Browse repository at this point
Copy the full SHA 03c639fView commit details -
Refactored all InfoStructs as ISaveUnits
I realized that given the purpose of save units, there is no need to have info structs and save units be separate classes. The latter were just working as needless wrappers for the former. Some refactoring of the stage-saving tests was needed since the portrait state containers are now structs instead of classes.
Configuration menu - View commit details
-
Copy full SHA for 64ea9ec - Browse repository at this point
Copy the full SHA 64ea9ecView commit details -
Renamed info structs to clarify their roles
- Deleted the old VariableSaveUnit class - Renamed the info structs (VariableInfo, PortraitSaveState, etc) to reflect their roles as save units - Refactored tests and savers to fit the above changes
Configuration menu - View commit details
-
Copy full SHA for f0f1c6e - Browse repository at this point
Copy the full SHA f0f1c6eView commit details
Commits on Nov 9, 2021
-
Adjustments to help pass portrait tests
- Added generic DataSaver - Renamed PortraitStateSaver to PortraitSaver - Had portrait tests use the above saver
Configuration menu - View commit details
-
Copy full SHA for 2cc400b - Browse repository at this point
Copy the full SHA 2cc400bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8f0f1 - Browse repository at this point
Copy the full SHA 2a8f0f1View commit details
Commits on Nov 10, 2021
-
These changes were applied to the save sys code involved in the tests I've made. - Removed unnecessary usings - Put things under a new namespace for better code organization: LionManeSaveSys - Reorganized source files
Configuration menu - View commit details
-
Copy full SHA for 68b9bc5 - Browse repository at this point
Copy the full SHA 68b9bc5View commit details
Commits on Nov 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a6dc646 - Browse repository at this point
Copy the full SHA a6dc646View commit details -
Configuration menu - View commit details
-
Copy full SHA for a152f19 - Browse repository at this point
Copy the full SHA a152f19View commit details
Commits on Nov 26, 2021
-
Started work on command-saving tests, made Say Execution Count public
I can't save the state of the Say Commands' execution counts when they're inaccessible from outside code, so I changed it into an auto-property
Configuration menu - View commit details
-
Copy full SHA for cf5c252 - Browse repository at this point
Copy the full SHA cf5c252View commit details
Commits on Nov 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f8caa14 - Browse repository at this point
Copy the full SHA f8caa14View commit details -
Configuration menu - View commit details
-
Copy full SHA for b86d056 - Browse repository at this point
Copy the full SHA b86d056View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0d6412 - Browse repository at this point
Copy the full SHA d0d6412View commit details
Commits on Dec 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1b01107 - Browse repository at this point
Copy the full SHA 1b01107View commit details -
This definitely matters for the Menu Command's HideIfVisited field, since that there depends on block execution counts
Configuration menu - View commit details
-
Copy full SHA for 1d4efb9 - Browse repository at this point
Copy the full SHA 1d4efb9View commit details
Commits on Dec 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 563aac2 - Browse repository at this point
Copy the full SHA 563aac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 154c14a - Browse repository at this point
Copy the full SHA 154c14aView commit details -
Remove MenuHideIfVisitedSaved test since it's no longer needed
Hide If Visited procs based on the blocks' execution counts, and as making sure that is saved should depend on the Block-specific unit tests...
Configuration menu - View commit details
-
Copy full SHA for 36430d2 - Browse repository at this point
Copy the full SHA 36430d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bd0863 - Browse repository at this point
Copy the full SHA 8bd0863View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8e7305 - Browse repository at this point
Copy the full SHA d8e7305View commit details
Commits on Dec 16, 2021
-
Refactor for making Blocks save in a more plug-and-play way
What with how different Commands' states may need to be saved in different ways.
Configuration menu - View commit details
-
Copy full SHA for b20a578 - Browse repository at this point
Copy the full SHA b20a578View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6818b - Browse repository at this point
Copy the full SHA 3b6818bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0b8050 - Browse repository at this point
Copy the full SHA e0b8050View commit details -
Fixed CommandIndexesSaved test
Before, it didn't properly check the block state before deciding whether the test was successful. And to make sure that the test passed, I had to alter the Block and Say Savers so they... well, properly had the command indexes saved.
Configuration menu - View commit details
-
Copy full SHA for c23c61e - Browse repository at this point
Copy the full SHA c23c61eView commit details
Commits on Dec 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d101b82 - Browse repository at this point
Copy the full SHA d101b82View commit details -
Removed SayCommandSaved test from BlockSavingTests, moved BlockExecution
Since the stuff for saving the state of say commands should be in CommandSavingTests. And that stuff for checking the execution counts of blocks should be in BlockSavingTests
Configuration menu - View commit details
-
Copy full SHA for 8268a31 - Browse repository at this point
Copy the full SHA 8268a31View commit details
Commits on Dec 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4e492fb - Browse repository at this point
Copy the full SHA 4e492fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8780d8e - Browse repository at this point
Copy the full SHA 8780d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed94af5 - Browse repository at this point
Copy the full SHA ed94af5View commit details -
Save units are no longer structs
Since they can potentially hold thousands of bytes (the GameSaveData and UISaveData most likely will), which is too much for a struct
Configuration menu - View commit details
-
Copy full SHA for b68a9a4 - Browse repository at this point
Copy the full SHA b68a9a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b602970 - Browse repository at this point
Copy the full SHA b602970View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec62423 - Browse repository at this point
Copy the full SHA ec62423View commit details -
Refactored Contents fields out of SaveUnit classes
Any client code can also set the typenames in case there's any need to differentiate instances beyond just their class, like with VariableSaveUnit
Configuration menu - View commit details
-
Copy full SHA for 795f27d - Browse repository at this point
Copy the full SHA 795f27dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd42c31 - Browse repository at this point
Copy the full SHA cd42c31View commit details
Commits on Dec 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 228d16a - Browse repository at this point
Copy the full SHA 228d16aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 944b0dd - Browse repository at this point
Copy the full SHA 944b0ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 041280d - Browse repository at this point
Copy the full SHA 041280dView commit details