lib/nova/starbound/default_behavior.rb
require "nova/starbound/default_behavior/eventable"
require "nova/starbound/default_behavior/passwordable"
require "nova/starbound/default_behavior/star_runnable"
require "nova/starbound/default_behavior/echoable"
require "multi_json"
module Nova
module Starbound
# Handles the default behavior of the protocol. Attaches a few
# events to the protocol.
#
# @todo Add more behaviors.
class DefaultBehavior
include Eventable
include Passwordable
include StarRunnable
include Echoable
# @!parse include Eventable::InstanceMethods
# @!parse extend Eventable::ClassMethods
# Initialize the class.
def initialize(protocol)
attach_events protocol
end
end
end
end