using RageCoop.Core.Scripting; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace RageCoop.Client.Scripting { /// /// public class ClientResource { /// /// Name of the resource /// public string Name { get; internal set; } /// /// Directory where the scripts is loaded from /// public string ScriptsDirectory { get; internal set; } /// /// A resource-specific folder that can be used to store your files. /// public string DataFolder { get; internal set; } /// /// Get all instance in this resource. /// public List Scripts { get; internal set; } = new List(); /// /// Get the where this script is loaded from. /// public Dictionary Files { get; internal set; } = new Dictionary(); /// /// A instance that can be used to debug your resource. /// public Core.Logger Logger { get; internal set; } } public class PlayerInfo { public byte HolePunchStatus { get; internal set; } public bool IsHost { get; internal set; } public string Username { get; internal set; } public int ID { get; internal set; } public int EntityHandle { get; internal set; } public IPEndPoint InternalEndPoint { get; internal set; } public IPEndPoint ExternalEndPoint { get; internal set; } public float Ping { get; internal set; } public float PacketTravelTime { get; internal set; } public bool DisplayNameTag { get; internal set; } public bool HasDirectConnection { get; internal set; } } }