[Opensim-users] One object sending a method to another
Toni Alatalo
toni at playsign.net
Tue Apr 5 09:18:22 UTC 2011
On Apr 5, 2011, at 12:07 PM, Simon Slavin wrote:
> Apparently the best method to do this is to pick a communications channel, implement a listener for each object and work out a common language they can all speak. Does anyone know a better way of doing it ?
AFAIK this is the only way in LSL.
With Opensim, however, you also have the option to do it with normal programming .. where can just have all the objects in one application and let them call each other however they want etc. In a region module.
For example this opensim region module creates a lot of objects in the code, and keeps references to the objects in the main app class, so can just call methods in them like in normal programming: self.tree = self.initTree("naali") etc. in http://code.google.com/p/rexprojectspace/source/browse/trunk/rexprojectspacemodule.py
> Simon.
~Toni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110405/3695e7d8/attachment.html>
More information about the Opensim-users
mailing list