public void Add( byte packet, PacketFilterCondition[] contraints ) { if (m_Filters == null) m_Filters = new List<PacketFilterInfo>(); m_Filters.Add( new PacketFilterInfo( packet, contraints ) ); }
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 ); }
public PacketFilterInfo( int packetid, PacketFilterCondition[] conditions ) { m_PacketID = packetid; m_Conditions = conditions; }
private static void myClientInstance_addRecvFilterEvent( byte packetID, PacketFilterCondition[] conditions ) { myRecvFilter.Add( packetID, conditions ); }