Top Level Namespace
Defined Under Namespace
Modules: Audio, Graphics, Input, RPG
Classes: Bitmap, Color, Font, Plane, RGSSError, RGSSReset, Rect, Sprite, Table, Tilemap, Tone, Viewport, Window
Instance Method Summary
collapse
Instance Method Details
#load_data(filename) ⇒ Object
9
10
11
12
13
|
# File 'lib/functions.rb', line 9
def load_data(filename)
File.open(filename, 'rb') do |f|
Marshal.load(f)
end
end
|
#msgbox(arg, *args) ⇒ Object
21
22
23
|
# File 'lib/functions.rb', line 21
def msgbox(arg, *args)
fail NotImplementedError
end
|
#msgbox_p(obj, *objs) ⇒ Object
25
26
27
|
# File 'lib/functions.rb', line 25
def msgbox_p(obj, *objs)
msgbox obj.inspect, "\n", *(objs.flat_map { |obj| [obj, "\n"] }[0...-1])
end
|
#rgss_main(&block) ⇒ Object
1
2
3
|
# File 'lib/functions.rb', line 1
def rgss_main(&block)
fail NotImplementedError
end
|
#rgss_stop ⇒ Object
5
6
7
|
# File 'lib/functions.rb', line 5
def rgss_stop
fail NotImplementedError
end
|
#save_data(obj, filename) ⇒ Object
15
16
17
18
19
|
# File 'lib/functions.rb', line 15
def save_data(obj, filename)
File.open(filename, 'wb') do |f |
Marshal.dump(obj, f)
end
end
|