Is it possible for a parent class to contain a list of all the subclasses?
I have two classes here and they are as follows
public class Event{
List<Event> events = new <Event>();
// etc
}
public class Message : Event{
string text;
// etc
}
In this scenario, (in Main) I can draw event.First()
which could be a message (textbox), then delete the event. Does this have any problems? this is for an RPG dialogue system. (Other events will be input boxes, etc)