Nyan

From 33C3_Public_Wiki
Jump to: navigation, search
Description nyan - yet another notation: typesafe hierarchical key-value database with inheritance and dynamic patching
Has website https://github.com/SFTtech/nyan
Persons working on JJ
Tags nyan, c++, free software, database
Located at assembly StuStaNet
Other projects...

refresh

Nyan - yet another notation

nyan is a new database to store hierarchical data with inheritance.

We use it in openage to represent and mod the game content.


Example

Unit():
    name : text
    hp : int = 0

Building(Unit):
    creates : set(Unit)

TownCenter(Building):
    name = "Company HQ"
    hp = 250
    creates = {Villager}

TentacleMonster(Unit):
    name = "Splortsch"
    hp = 2000

Creation<TownCenter>():
    creates += {TentacleMonster}

TentacleMod(Mod):
    name = "Add the allmighty tentacle monster to your holy army"
    patches = {Creation}


Design

Read the full specification at:

https://github.com/SFTtech/nyan/blob/master/doc/nyan.md