Initial import

This commit is contained in:
2014-04-23 21:59:50 -07:00
commit 2eff2aa3b9
141 changed files with 20827 additions and 0 deletions

46
Scripts/RPG/Game_Temp.rb Normal file
View File

@@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
#==============================================================================
# ** Game_Temp
#------------------------------------------------------------------------------
# This class handles temporary data that is not included with save data.
# The instance of this class is referenced by $game_temp.
#==============================================================================
class Game_Temp
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :common_event_id # Common Event ID
attr_accessor :fade_type # Fade Type at Player Transfer
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@common_event_id = 0
@fade_type = 0
end
#--------------------------------------------------------------------------
# * Reserve Common Event Call
#--------------------------------------------------------------------------
def reserve_common_event(common_event_id)
@common_event_id = common_event_id
end
#--------------------------------------------------------------------------
# * Clear Common Event Call Reservation
#--------------------------------------------------------------------------
def clear_common_event
@common_event_id = 0
end
#--------------------------------------------------------------------------
# * Determine Reservation of Common Event Call
#--------------------------------------------------------------------------
def common_event_reserved?
@common_event_id > 0
end
#--------------------------------------------------------------------------
# * Get Reserved Common Event
#--------------------------------------------------------------------------
def reserved_common_event
$data_common_events[@common_event_id]
end
end