mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Anim Editor: added play functionality to battle and editor
This commit is contained in:
26
Data/Scripts/905_Anim player/012_Fake battler.rb
Normal file
26
Data/Scripts/905_Anim player/012_Fake battler.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class AnimationPlayer::FakeBattler
|
||||
attr_reader :index
|
||||
attr_reader :pokemon
|
||||
|
||||
def initialize(index, species, form = 0, gender = 0)
|
||||
@index = index
|
||||
@pokemon = AnimationPlayer::FakePokemon.new(species, form, gender)
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class AnimationPlayer::FakePokemon
|
||||
attr_reader :species, :form, :gender
|
||||
|
||||
def initialize(species, form = 0, gender = 0)
|
||||
# NOTE: species will be a string, but it doesn't need to be a symbol.
|
||||
@species = species
|
||||
@form = form
|
||||
@gender = gender
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user