#==============================================================================
#  Ex
#------------------------------------------------------------------------------
# g@\̒`B
#
# @\ꗗ
#T14-030 NEW--->
#   gIvV
#   Ex.parse_exop( str )
#<--------------
#
#==============================================================================

module Ex
  
  #--------------------------------------------------------------------------
  #  萔lꗗ
  #--------------------------------------------------------------------------
  #T14-030 NEW--->
  #gIvVop̐K\
  @@exop_part = /[^<]*<(.*)>\s*/m
  @@exop_elem = /\s*([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*=[ \t]*\"([^\"]*)\"/m
  #<--------------
  
  #T14-030 NEW--->
  #--------------------------------------------------------------------------
  #  gIvV
  #     str  : gIvV̊܂܂镶
  #--------------------------------------------------------------------------
  def self.parse_exop(str)
    #
    str = "" if str.nil?
    op = {}

    #gIvV𕪉
    @@exop_part =~ str
    $1.scan(@@exop_elem) {|e| op[e[0]] = e[1]} if !$1.nil?
    
    return op
  end
  #<--------------

end

#T14-030 NEW--->
#ef[^ɊgIvVt^
#}bv
class RPG::MapInfo
  attr_accessor :exop
end

#GA
class RPG::Area
  attr_accessor :exop
end

#GO[v
class RPG::Troop
  attr_accessor :exop
end

#Aj[V
class RPG::Animation
  attr_accessor :exop
end

#RCxg
class RPG::CommonEvent
  attr_accessor :exop
end

#Cxg
class Game_Event < Game_Character
  attr_accessor :exop
end

#ACeEEh
class RPG::BaseItem
  attr_accessor :exop
end

#GL
class RPG::Enemy
  attr_accessor :exop
end

#Xe[g
class RPG::State
  attr_accessor :exop
end
#<--------------