public void ExecuteCallbacks(InSim insim, IPacket packet) { List <IPacketBinding> bindings; if (packetBindings.TryGetValue(packet.Type, out bindings)) { for (int i = 0; i < bindings.Count; i++) { bindings[i].ExecuteCallback(insim, packet); } } }
public void ExecuteCallback(InSim insim, IPacket packet) { callback(insim, packet); }