POV-Ray : Newsgroups : povray.off-topic : Generics annoyance : Re: Generics annoyance Server Time
4 Sep 2024 13:17:01 EDT (-0400)
  Re: Generics annoyance  
From: Christian Froeschlin
Date: 13 Apr 2010 11:51:04
Message: <4bc492e8$1@news.povray.org>
Darren New wrote:

> There's no way to make a "collection of objects that implement 
> IGameComponent, IDrawable, and IUpdatable" as far as I know.

I suppose you could subclass a collection of IGameComponents
and add run-time type checks to only allow adding objects which
also implement IDrawable and IUpdatable.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.