|
 |
Am 13.04.2010 22:46, schrieb Warp:
> If C# offered multiple inheritance (I don't know if it does), then you
> could inherit all the objects you are using from GameComponent and your
> own "base class", which is what the container then contains.
>
> (Of course this solution wouldn't help if you have to store objects
> which have been eg. instantiated by the library framework itself because
> those would not have been inherited from your "base class".)
I guess the typical C# approach to this type of problem would be wrapper
classes, which IIRC are not too difficult to write in C#. Such wrappers
could then just implement a common interface you intend to support.
Post a reply to this message
|
 |