Similar to the OSDMap in libomv?<div><br><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 2:39 PM, Justin Clark-Casey <span dir="ltr"><<a href="mailto:jjustincc@googlemail.com">jjustincc@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi there.  Whilst implementing media-on-a-prim, I've been keeping as much code in the MOAP region module as possible.<br>

<br>
I'm quite impressed with how feasible this is.  However, there remain three major structures where the core of OpenSim has to understand something about media on a prim.<br>
<br>
1)  Database plugins - to get/put values to named database columns (e.g. prims.MediaURL).<br>
2)  Script functions (e.g. llGetPrimMediaParams()).<br>
3)  Scene objects (PrimitiveBaseShape.Media and SceneObjectPart.MediaURL).<br>
<br>
It's difficult to do anything right now about (1) and (2), but I believe there is an opportunity to address (3).<br>
<br>
What I would like to do is introduce dictionaries into PrimitiveBaseShape and SceneObjectPart that would supplement existing fields by storing arbitrary key/value pairs.  So instead of having to hardcode a new MediaURL property on SceneObjectPart I could instead get/put the data as something like SceneObjectPart.Values["MediaURL"].<br>

<br>
Thus, the dictionaries can act as blackboards for communication between plugins and modules without the core of OpenSim having to get involved.  I think that this would move us a tiny way towards our vision of being a generic virtual environment platform and away from hardcoded Second Life specifics, and make it easier to write more ambitious region modules without additions to core.<br>

<br>
Thoughts?<br><font color="#888888">
<br>
-- <br>
Justin Clark-Casey (justincc)<br>
<a href="http://justincc.org" target="_blank">http://justincc.org</a><br>
<a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a><br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</font></blockquote></div><br></div>