public static void Raise(this Delegate del,Server server,params object[] args) { if (server!=null) { lock (server.lua) { try { del.DynamicInvoke(args); } catch (Exception e) { server.lua.Error(e.InnerException); } } } else { del.DynamicInvoke(args); } }
internal Player(Server server,Protocol helper) { this.server = server; this.helper = helper; helper.Disconnected += OnDisconnect; helper.Login += OnLogin; helper.Block += OnBlock; helper.Move += OnMove; helper.Chat += OnChat; bind = new byte[Blocktype.Count]; for (byte i=0;i<bind.Length;i++) { bind[i] = i; } }
internal Lua(Server server) { this.server = server; }
internal List(Server server) { this.server = server; }
public void Send(Server server) { foreach (Packet packet in packets) packet.Send(server); }
public void Send(Server server) { Send(server.Level); }
internal Heartbeat(Server server) { this.server = server; }
public UpdateQueue(Server server) { if (server==null) { throw new ArgumentNullException("server"); } this.server = server; thread = new Thread(DoStuff); }