Added setGoalState

This commit is contained in:
Darredevil 2014-03-29 03:53:19 +02:00
parent e060d4b73d
commit 0a969bb103

View file

@ -39,6 +39,9 @@ module.exports = class Thang
event.thang = @
@world.publishNote channel, event
setGoalState: (goalID, status) ->
@world.setGoalState goalID, status
addComponents: (components...) ->
# We don't need to keep the components around after attaching them, but we will keep their initial config for recreating Thangs
@components ?= []