Commit graph

16 commits

Author SHA1 Message Date
f5a25b2c2d Fix NaN detection
Also removes the proxy around player and cleaned up types
2023-02-15 20:21:26 -06:00
c1a66e6666 Tweak isPersistent typing 2023-02-15 20:13:13 -06:00
5498258700 Don't yell about deleted persistent refs 2022-12-23 11:46:09 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
8e8c71224a Fix total resources increasing on load 2022-12-07 23:01:38 -06:00
36f064ebd7 Cleaned up NonPersistent typing 2022-12-06 08:06:35 -06:00
5fa2e521b2 Fixed resets 2022-12-06 08:06:31 -06:00
4207677944 Fix save data object redundancy
Note: Requires the use of noPersist quite a bit, but the console will tell you when you missed a spot
Also required breaking up events.ts due to cyclical dependencies
2022-12-06 00:22:32 -06:00
8d1234a916 Documented /game 2022-07-15 01:17:01 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
99cda9f344 Fixed attempting to delete persistent ref when there's no layer being added 2022-04-10 19:26:33 -05:00
5a59aaf4fc Persistence rework
- Removed makePersistent
- Removed Persistent, renamed PersistentRef to Persistent
- createLazyProxy now takes optional base object
  - For use where previously makePersistent would be used
- Added warnings when creating refs outside a layer
- Added warnings when persistent refs aren't included in their layer object
- createLayer now takes id as a parameter rather than an option
2022-04-10 19:26:33 -05:00
bd084e51c5 Fixed issue with dynamically loading layers 2022-04-10 19:26:33 -05:00
49474b1518 Changed path aliasing 2022-03-03 21:39:48 -06:00
12438b67b3 Added some logic to reduce redundancies in player data 2022-02-27 18:07:21 -06:00
a81040d6a2 Moved persistence related code to its own file 2022-02-27 16:18:13 -06:00