Skip to content
This repository was archived by the owner on Mar 25, 2020. It is now read-only.
This repository was archived by the owner on Mar 25, 2020. It is now read-only.

Templating/blueprinting #3

Description

@pointcache

Task:

  • Have a way to store entity composition and its data in a simple extremely readable and editable format.
  • Have a serializer/deserializer that constructs entity from template

Example:
The way how Dwarf Fortress stores game data/definitions is perfect example:


[OBJECT:CREATURE]

[CREATURE:WORM]
    [DESCRIPTION:A tiny burrowing creature, found in moist soil.  It is legless, long and thin.]
    [NAME:worm:worms:worm]
    [CASTE_NAME:worm:worms:worm]
    [CREATURE_TILE:'~'][COLOR:7:0:0]
    [PETVALUE:10]
    [VERMIN_SOIL][FREQUENCY:100][VERMIN_HATEABLE]
    [SMALL_REMAINS][VERMIN_NOTRAP][NOBONES]
    [NATURAL][PET]
    [NOT_BUTCHERABLE]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions