class Gamefic::Plot
def branch subplot_class = Gamefic::Subplot, introduce: [], **config
-
(Gamefic::Subplot)
-
Parameters:
-
config
(Hash
) -- Subplot configuration -
introduce
(Gamefic::Actor, Array
) -- Players to introduce -
subplot_class
(Class
) -- The Subplot class
def branch subplot_class = Gamefic::Subplot, introduce: [], **config subplot_class.new(self, introduce: introduce, **config) .tap { |sub| subplots.push sub } end