gilmore606 / ure

the unRogueEngine
MIT License
122 stars 12 forks source link

Behavior Roles #47

Open gilmore606 opened 6 years ago

gilmore606 commented 6 years ago

roles.json will define named roles, which are just collections of behaviors (with parameters). actors can specify a roles: [x,y...] in actors.json to get all the behaviors of a role.

if an actor specifies a behavior already specified by a role, their specific behavior parameters should override the ones from the role (for any which conflict).

gilmore606 commented 6 years ago

Roles only need to be looked at on initial actorCzar template actor creation -- the roles are created and added to the template actors. Cloning new actors happens normally without consulting roles.

resources/roles/*.json is read to create the role structures for actorCzar on startup.