frnsys / highrise

building social dynamics simulator
5 stars 2 forks source link

add API for creating objects #12

Closed frnsys closed 7 years ago

frnsys commented 7 years ago

as part of the floor plan? you lay out an object as ids, e.g.:

1,1,1,1,1,1,A,A,1
1,1,1,1,1,1,A,1,1
1,1,1,1,1,1,1,1,1

where A is the plan of the object.

separately, you can map it to tags and properties, e.g.

world.setObjects({
  A: {
    props: {...},
    tags: [...]
  }
})