mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Added setGoalState
This commit is contained in:
parent
e060d4b73d
commit
0a969bb103
1 changed files with 3 additions and 0 deletions
|
@ -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 ?= []
|
||||
|
|
Loading…
Reference in a new issue