IDEA: create a format from markdown:
components.md
and
events.md
To define components, we must use a lua block.
Everything outside the lua block is ignored.
-- The x position of the entity
-- (Must not be shared)
ent.x = 10
-- The y position of the entity
-- (Must not be shared)
ent.y = -5
-- the image name of the entity
ent.image = "my_image"
TODO: Differentiate serverside events from clientside events
-- called when some event occurs in the game (yada yada)
-- (This is just the description of the event, when its called)
call("someEvent", arg1: integer, arg2: string, arg3: entity)