mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 17:02:18 -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 = @
|
event.thang = @
|
||||||
@world.publishNote channel, event
|
@world.publishNote channel, event
|
||||||
|
|
||||||
|
setGoalState: (goalID, status) ->
|
||||||
|
@world.setGoalState goalID, status
|
||||||
|
|
||||||
addComponents: (components...) ->
|
addComponents: (components...) ->
|
||||||
# We don't need to keep the components around after attaching them, but we will keep their initial config for recreating Thangs
|
# We don't need to keep the components around after attaching them, but we will keep their initial config for recreating Thangs
|
||||||
@components ?= []
|
@components ?= []
|
||||||
|
|
Loading…
Reference in a new issue