NetModulePing

public struct NetModulePing : NetModule

This is a struct for the Ping NetModule.

  • Undocumented

    Declaration

    Swift

    public var position: SIMD2<Float32>
  • Declaration

    Swift

    public init()
  • Call this function to initialize the NetModule with data.

    Usage Example:

    
    

    Declaration

    Swift

    public init(position: SIMD2<Float32>)

    Parameters

    position

    The vanilla chat command you wish to perform as a NetModuleChat.ChatCommandType

  • Declaration

    Swift

    public mutating func decode(_ reader: BinaryReader, _ context: TerrariaPacketContext) throws
  • Declaration

    Swift

    public mutating func encode(_ writer: BinaryWriter, _ context: TerrariaPacketContext) throws