コード例 #1
0
        public PortalPacketHandler(byte packetID, ushort length, PortalContext context, PortalReceive onReceive)
        {
            ID      = packetID;
            Length  = length;
            Context = context;

            OnReceive = onReceive;
        }
コード例 #2
0
        public PortalPacketHandler(byte packetID, ushort length, PortalContext context, PortalReceive onReceive)
        {
            ID = packetID;
            Length = length;
            Context = context;

            OnReceive = onReceive;
        }
コード例 #3
0
ファイル: PortalClient.cs プロジェクト: uotools/Multiverse
        public PortalPacketHandler Register(ushort id, PortalContext context, PortalReceive onReceive)
        {
            if (Handlers.ContainsKey(id))
            {
                ToConsole("Warning: Replacing Packet Handler for {0}", id);
            }

            return(Handlers[id] = new PortalPacketHandler(id, context, onReceive));
        }
コード例 #4
0
ファイル: PortalClient.cs プロジェクト: Vita-Nex/Multiverse
        public PortalPacketHandler Register(ushort id, PortalContext context, PortalReceive onReceive)
        {
            lock (((ICollection)Handlers).SyncRoot)
            {
                if (Handlers.ContainsKey(id))
                {
                    ToConsole("Warning: Replacing Packet Handler for {0}", id);
                }

                return Handlers[id] = new PortalPacketHandler(id, context, onReceive);
            }
        }
コード例 #5
0
 public PortalPacketHandler(ushort packetID, PortalContext context, PortalReceive onReceive)
 {
     ID        = packetID;
     Context   = context;
     OnReceive = onReceive;
 }
コード例 #6
0
 public PortalPacketHandler(ushort packetID, PortalContext context, PortalReceive onReceive)
 {
     ID = packetID;
     Context = context;
     OnReceive = onReceive;
 }
コード例 #7
0
 public PortalPacketHandler Register(byte id, ushort length, PortalContext context, PortalReceive onReceive)
 {
     lock (((ICollection)Handlers).SyncRoot)
     {
         return(Handlers[id] = new PortalPacketHandler(id, length, context, onReceive));
     }
 }
コード例 #8
0
ファイル: PortalClient.cs プロジェクト: Crome696/Multiverse
 public PortalPacketHandler Register(byte id, ushort length, PortalContext context, PortalReceive onReceive)
 {
     lock (((ICollection)Handlers).SyncRoot)
     {
         return Handlers[id] = new PortalPacketHandler(id, length, context, onReceive);
     }
 }