diff options
author | MW | 2007-03-08 18:07:53 +0000 |
---|---|---|
committer | MW | 2007-03-08 18:07:53 +0000 |
commit | aa120266d79b87b39bf80f3f7aaca8970447bde1 (patch) | |
tree | cecae22f2d8b2fc7541a011d2db86f819901c51f /src/OpenSimClient.cs | |
parent | Changed water height to default of 20 (diff) | |
download | opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.zip opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.gz opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.bz2 opensim-SC_OLD-aa120266d79b87b39bf80f3f7aaca8970447bde1.tar.xz |
Primitive's shape and scale are now saved into database and reloaded.
New ServerConsole command: regenerate - will regenerate the terrain of the whole sim.
Diffstat (limited to 'src/OpenSimClient.cs')
-rw-r--r-- | src/OpenSimClient.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs index 1f9c70c..eb190e9 100644 --- a/src/OpenSimClient.cs +++ b/src/OpenSimClient.cs | |||
@@ -104,6 +104,25 @@ namespace OpenSim | |||
104 | case PacketType.ObjectAdd: | 104 | case PacketType.ObjectAdd: |
105 | OpenSim_Main.local_world.AddNewPrim((ObjectAddPacket)Pack, this); | 105 | OpenSim_Main.local_world.AddNewPrim((ObjectAddPacket)Pack, this); |
106 | break; | 106 | break; |
107 | case PacketType.ObjectLink: | ||
108 | ServerConsole.MainConsole.Instance.WriteLine(Pack.ToString()); | ||
109 | break; | ||
110 | case PacketType.ObjectScale: | ||
111 | ServerConsole.MainConsole.Instance.WriteLine(Pack.ToString()); | ||
112 | break; | ||
113 | case PacketType.ObjectShape: | ||
114 | ObjectShapePacket shape = (ObjectShapePacket)Pack; | ||
115 | for(int i =0; i <shape.ObjectData.Length; i++) | ||
116 | { | ||
117 | foreach (Entity ent in OpenSim_Main.local_world.Entities.Values) | ||
118 | { | ||
119 | if(ent.localid == shape.ObjectData[i].ObjectLocalID) | ||
120 | { | ||
121 | ((OpenSim.world.Primitive)ent).UpdateShape(shape.ObjectData[i]); | ||
122 | } | ||
123 | } | ||
124 | } | ||
125 | break; | ||
107 | case PacketType.MultipleObjectUpdate : | 126 | case PacketType.MultipleObjectUpdate : |
108 | MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)Pack; | 127 | MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)Pack; |
109 | 128 | ||
@@ -135,6 +154,18 @@ namespace OpenSim | |||
135 | } | 154 | } |
136 | } | 155 | } |
137 | } | 156 | } |
157 | else if(multipleupdate.ObjectData[i].Type == 13 )//scale | ||
158 | { | ||
159 | |||
160 | libsecondlife.LLVector3 scale = new LLVector3(multipleupdate.ObjectData[ i ].Data, 12 ); | ||
161 | foreach (Entity ent in OpenSim_Main.local_world.Entities.Values) | ||
162 | { | ||
163 | if(ent.localid == multipleupdate.ObjectData[ i ].ObjectLocalID) | ||
164 | { | ||
165 | ((OpenSim.world.Primitive)ent).Scale = scale; | ||
166 | } | ||
167 | } | ||
168 | } | ||
138 | } | 169 | } |
139 | break; | 170 | break; |
140 | case PacketType.TransferRequest: | 171 | case PacketType.TransferRequest: |