using System; using System.Collections.Generic; using UnityEngine; public class AllocsLogFunctions { public static void RequestToSpawnPlayer (GameManager manager, int _clientId, string _name, string _playerClassname, string _skinTexture, int _chunkViewDim) { try { ClientInfo ci = CommonMappingFunctions.GetClientInfoFromClientID (_clientId); int entityId = CommonMappingFunctions.GetEntityID (ci); EntityPlayer ep = CommonMappingFunctions.GetEntityPlayer (ci); string ip = ci.networkPlayer.ipAddress; string name = string.Empty; if (ep != null) name = ep.EntityName; Log.Out ("Player connected, clientid=" + _clientId + ", entityid=" + entityId + ", name=" + name + ", steamid=" + CommonMappingFunctions.GetSteamID (ci) + ", ip=" + ip ); } catch (Exception e) { Log.Out ("Error in RequestToSpawnPlayer: " + e); } } public static void ExecuteCmdFromClient (ConsoleSdtd console, NetworkPlayer _networkPlayer, string _playerID, string _command) { Log.Out ("Executed command \"" + _command + "\" from player \"" + _playerID + "\""); } }