Class: Game_Actors
- Defined in:
- scripts/00600 Script_RMXP/00100 Event_Living_Data.rb
Overview
Collection of Game_Actor
Instance Method Summary collapse
-
#[](actor_id) ⇒ Game_Actor?
Fetch Game_Actor.
-
#initialize ⇒ Game_Actors
constructor
Default initialization.
Constructor Details
#initialize ⇒ Game_Actors
Default initialization
109 110 111 |
# File 'scripts/00600 Script_RMXP/00100 Event_Living_Data.rb', line 109 def initialize @data = [] end |
Instance Method Details
#[](actor_id) ⇒ Game_Actor?
Fetch Game_Actor
116 117 118 119 120 121 |
# File 'scripts/00600 Script_RMXP/00100 Event_Living_Data.rb', line 116 def [](actor_id) return nil if actor_id > 999 || $data_actors[actor_id].nil? @data[actor_id] ||= Game_Actor.new(actor_id) return @data[actor_id] end |