[Opensim-dev] Restructuring IClientAPI - thoughts wanted
Homer Horwitz
homerhorwitz at googlemail.com
Sun Sep 14 10:29:53 UTC 2008
Melanie +1
As we luckily use an object-oriented language, I'm strongly against
recoding parts of the functionality of that.
On Sun, Sep 14, 2008 at 5:03 AM, Frisby, Adam <adam at deepthink.com.au> wrote:
> My thoughts for that was along the lines of:
>
> [SERVER] Client connecting at WW.XX.YY.ZZ, supports <InstantMessaging, Chat, Primitives>.
You could do that without problems via reflection, too (via
Type.getInterfaces). If you only want to output "interesting"
interfaces, we could use a tagging interface as base for all the
"part"-interfaces:
interface IClientBase {}
interface InstantMessaging : IClientBase {
...
}
interface Chat : IClientBase {
...
}
...
You can then filter to only get the interfaces that inherit from
IClientBase and output them (code available on request).
Cheers,
Homer
More information about the Opensim-dev
mailing list