crankycyclops/trogdor-pp

Meta information (game title, author, etc.)

crankycyclops opened this issue · 3 comments

Should support meta info about game, such as title, author, etc. Title and author (if set) should be displayed at the beginning, when the game is first run.

Section would look something like this:

< meta>
< title>Game name < /title>
< author>Author name < /author>
< /meta>

Game object will have an unordered map (key string, value string) for storing meta data. Any tags in meta are allowed, and new meta can be set with setMeta(key, value), and gotten with getMeta(key). Meta data should be accessible via lua scripts.

Also, if meta "title" and "author" are set, then when the game starts these will be displayed before the player is given his first prompt.

Meta section must come after manifest (I would prefer below, but it makes parsing easier if I just continue to require the manifest to come first.)

It's up to the client to print out meta data like title, author, etc. That allows for greatest flexibility.