using Barotrauma.Networking; using System.Collections.Generic; namespace Barotrauma.LuaCs.Compatibility; internal interface ILuaCsNetworking : ILuaCsShim { void CreateEntityEvent(INetSerializable entity, NetEntityEvent.IData extraData); ushort LastClientListUpdateID { get; set; } void HttpRequest(string url, LuaCsAction callback, string data = null, string method = "POST", string contentType = "application/json", Dictionary headers = null, string savePath = null); void HttpPost(string url, LuaCsAction callback, string data, string contentType = "application/json", Dictionary headers = null, string savePath = null); void HttpGet(string url, LuaCsAction callback, Dictionary headers = null, string savePath = null); void Receive(string netId, LuaCsAction action); #if SERVER int FileSenderMaxPacketsPerUpdate { get; set; } void ClientWriteLobby(Client client); void UpdateClientPermissions(Client client); IWriteMessage Start(); void Send(IWriteMessage mesage, NetworkConnection connection = null, DeliveryMethod deliveryMethod = DeliveryMethod.Reliable); #elif CLIENT void Send(IWriteMessage mesage, DeliveryMethod deliveryMethod = DeliveryMethod.Reliable); #endif }