[Opensim-dev] Hooking in Scene.EventManager
Garrett Hussey
garrett.hussey at gmail.com
Wed Jan 21 21:13:12 UTC 2009
Great stuff - thanks for your help Diva
Cheers
Garrett
2009/1/21 Diva Canto <diva at metaverseink.com>
> Yep, that's it.
> Those events are there for being used.
>
> When writing region modules just keep in mind that your region module code
> runs natively with the core code; if you mess up, the core behavior may get
> messed up too. So, for example, if your module adds significant delays in
> processing an event, it may interfere with the normal OpenSim operation. So
> be smart with your region modules :-)
>
>
>
> Garrett Hussey wrote:
>
> Hi, sorry - I should have elaborated a bit more.
>
> At the moment the EventManager exposes a number of events. I want to do the
> following in
> my region module ...
>
> // TEST TEST SET
>
> m_scene.EventManager.OnObjectGrab +=
> new EventManager.ObjectGrabDelegate(MYObjectGrabDelegate); So my module
> with get notified of every object grab event in the scene. So my question is
> - is this a good/reasonable way to trap every objectgrab event in the
> scene or is there another mechanism I should be using?
>
>
> Thanks again
> Garrett
>
>
>
> 2009/1/21 Diva Canto <diva at metaverseink.com>
>
>> Which ones do you need that aren't there?
>>
>> Garrett Hussey wrote:
>>
>> Hi,
>>
>> I'm playing around with my own region module and was wondering ifs its
>> reasonable/sane,
>> good/bad practise to add extra event handlers to the Scene.EventManager
>> and handle the events in my
>> region module ?
>>
>> Thanks
>> Garrett
>>
>> ------------------------------
>>
>> _______________________________________________
>> Opensim-dev mailing listOpensim-dev at lists.berlios.dehttps://lists.berlios.de/mailman/listinfo/opensim-dev
>>
>>
>>
>> _______________________________________________
>> Opensim-dev mailing list
>> Opensim-dev at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-dev
>>
>>
> ------------------------------
>
> _______________________________________________
> Opensim-dev mailing listOpensim-dev at lists.berlios.dehttps://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090121/f91614ba/attachment-0001.html>
More information about the Opensim-dev
mailing list