Diff of /trunk/ModularRex/RexParts/ModrexObjects.cs
Parent Directory
|
Revision Log
|
Patch
| revision 85, Wed Mar 4 10:03:54 2009 UTC | revision 86, Wed Mar 4 14:40:05 2009 UTC | |
|---|---|---|
| # | Line 68 | Line 68 |
| 68 | if (client.TryGet(out rcv)) | if (client.TryGet(out rcv)) |
| 69 | { | { |
| 70 | rcv.OnRexObjectProperties += rcv_OnRexObjectProperties; | rcv.OnRexObjectProperties += rcv_OnRexObjectProperties; |
| 71 | rcv.OnPrimFreeData += rcv_OnPrimFreeData; | |
| 72 | //rcv.OnChatFromClient += rcv_OnChatFromClient; | //rcv.OnChatFromClient += rcv_OnChatFromClient; |
| 73 | ||
| 74 | // Send them the current Scene. | // Send them the current Scene. |
| # | Line 75 | Line 76 |
| 76 | } | } |
| 77 | } | } |
| 78 | ||
| 79 | private void rcv_OnPrimFreeData(RexClientView sender, List<string> parameters) | |
| 80 | { | |
| 81 | m_log.Info("[REXOBJS] Received Prim free data"); | |
| 82 | if (parameters.Count == 2) | |
| 83 | { | |
| 84 | UUID primID = new UUID(parameters[0]); | |
| 85 | string data = parameters[1]; | |
| 86 | ||
| 87 | RexObjectProperties props = GetObject(primID); | |
| 88 | props.RexData = data; | |
| 89 | } | |
| 90 | else | |
| 91 | { | |
| 92 | m_log.Warn("[REXOBJS] unexpected number of parameters"); | |
| 93 | } | |
| 94 | } | |
| 95 | ||
| 96 | void SceneGraph_OnObjectDuplicate(EntityBase original, EntityBase clone) | void SceneGraph_OnObjectDuplicate(EntityBase original, EntityBase clone) |
| 97 | { | { |
| 98 | RexObjectProperties origprops = GetObject(original.UUID); | RexObjectProperties origprops = GetObject(original.UUID); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

