using System; using System.Threading.Tasks; using Luski.net.Interfaces; namespace Luski.net; public partial class Server { public event Func? UserStatusUpdate; public event Func? OnError; internal void Exception(Exception e) { if (OnError is not null) OnError.Invoke(e); } internal void StatusUpdate(IUser u1, IUser u2) { if (UserStatusUpdate is not null) UserStatusUpdate.Invoke(u1, u2); } }