Release 0.0.1.8.8.7
This commit is contained in:
1 parent
3c8a17aa78
commit
c7beab414c
16283 files changed
+768761
-2
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#==============================================================================
|
||||
# ** Game_Pictures
|
||||
#------------------------------------------------------------------------------
|
||||
# This is a wrapper for a picture array. This class is used within the
|
||||
# Game_Screen class. Map screen pictures and battle screen pictures are
|
||||
# handled separately.
|
||||
#==============================================================================
|
||||
|
||||
class Game_Pictures
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
#--------------------------------------------------------------------------
|
||||
def initialize
|
||||
@data = []
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Picture
|
||||
#--------------------------------------------------------------------------
|
||||
def [](number)
|
||||
@data[number] ||= Game_Picture.new(number)
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Iterator
|
||||
#--------------------------------------------------------------------------
|
||||
def each
|
||||
@data.compact.each {|picture| yield picture } if block_given?
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user