示例#1
0
 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); }
 }
示例#2
0
		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; }
		}
示例#3
0
文件: Lua.cs 项目: welterde/obsidian
 internal Lua(Server server)
 {
     this.server = server;
 }
示例#4
0
 internal List(Server server)
 {
     this.server = server;
 }
示例#5
0
 public void Send(Server server)
 {
     foreach (Packet packet in packets) packet.Send(server);
 }
示例#6
0
 public void Send(Server server)
 {
     Send(server.Level);
 }
示例#7
0
 internal Heartbeat(Server server)
 {
     this.server = server;
 }
示例#8
0
 public UpdateQueue(Server server)
 {
     if (server==null) { throw new ArgumentNullException("server"); }
     this.server = server;
     thread = new Thread(DoStuff);
 }