Fix grouped region updating. Will need to account for re-adding StaticObjects after they have been removed from the game world. Also commented out some broken functionality in bootstrap involving first/second/third/etc message handlers. Should revisit with fix.

This commit is contained in:
Steve
2015-04-05 20:18:58 -04:00
parent f4c181c0f9
commit 6bffd5c0a1
7 changed files with 38 additions and 42 deletions
+10 -9
View File
@@ -177,15 +177,16 @@ def on_message(args, proc)
numbers = [ 'first', 'second', 'third', 'fourth', 'fifth' ]
message = args[0]; option = 0
numbers.each_index do |index|
number = numbers[index]
if message.to_s.start_with?(number)
option = index + 1
message = message[number.length + 1, message.length].to_sym
break
end
end
# TODO
# numbers.each_index do |index|
# number = numbers[index]
#
# if message.to_s.start_with?(number)
# option = index + 1
# message = message[number.length + 1, message.length].to_sym
# break
# end
# end
class_name = message.to_s.camelize.concat('Message')