borisblizzard / arcreator

Advanced RPG Creator is an engine and an editor that allows you to create old-school 2D RPG video games.
7 stars 1 forks source link

Refactor of Project System to use File Handlers #32

Open Ryex opened 9 years ago

Ryex commented 9 years ago

The current project system uses a Project object and some save and open functions. this should be refactored to Use Project and File handlers

A Project Handler will manages a layout and format of a Project and employs File handlers to load Project files and add their data to the project

A File Handler when given a File path will load and save data to that file. intended to work by using a serializer format like ARC Data.

Ryex commented 9 years ago

I'm thinking that in order to make the data model more consistent across the board that the concept of a Project Manager needs to be introduced, a Singleton class that keeps track project data, Then project handlers could call up this Singleton through the plugin system

it also seems prudent to ensure Data Actions work seamlessly with this ProjectManager Singalton