aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
diff options
context:
space:
mode:
authorDiva Canto2009-12-27 08:38:44 -0800
committerDiva Canto2009-12-27 08:38:44 -0800
commit2248d2ff32cc098f55cf9f0c9c4bf062eafff0dd (patch)
tree319a8f11c155a8d6171246887602395a410527e1 /OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
parentFirst pass at the local connector for presence. No cache yet. Just the connec... (diff)
parentMerge branch 'master' into presence-refactor (diff)
downloadopensim-SC_OLD-2248d2ff32cc098f55cf9f0c9c4bf062eafff0dd.zip
opensim-SC_OLD-2248d2ff32cc098f55cf9f0c9c4bf062eafff0dd.tar.gz
opensim-SC_OLD-2248d2ff32cc098f55cf9f0c9c4bf062eafff0dd.tar.bz2
opensim-SC_OLD-2248d2ff32cc098f55cf9f0c9c4bf062eafff0dd.tar.xz
Merge branch 'presence-refactor' of ssh://diva@opensimulator.org/var/git/opensim into presence-refactor
Diffstat (limited to 'OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs')
-rw-r--r--OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs394
1 files changed, 394 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs b/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
new file mode 100644
index 0000000..decd204
--- /dev/null
+++ b/OpenSim/Client/Sirikata/Protocol/Physics.pbj.cs
@@ -0,0 +1,394 @@
1using pbd = global::Google.ProtocolBuffers.Descriptors;
2using pb = global::Google.ProtocolBuffers;
3namespace Sirikata.Physics.Protocol {
4 public class CollisionBegin : PBJ.IMessage {
5 protected _PBJ_Internal.CollisionBegin super;
6 public _PBJ_Internal.CollisionBegin _PBJSuper{ get { return super;} }
7 public CollisionBegin() {
8 super=new _PBJ_Internal.CollisionBegin();
9 }
10 public CollisionBegin(_PBJ_Internal.CollisionBegin reference) {
11 super=reference;
12 }
13 public static CollisionBegin defaultInstance= new CollisionBegin (_PBJ_Internal.CollisionBegin.DefaultInstance);
14 public static CollisionBegin DefaultInstance{
15 get {return defaultInstance;}
16 }
17 public static pbd.MessageDescriptor Descriptor {
18 get { return _PBJ_Internal.CollisionBegin.Descriptor; } }
19 public static class Types {
20 }
21 public static bool WithinReservedFieldTagRange(int field_tag) {
22 return false;
23 }
24 public static bool WithinExtensionFieldTagRange(int field_tag) {
25 return false;
26 }
27 public const int TimestampFieldTag=2;
28 public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
29 public PBJ.Time Timestamp{ get {
30 if (HasTimestamp) {
31 return PBJ._PBJ.CastTime(super.Timestamp);
32 } else {
33 return PBJ._PBJ.CastTime();
34 }
35 }
36 }
37 public const int ThisPositionFieldTag=3;
38 public int ThisPositionCount { get { return super.ThisPositionCount/3;} }
39 public bool HasThisPosition(int index) { return true; }
40 public PBJ.Vector3d GetThisPosition(int index) {
41 if (HasThisPosition(index)) {
42 return PBJ._PBJ.CastVector3d(super.GetThisPosition(index*3+0),super.GetThisPosition(index*3+1),super.GetThisPosition(index*3+2));
43 } else {
44 return PBJ._PBJ.CastVector3d();
45 }
46 }
47 public const int OtherPositionFieldTag=4;
48 public int OtherPositionCount { get { return super.OtherPositionCount/3;} }
49 public bool HasOtherPosition(int index) { return true; }
50 public PBJ.Vector3d GetOtherPosition(int index) {
51 if (HasOtherPosition(index)) {
52 return PBJ._PBJ.CastVector3d(super.GetOtherPosition(index*3+0),super.GetOtherPosition(index*3+1),super.GetOtherPosition(index*3+2));
53 } else {
54 return PBJ._PBJ.CastVector3d();
55 }
56 }
57 public const int ThisNormalFieldTag=5;
58 public int ThisNormalCount { get { return super.ThisNormalCount/2;} }
59 public bool HasThisNormal(int index) { return true; }
60 public PBJ.Vector3f GetThisNormal(int index) {
61 if (HasThisNormal(index)) {
62 return PBJ._PBJ.CastNormal(super.GetThisNormal(index*2+0),super.GetThisNormal(index*2+1));
63 } else {
64 return PBJ._PBJ.CastNormal();
65 }
66 }
67 public const int ImpulseFieldTag=6;
68 public int ImpulseCount { get { return super.ImpulseCount;} }
69 public bool HasImpulse(int index) {return PBJ._PBJ.ValidateFloat(super.GetImpulse(index));}
70 public float Impulse(int index) {
71 return (float)PBJ._PBJ.CastFloat(super.GetImpulse(index));
72 }
73 public const int OtherObjectReferenceFieldTag=7;
74 public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
75 public PBJ.UUID OtherObjectReference{ get {
76 if (HasOtherObjectReference) {
77 return PBJ._PBJ.CastUuid(super.OtherObjectReference);
78 } else {
79 return PBJ._PBJ.CastUuid();
80 }
81 }
82 }
83 public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
84 public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
85 public static Builder CreateBuilder() { return new Builder(); }
86 public static Builder CreateBuilder(CollisionBegin prototype) {
87 return (Builder)new Builder().MergeFrom(prototype);
88 }
89 public static CollisionBegin ParseFrom(pb::ByteString data) {
90 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
91 }
92 public static CollisionBegin ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
93 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
94 }
95 public static CollisionBegin ParseFrom(byte[] data) {
96 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
97 }
98 public static CollisionBegin ParseFrom(byte[] data, pb::ExtensionRegistry er) {
99 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
100 }
101 public static CollisionBegin ParseFrom(global::System.IO.Stream data) {
102 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
103 }
104 public static CollisionBegin ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
105 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
106 }
107 public static CollisionBegin ParseFrom(pb::CodedInputStream data) {
108 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data));
109 }
110 public static CollisionBegin ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
111 return new CollisionBegin(_PBJ_Internal.CollisionBegin.ParseFrom(data,er));
112 }
113 protected override bool _HasAllPBJFields{ get {
114 return true
115 ;
116 } }
117 public bool IsInitialized { get {
118 return super.IsInitialized&&_HasAllPBJFields;
119 } }
120 public class Builder : global::PBJ.IMessage.IBuilder{
121 protected override bool _HasAllPBJFields{ get {
122 return true
123 ;
124 } }
125 public bool IsInitialized { get {
126 return super.IsInitialized&&_HasAllPBJFields;
127 } }
128 protected _PBJ_Internal.CollisionBegin.Builder super;
129 public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
130 public _PBJ_Internal.CollisionBegin.Builder _PBJSuper{ get { return super;} }
131 public Builder() {super = new _PBJ_Internal.CollisionBegin.Builder();}
132 public Builder(_PBJ_Internal.CollisionBegin.Builder other) {
133 super=other;
134 }
135 public Builder Clone() {return new Builder(super.Clone());}
136 public Builder MergeFrom(CollisionBegin prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
137 public Builder Clear() {super.Clear();return this;}
138 public CollisionBegin BuildPartial() {return new CollisionBegin(super.BuildPartial());}
139 public CollisionBegin Build() {if (_HasAllPBJFields) return new CollisionBegin(super.Build());return null;}
140 public pbd::MessageDescriptor DescriptorForType {
141 get { return CollisionBegin.Descriptor; } }
142 public Builder ClearTimestamp() { super.ClearTimestamp();return this;}
143 public const int TimestampFieldTag=2;
144 public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
145 public PBJ.Time Timestamp{ get {
146 if (HasTimestamp) {
147 return PBJ._PBJ.CastTime(super.Timestamp);
148 } else {
149 return PBJ._PBJ.CastTime();
150 }
151 }
152 set {
153 super.Timestamp=(PBJ._PBJ.Construct(value));
154 }
155 }
156 public Builder ClearThisPosition() { super.ClearThisPosition();return this;}
157 public const int ThisPositionFieldTag=3;
158 public int ThisPositionCount { get { return super.ThisPositionCount/3;} }
159 public bool HasThisPosition(int index) { return true; }
160 public PBJ.Vector3d GetThisPosition(int index) {
161 if (HasThisPosition(index)) {
162 return PBJ._PBJ.CastVector3d(super.GetThisPosition(index*3+0),super.GetThisPosition(index*3+1),super.GetThisPosition(index*3+2));
163 } else {
164 return PBJ._PBJ.CastVector3d();
165 }
166 }
167 public Builder AddThisPosition(PBJ.Vector3d value) {
168 double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
169 super.AddThisPosition(_PBJtempArray[0]);
170 super.AddThisPosition(_PBJtempArray[1]);
171 super.AddThisPosition(_PBJtempArray[2]);
172 return this;
173 }
174 public Builder SetThisPosition(int index,PBJ.Vector3d value) {
175 double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
176 super.SetThisPosition(index*3+0,_PBJtempArray[0]);
177 super.SetThisPosition(index*3+1,_PBJtempArray[1]);
178 super.SetThisPosition(index*3+2,_PBJtempArray[2]);
179 return this;
180 }
181 public Builder ClearOtherPosition() { super.ClearOtherPosition();return this;}
182 public const int OtherPositionFieldTag=4;
183 public int OtherPositionCount { get { return super.OtherPositionCount/3;} }
184 public bool HasOtherPosition(int index) { return true; }
185 public PBJ.Vector3d GetOtherPosition(int index) {
186 if (HasOtherPosition(index)) {
187 return PBJ._PBJ.CastVector3d(super.GetOtherPosition(index*3+0),super.GetOtherPosition(index*3+1),super.GetOtherPosition(index*3+2));
188 } else {
189 return PBJ._PBJ.CastVector3d();
190 }
191 }
192 public Builder AddOtherPosition(PBJ.Vector3d value) {
193 double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
194 super.AddOtherPosition(_PBJtempArray[0]);
195 super.AddOtherPosition(_PBJtempArray[1]);
196 super.AddOtherPosition(_PBJtempArray[2]);
197 return this;
198 }
199 public Builder SetOtherPosition(int index,PBJ.Vector3d value) {
200 double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
201 super.SetOtherPosition(index*3+0,_PBJtempArray[0]);
202 super.SetOtherPosition(index*3+1,_PBJtempArray[1]);
203 super.SetOtherPosition(index*3+2,_PBJtempArray[2]);
204 return this;
205 }
206 public Builder ClearThisNormal() { super.ClearThisNormal();return this;}
207 public const int ThisNormalFieldTag=5;
208 public int ThisNormalCount { get { return super.ThisNormalCount/2;} }
209 public bool HasThisNormal(int index) { return true; }
210 public PBJ.Vector3f GetThisNormal(int index) {
211 if (HasThisNormal(index)) {
212 return PBJ._PBJ.CastNormal(super.GetThisNormal(index*2+0),super.GetThisNormal(index*2+1));
213 } else {
214 return PBJ._PBJ.CastNormal();
215 }
216 }
217 public Builder AddThisNormal(PBJ.Vector3f value) {
218 float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
219 super.AddThisNormal(_PBJtempArray[0]);
220 super.AddThisNormal(_PBJtempArray[1]);
221 return this;
222 }
223 public Builder SetThisNormal(int index,PBJ.Vector3f value) {
224 float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
225 super.SetThisNormal(index*2+0,_PBJtempArray[0]);
226 super.SetThisNormal(index*2+1,_PBJtempArray[1]);
227 return this;
228 }
229 public Builder ClearImpulse() { super.ClearImpulse();return this;}
230 public Builder SetImpulse(int index, float value) {
231 super.SetImpulse(index,PBJ._PBJ.Construct(value));
232 return this;
233 }
234 public const int ImpulseFieldTag=6;
235 public int ImpulseCount { get { return super.ImpulseCount;} }
236 public bool HasImpulse(int index) {return PBJ._PBJ.ValidateFloat(super.GetImpulse(index));}
237 public float Impulse(int index) {
238 return (float)PBJ._PBJ.CastFloat(super.GetImpulse(index));
239 }
240 public Builder AddImpulse(float value) {
241 super.AddImpulse(PBJ._PBJ.Construct(value));
242 return this;
243 }
244 public Builder ClearOtherObjectReference() { super.ClearOtherObjectReference();return this;}
245 public const int OtherObjectReferenceFieldTag=7;
246 public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
247 public PBJ.UUID OtherObjectReference{ get {
248 if (HasOtherObjectReference) {
249 return PBJ._PBJ.CastUuid(super.OtherObjectReference);
250 } else {
251 return PBJ._PBJ.CastUuid();
252 }
253 }
254 set {
255 super.OtherObjectReference=(PBJ._PBJ.Construct(value));
256 }
257 }
258 }
259 }
260}
261namespace Sirikata.Physics.Protocol {
262 public class CollisionEnd : PBJ.IMessage {
263 protected _PBJ_Internal.CollisionEnd super;
264 public _PBJ_Internal.CollisionEnd _PBJSuper{ get { return super;} }
265 public CollisionEnd() {
266 super=new _PBJ_Internal.CollisionEnd();
267 }
268 public CollisionEnd(_PBJ_Internal.CollisionEnd reference) {
269 super=reference;
270 }
271 public static CollisionEnd defaultInstance= new CollisionEnd (_PBJ_Internal.CollisionEnd.DefaultInstance);
272 public static CollisionEnd DefaultInstance{
273 get {return defaultInstance;}
274 }
275 public static pbd.MessageDescriptor Descriptor {
276 get { return _PBJ_Internal.CollisionEnd.Descriptor; } }
277 public static class Types {
278 }
279 public static bool WithinReservedFieldTagRange(int field_tag) {
280 return false;
281 }
282 public static bool WithinExtensionFieldTagRange(int field_tag) {
283 return false;
284 }
285 public const int TimestampFieldTag=2;
286 public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
287 public PBJ.Time Timestamp{ get {
288 if (HasTimestamp) {
289 return PBJ._PBJ.CastTime(super.Timestamp);
290 } else {
291 return PBJ._PBJ.CastTime();
292 }
293 }
294 }
295 public const int OtherObjectReferenceFieldTag=6;
296 public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
297 public PBJ.UUID OtherObjectReference{ get {
298 if (HasOtherObjectReference) {
299 return PBJ._PBJ.CastUuid(super.OtherObjectReference);
300 } else {
301 return PBJ._PBJ.CastUuid();
302 }
303 }
304 }
305 public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
306 public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
307 public static Builder CreateBuilder() { return new Builder(); }
308 public static Builder CreateBuilder(CollisionEnd prototype) {
309 return (Builder)new Builder().MergeFrom(prototype);
310 }
311 public static CollisionEnd ParseFrom(pb::ByteString data) {
312 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
313 }
314 public static CollisionEnd ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
315 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
316 }
317 public static CollisionEnd ParseFrom(byte[] data) {
318 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
319 }
320 public static CollisionEnd ParseFrom(byte[] data, pb::ExtensionRegistry er) {
321 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
322 }
323 public static CollisionEnd ParseFrom(global::System.IO.Stream data) {
324 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
325 }
326 public static CollisionEnd ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
327 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
328 }
329 public static CollisionEnd ParseFrom(pb::CodedInputStream data) {
330 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data));
331 }
332 public static CollisionEnd ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
333 return new CollisionEnd(_PBJ_Internal.CollisionEnd.ParseFrom(data,er));
334 }
335 protected override bool _HasAllPBJFields{ get {
336 return true
337 ;
338 } }
339 public bool IsInitialized { get {
340 return super.IsInitialized&&_HasAllPBJFields;
341 } }
342 public class Builder : global::PBJ.IMessage.IBuilder{
343 protected override bool _HasAllPBJFields{ get {
344 return true
345 ;
346 } }
347 public bool IsInitialized { get {
348 return super.IsInitialized&&_HasAllPBJFields;
349 } }
350 protected _PBJ_Internal.CollisionEnd.Builder super;
351 public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
352 public _PBJ_Internal.CollisionEnd.Builder _PBJSuper{ get { return super;} }
353 public Builder() {super = new _PBJ_Internal.CollisionEnd.Builder();}
354 public Builder(_PBJ_Internal.CollisionEnd.Builder other) {
355 super=other;
356 }
357 public Builder Clone() {return new Builder(super.Clone());}
358 public Builder MergeFrom(CollisionEnd prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
359 public Builder Clear() {super.Clear();return this;}
360 public CollisionEnd BuildPartial() {return new CollisionEnd(super.BuildPartial());}
361 public CollisionEnd Build() {if (_HasAllPBJFields) return new CollisionEnd(super.Build());return null;}
362 public pbd::MessageDescriptor DescriptorForType {
363 get { return CollisionEnd.Descriptor; } }
364 public Builder ClearTimestamp() { super.ClearTimestamp();return this;}
365 public const int TimestampFieldTag=2;
366 public bool HasTimestamp{ get {return super.HasTimestamp&&PBJ._PBJ.ValidateTime(super.Timestamp);} }
367 public PBJ.Time Timestamp{ get {
368 if (HasTimestamp) {
369 return PBJ._PBJ.CastTime(super.Timestamp);
370 } else {
371 return PBJ._PBJ.CastTime();
372 }
373 }
374 set {
375 super.Timestamp=(PBJ._PBJ.Construct(value));
376 }
377 }
378 public Builder ClearOtherObjectReference() { super.ClearOtherObjectReference();return this;}
379 public const int OtherObjectReferenceFieldTag=6;
380 public bool HasOtherObjectReference{ get {return super.HasOtherObjectReference&&PBJ._PBJ.ValidateUuid(super.OtherObjectReference);} }
381 public PBJ.UUID OtherObjectReference{ get {
382 if (HasOtherObjectReference) {
383 return PBJ._PBJ.CastUuid(super.OtherObjectReference);
384 } else {
385 return PBJ._PBJ.CastUuid();
386 }
387 }
388 set {
389 super.OtherObjectReference=(PBJ._PBJ.Construct(value));
390 }
391 }
392 }
393 }
394}