예제 #1
0
        public void Add( byte packet, PacketFilterCondition[] contraints )
        {
            if (m_Filters == null)
                m_Filters = new List<PacketFilterInfo>();

            m_Filters.Add( new PacketFilterInfo( packet, contraints ) );
        }
예제 #2
0
 public static void AddSendFilter( int client, byte packetID, PacketFilterCondition[] conditions )
 {
     ClientInfo ci;
     if (ClientInfoCollection.GetClient( client, out ci ))
     {
         PacketFilterInfo pfi = new PacketFilterInfo( packetID, conditions );
         byte[] bytes = pfi.Serialize();
         Network.SendCommand( ci.IPCServerIndex, Command.AddSendFilterConditional, bytes );
     }
 }
 private void Ci_AddRecvFilterEvent( byte packetID, PacketFilterCondition[] conditions )
 {
     myRecvFilter.Add( packetID, conditions );
 }
예제 #4
0
 public PacketFilterInfo( int packetid, PacketFilterCondition[] conditions )
 {
     m_PacketID = packetid;
     m_Conditions = conditions;
 }
예제 #5
0
 private static void myClientInstance_addRecvFilterEvent( byte packetID, PacketFilterCondition[] conditions )
 {
     myRecvFilter.Add( packetID, conditions );
 }