NetModule
public protocol NetModule
This is a protocol in which all NetModules should conform to.
-
Call this function to decode a netmodule from a given BinaryReader’s data.
Declaration
Swift
mutating func decode(_ reader: BinaryReader, _ context: TerrariaPacketContext) throws
-
Call this function to encode the payload of a netmodule to a given BinaryWriter.
Declaration
Swift
mutating func encode(_ writer: BinaryWriter, _ context: TerrariaPacketContext) throws
-
Placeholder init
Declaration
Swift
init()