Class: RGSS::Game_SelfSwitches
- Inherits:
-
Object
- Object
- RGSS::Game_SelfSwitches
show all
- Includes:
- BasicCoder
- Defined in:
- lib/RGSS.rb
Constant Summary
Constants included
from BasicCoder
BasicCoder::INCLUDED_CLASSES
Instance Method Summary
collapse
Methods included from BasicCoder
#encode_with, included, #init_with, #ivars, set_ivars_methods
Instance Method Details
#decode(name, value) ⇒ Object
314
315
316
317
318
319
|
# File 'lib/RGSS.rb', line 314
def decode(name, value)
return Hash[value.collect { |pair|
key, value = pair
next [key.scanf("%d %d %s"), value]
}]
end
|
#encode(name, value) ⇒ Object
307
308
309
310
311
312
|
# File 'lib/RGSS.rb', line 307
def encode(name, value)
return Hash[value.collect { |pair|
key, value = pair
next ["%03d %03d %s" % key, value]
}]
end
|