[Opensim-users] NPC Persistence: Where should the list/dictionary of NPCs go in class structure?
Justin Clark-Casey
jjustincc at googlemail.com
Fri Nov 5 00:09:58 UTC 2010
On 02/11/10 22:45, bodzette Coignet wrote:
> Since NPCs should have a life of their own outside the scope of scenepresence of each human user, I need to pick the
> right spot to give them persistent state.
>
> Thus: the wrapper class that holds state information for the list of active NPCs needs to be instantiated somewhere in
> the class hierarchy, but where?
>
> My own guess for where this should go is OpenSim::Region::Framework::Scenes::SceneGraph
>
> Any OpenSim devs with a better handle on the structure of OpenSim have an opinion on this or should I just hack it out
> for now and ask this question later?
I suspect hack it out and sort it out later is the better bet. However, I would recommend keeping as much data as
possible in modules. I would say that Adding NPC specific stuff to core OpenSim classes is unlikely to be appropriate.
--
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
More information about the Opensim-users
mailing list