Skip to content

Metatable:NetworkMessage

Stefan A. Brannfjell edited this page Dec 19, 2017 · 3 revisions

No description available at the moment.

Available methods:

addByte(number)
addDouble(number)
addItem(item)
addItemId(itemId)
addPosition(position)
addString(string)
addU16(number)
addU32(number)
addU64(number)
getByte()
getPosition()
getString()
getU16()
getU32()
getU64()
reset()
sendToPlayer(player)
skipBytes(number)


addByte(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addByte(any_number)

Added in version: 1.0


addDouble(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addDouble(any_number)

Added in version: 1.0


addItem(item)

Description: N/A
Parameters:

  • item - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addItem(some_userdata)

Added in version: 1.0


addItemId(itemId)

Description: N/A
Parameters:

  • itemId - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addItemId(2400)

Added in version: 1.0


addPosition(position)

Description: N/A
Parameters:

  • position - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addPosition(Position())

Added in version: 1.0


addString(string)

Description: N/A
Parameters:

  • string - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addString(any_string)

Added in version: 1.0


addU16(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addU16(any_number)

Added in version: 1.0


addU32(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addU32(any_number)

Added in version: 1.0


addU64(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:addU64(any_number)

Added in version: 1.0


getByte()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getByte()

Added in version: 1.0


getPosition()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getPosition()

Added in version: 1.0


getString()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getString()

Added in version: 1.0


getU16()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getU16()

Added in version: 1.0


getU32()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getU32()

Added in version: 1.0


getU64()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:getU64()

Added in version: 1.0


reset()

Description: N/A
Parameters: None
Returns: N/A
Example:

local networkmessage = NetworkMessage(...)
networkmessage:reset()

Added in version: 1.0


sendToPlayer(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:sendToPlayer(some_userdata)

Added in version: 1.0


skipBytes(number)

Description: N/A
Parameters:

  • number - No description
Returns: N/A
Example:
local networkmessage = NetworkMessage(...)
networkmessage:skipBytes(any_number)

Added in version: 1.0

Clone this wiki locally