Barotrauma Client Doc
Barotrauma.LuaCsNetworking Class Reference

Public Member Functions

void Initialize ()
 
void Remove (string netMessageName)
 
IWriteMessage Start ()
 
string IdToString (ushort id)
 
ushort StringToId (string name)
 
async void HttpRequest (string url, LuaCsAction callback, string data=null, string method="POST", string contentType="application/json", Dictionary< string, string > headers=null, string savePath=null)
 
void HttpPost (string url, LuaCsAction callback, string data, string contentType="application/json", Dictionary< string, string > headers=null, string savePath=null)
 
void HttpGet (string url, LuaCsAction callback, Dictionary< string, string > headers=null, string savePath=null)
 
void CreateEntityEvent (INetSerializable entity, NetEntityEvent.IData extraData)
 
void SendSyncMessage ()
 
void NetMessageReceived (IReadMessage netMessage, ServerPacketHeader header, Client client=null)
 
IWriteMessage Start (string netMessageName)
 
void Receive (string netMessageName, LuaCsAction callback)
 
void RequestId (string netMessageName)
 
void Send (IWriteMessage netMessage, DeliveryMethod deliveryMethod=DeliveryMethod.Reliable)
 

Public Attributes

bool RestrictMessageSize = true
 

Properties

ushort LastClientListUpdateID [get, set]
 

Detailed Description

Member Function Documentation

◆ CreateEntityEvent()

void Barotrauma.LuaCsNetworking.CreateEntityEvent ( INetSerializable  entity,
NetEntityEvent.IData  extraData 
)

◆ HttpGet()

void Barotrauma.LuaCsNetworking.HttpGet ( string  url,
LuaCsAction  callback,
Dictionary< string, string >  headers = null,
string  savePath = null 
)

◆ HttpPost()

void Barotrauma.LuaCsNetworking.HttpPost ( string  url,
LuaCsAction  callback,
string  data,
string  contentType = "application/json",
Dictionary< string, string >  headers = null,
string  savePath = null 
)

◆ HttpRequest()

async void Barotrauma.LuaCsNetworking.HttpRequest ( string  url,
LuaCsAction  callback,
string  data = null,
string  method = "POST",
string  contentType = "application/json",
Dictionary< string, string >  headers = null,
string  savePath = null 
)

◆ IdToString()

string Barotrauma.LuaCsNetworking.IdToString ( ushort  id)

◆ Initialize()

void Barotrauma.LuaCsNetworking.Initialize ( )

◆ NetMessageReceived()

void Barotrauma.LuaCsNetworking.NetMessageReceived ( IReadMessage  netMessage,
ServerPacketHeader  header,
Client  client = null 
)

◆ Receive()

void Barotrauma.LuaCsNetworking.Receive ( string  netMessageName,
LuaCsAction  callback 
)

◆ Remove()

void Barotrauma.LuaCsNetworking.Remove ( string  netMessageName)

◆ RequestId()

void Barotrauma.LuaCsNetworking.RequestId ( string  netMessageName)

◆ Send()

void Barotrauma.LuaCsNetworking.Send ( IWriteMessage  netMessage,
DeliveryMethod  deliveryMethod = DeliveryMethod.Reliable 
)

◆ SendSyncMessage()

void Barotrauma.LuaCsNetworking.SendSyncMessage ( )

◆ Start() [1/2]

IWriteMessage Barotrauma.LuaCsNetworking.Start ( )

◆ Start() [2/2]

IWriteMessage Barotrauma.LuaCsNetworking.Start ( string  netMessageName)

◆ StringToId()

ushort Barotrauma.LuaCsNetworking.StringToId ( string  name)

Member Data Documentation

◆ RestrictMessageSize

bool Barotrauma.LuaCsNetworking.RestrictMessageSize = true

Property Documentation

◆ LastClientListUpdateID

ushort Barotrauma.LuaCsNetworking.LastClientListUpdateID
getset