Diff of /branches/taiga-0.1/ModularRex/RexNetwork/ClientViews/RexClientViewBase.cs
Parent Directory
|
Revision Log
|
Patch
| revision 174, Mon Jun 1 13:05:22 2009 UTC | revision 175, Tue Jun 2 07:10:08 2009 UTC | |
|---|---|---|
| # | Line 902 | Line 902 |
| 902 | SendGenericMessage("RexCSEffect", pack); | SendGenericMessage("RexCSEffect", pack); |
| 903 | } | } |
| 904 | ||
| 905 | public void SendRexPrimFreeData(UUID primID, string rexData) | |
| 906 | { | |
| 907 | List<string> pack = new List<string>(); | |
| 908 | ||
| 909 | int numlines = 0; | |
| 910 | int i = 0; | |
| 911 | //count number of lines. 200chars/line | |
| 912 | while (i <= rexData.Length) | |
| 913 | { | |
| 914 | numlines++; | |
| 915 | i += 200; | |
| 916 | } | |
| 917 | ||
| 918 | pack.Add(primID.ToString()); | |
| 919 | ||
| 920 | string sline = ""; | |
| 921 | for (i = 0; i < numlines; i++) //cut the data to 200 char fields and add to packet | |
| 922 | { | |
| 923 | if ((rexData.Length - i * 200) < 200) | |
| 924 | sline = rexData.Substring(i * 200, rexData.Length - i * 200); | |
| 925 | else | |
| 926 | sline = rexData.Substring(i * 200, 200); | |
| 927 | ||
| 928 | pack.Add(sline); | |
| 929 | } | |
| 930 | ||
| 931 | SendGenericMessage("RexData", pack); | |
| 932 | } | |
| 933 | ||
| 934 | public override void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) | public override void InformClientOfNeighbour(ulong neighbourHandle, IPEndPoint neighbourExternalEndPoint) |
| 935 | { | { |
| 936 | IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); | IRexUDPPort module = m_scene.RequestModuleInterface<IRexUDPPort>(); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

