class OpenRAReplay::ServerOrder
Public Class Methods
construct(input)
click to toggle source
# File lib/openrareplay/order/server.rb, line 25 def self.construct(input) # Credit to Stekke for putting me on the right # direction for these orders command_length = decode_uleb128_io input command = input.read(command_length) data_length = decode_uleb128_io input data = input.read(data_length) new(command: command, data: data) end
Public Instance Methods
serialize()
click to toggle source
# File lib/openrareplay/order/server.rb, line 39 def serialize (Order::SERVER_COMMAND + encode_uleb128(command.length) + command + encode_uleb128(data.length) + data) end
server_order?()
click to toggle source
# File lib/openrareplay/order/server.rb, line 35 def server_order? true end