Hello Dmitry, here's a suggestion:
I have seen in several commercial softwares that are in a separate list of the principal, and I think it is a good idea.
operation is to reach the agreed time for an advertising block the program continues with the list of ads, and then returns the main list.
This makes it more organized view of the main list, and on the other hand solves the problem with the events (if at the time it is playing a commercial, running another event, wait till it finishes, or remove it from the list to start playing commercials) I mean the problem is that no commercial inserted in the middle of events.
I have seen in several commercial softwares that are in a separate list of the principal, and I think it is a good idea.
operation is to reach the agreed time for an advertising block the program continues with the list of ads, and then returns the main list.
This makes it more organized view of the main list, and on the other hand solves the problem with the events (if at the time it is playing a commercial, running another event, wait till it finishes, or remove it from the list to start playing commercials) I mean the problem is that no commercial inserted in the middle of events.