Refactored module nameing in the actions section.

parent fc26d1f3
module Aethyr
module Core
module Actions
module Action
def concurrency
return :single
end
def action()
end
module Extend
module Action
def concurrency
:single
end
class Event
include Aethyr::Core::Actions::Action
def action; end
end
class Event
include Aethyr::Extend::Action
def initialize(**data)
@data = data.freeze
end
def initialize(**data)
@data = data.freeze
end
end
end
......
module Aethyr
module Core
module Actions
class ActionGroup
attr_reader :concurrency
module Extend
class ActionGroup
attr_reader :concurrency
def initialize(concurrency, *actions)
@actions = *actions
@concurrency = concurrency
def initialize(concurrency, *actions)
@actions = *actions
@concurrency = concurrency
raise "Invalid concurrency type" if @concurrency != :parallel && @concurrency != :sequenial
raise "actions needs to have at least two values" if @actions.nil? || @actions.length < 2
end
def each
@actions.each { |e| yield e }
end
if @concurrency != :parallel && @concurrency != :sequenial
raise 'Invalid concurrency type'
end
if @actions.nil? || @actions.length < 2
raise 'actions needs to have at least two values'
end
end
def each
@actions.each { |e| yield e }
end
end
end
end
require "aethyr/core/actions/action"
module Aethyr
module Core
module Actions
class CommandAction < Event
def initialize(actor, **data)
super(**data)
@player = actor
end
module Extend
class CommandAction < Event
def initialize(actor, **data)
super(**data)
@player = actor
end
end
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acarea
class AcareaCommand < Aethyr::Core::Actions::CommandAction
class AcareaCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acdoor
class AcdoorCommand < Aethyr::Core::Actions::CommandAction
class AcdoorCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acomment
class AcommentCommand < Aethyr::Core::Actions::CommandAction
class AcommentCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Aconfig
class AconfigCommand < Aethyr::Core::Actions::CommandAction
class AconfigCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acportal
class AcportalCommand < Aethyr::Core::Actions::CommandAction
class AcportalCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acreate
class AcreateCommand < Aethyr::Core::Actions::CommandAction
class AcreateCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Acroom
class AcroomCommand < Aethyr::Core::Actions::CommandAction
class AcroomCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Adelete
class AdeleteCommand < Aethyr::Core::Actions::CommandAction
class AdeleteCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Adesc
class AdescCommand < Aethyr::Core::Actions::CommandAction
class AdescCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Aforce
class AforceCommand < Aethyr::Core::Actions::CommandAction
class AforceCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Ahelp
class AhelpCommand < Aethyr::Core::Actions::CommandAction
class AhelpCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Ahide
class AhideCommand < Aethyr::Core::Actions::CommandAction
class AhideCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Ainfo
class AinfoCommand < Aethyr::Core::Actions::CommandAction
class AinfoCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Alearn
class AlearnCommand < Aethyr::Core::Actions::CommandAction
class AlearnCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Alist
class AlistCommand < Aethyr::Core::Actions::CommandAction
class AlistCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module All
class AllCommand < Aethyr::Core::Actions::CommandAction
class AllCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Alog
class AlogCommand < Aethyr::Core::Actions::CommandAction
class AlogCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Alook
class AlookCommand < Aethyr::Core::Actions::CommandAction
class AlookCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Aput
class AputCommand < Aethyr::Core::Actions::CommandAction
class AputCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Areaction
class AreactionCommand < Aethyr::Core::Actions::CommandAction
class AreactionCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Areas
class AreasCommand < Aethyr::Core::Actions::CommandAction
class AreasCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Areload
class AreloadCommand < Aethyr::Core::Actions::CommandAction
class AreloadCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Asave
class AsaveCommand < Aethyr::Core::Actions::CommandAction
class AsaveCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Aset
class AsetCommand < Aethyr::Core::Actions::CommandAction
class AsetCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Astatus
class AstatusCommand < Aethyr::Core::Actions::CommandAction
class AstatusCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Ateach
class AteachCommand < Aethyr::Core::Actions::CommandAction
class AteachCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Awatch
class AwatchCommand < Aethyr::Core::Actions::CommandAction
class AwatchCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Awho
class AwhoCommand < Aethyr::Core::Actions::CommandAction
class AwhoCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Date
class DateCommand < Aethyr::Core::Actions::CommandAction
class DateCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module DeletePlayer
class DeletePlayerCommand < Aethyr::Core::Actions::CommandAction
class DeletePlayerCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module DeletePost
class DeletePostCommand < Aethyr::Core::Actions::CommandAction
class DeletePostCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Deleteme
class DeletemeCommand < Aethyr::Core::Actions::CommandAction
class DeletemeCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Drop
class DropCommand < Aethyr::Core::Actions::CommandAction
class DropCommand < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Agree
class AgreeCommand < Aethyr::Core::Actions::EmoteAction
class AgreeCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Back
class BackCommand < Aethyr::Core::Actions::EmoteAction
class BackCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Blush
class BlushCommand < Aethyr::Core::Actions::EmoteAction
class BlushCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Bow
class BowCommand < Aethyr::Core::Actions::EmoteAction
class BowCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Brb
class BrbCommand < Aethyr::Core::Actions::EmoteAction
class BrbCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Bye
class ByeCommand < Aethyr::Core::Actions::EmoteAction
class ByeCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Cheer
class CheerCommand < Aethyr::Core::Actions::EmoteAction
class CheerCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Cry
class CryCommand < Aethyr::Core::Actions::EmoteAction
class CryCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Curtsey
class CurtseyCommand < Aethyr::Core::Actions::EmoteAction
class CurtseyCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Eh
class EhCommand < Aethyr::Core::Actions::EmoteAction
class EhCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Emote
class EmoteCommand < Aethyr::Core::Actions::EmoteAction
class EmoteCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
require 'aethyr/core/actions/command_action'
module Aethyr
module Core
module Actions
class EmoteAction < Aethyr::Core::Actions::CommandAction
module Extend
class EmoteAction < Aethyr::Extend::CommandAction
def initialize(actor, **data)
super(actor, **data)
end
......@@ -148,4 +147,3 @@ module Aethyr
end
end
end
end
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Er
class ErCommand < Aethyr::Core::Actions::EmoteAction
class ErCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Ew
class EwCommand < Aethyr::Core::Actions::EmoteAction
class EwCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Frown
class FrownCommand < Aethyr::Core::Actions::EmoteAction
class FrownCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Grin
class GrinCommand < Aethyr::Core::Actions::EmoteAction
class GrinCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)
end
......
......@@ -4,7 +4,7 @@ module Aethyr
module Core
module Actions
module Hi
class HiCommand < Aethyr::Core::Actions::EmoteAction
class HiCommand < Aethyr::Extend::EmoteAction
def initialize(actor, **data)
super(actor, **data)