Class: RuneRb::Network::RS317::ArrowKeyMessage::Rotation

Inherits:
Struct
  • Object
show all
Includes:
System::Log
Defined in:
app/network/protocol/rs317/incoming/arrow.rb

Overview

A arrow rotation event

Since:

  • 0.9.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Instance Attribute Details

#rollObject

Returns the value of attribute roll

Returns:

  • (Object)

    the current value of roll


6
7
8
# File 'app/network/protocol/rs317/incoming/arrow.rb', line 6

def roll
  @roll
end

#yawObject

Returns the value of attribute yaw

Returns:

  • (Object)

    the current value of yaw


6
7
8
# File 'app/network/protocol/rs317/incoming/arrow.rb', line 6

def yaw
  @yaw
end

Instance Method Details

#inspectObject

Since:

  • 0.9.3


9
10
11
# File 'app/network/protocol/rs317/incoming/arrow.rb', line 9

def inspect
  log! "Camera Rotation: #{RuneRb::GLOBAL[:COLOR].blue.bold("[Roll]: #{RuneRb::GLOBAL[:COLOR].cyan(self.roll)}")} || [Yaw]: #{RuneRb::GLOBAL[:COLOR].cyan(self.yaw)}"
end