wurstscript / WurstStdlib2

WurstScript Standard Library Version 2
Apache License 2.0
55 stars 53 forks source link

New FileIO, Sync, SaveLoad #304

Closed Frotty closed 5 years ago

Frotty commented 5 years ago

Migration Notice:


Replaces the current broken and legacy implementations of saving, loading and syncing data with new and improved ones using the newly added natives. The main goals of these new packages is to be lightweight and have intuitive, simple API.

Future enhancements would be something like a Serializable interface to de/serialize classes, perhaps using the existing OrderedStringBuffer etc.

Usage examples are at the top of each package.

Frotty commented 5 years ago

Alright, I will merge this with the deletions, since deprecating the packages would create unavoidable warnings in the stdlib and "updating" the old classes, e.g. Persistable isn't easily done because of how the old syncing and data management works. Most of these packages don't work or only partially work anyway and I don't want people get confused by the similar package names. The plan is to replace Persistable with a new, lightweight Serializable class/interface in the future.