Skip to content

Instantly share code, notes, and snippets.

@gra-moore
Created February 1, 2012 17:38
Show Gist options
  • Save gra-moore/1718252 to your computer and use it in GitHub Desktop.
Save gra-moore/1718252 to your computer and use it in GitHub Desktop.
Entity System Sample Model 2
@prefix comp: <http://www.networkedplanet.com/es/component/> .
@prefix entities: <http://www.networkedplanet.com/es/entity/> .
@prefix schema: <http://www.networkedplanet.com/es/schema/> .
# define the entity and connect the properties directly to it
entities:e1 a schema:Entity .
entities:e1 schema:X 0 .
entities:e1 schema:Y 0 .
# declare the component and hook it to the entity
comp:c1 a schema:Moveable .
comp:c1 schema:has-entity entities:e1 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment