Skip to content

Commands

Andrea Franchini edited this page Sep 13, 2019 · 1 revision

Commands

A command can be sent to a client using the Send() method from the NetCode class.

A command begins with an OpCode, which is basically an enum, listing the commands you want to handle; it accepts then an optional array of arguments, whose number and quantity have to be specified in the Models map.

Accepted types are:

  • Int8
  • UInt8
  • Int16
  • UInt16
  • Int32
  • UInt32
  • Float32
  • Float64
Clone this wiki locally