diff options
author | Melanie | 2010-10-06 00:27:10 +0100 |
---|---|---|
committer | Melanie | 2010-10-06 00:27:10 +0100 |
commit | d8149373c15d9ec39c0f836a337e58b633f45829 (patch) | |
tree | 3678027b5eb7f1cdfb29b1c0c80bd0c3d7a62ae6 /OpenSim/Client/Sirikata/Protocol/Physics.cs | |
parent | Avoid throwing errors when adding existing meshes to the render scene (diff) | |
parent | Remove sirikata project (diff) | |
download | opensim-SC-d8149373c15d9ec39c0f836a337e58b633f45829.zip opensim-SC-d8149373c15d9ec39c0f836a337e58b633f45829.tar.gz opensim-SC-d8149373c15d9ec39c0f836a337e58b633f45829.tar.bz2 opensim-SC-d8149373c15d9ec39c0f836a337e58b633f45829.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Client/Sirikata/Protocol/Physics.cs')
-rw-r--r-- | OpenSim/Client/Sirikata/Protocol/Physics.cs | 840 |
1 files changed, 0 insertions, 840 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Physics.cs b/OpenSim/Client/Sirikata/Protocol/Physics.cs deleted file mode 100644 index a81a6fd..0000000 --- a/OpenSim/Client/Sirikata/Protocol/Physics.cs +++ /dev/null | |||
@@ -1,840 +0,0 @@ | |||
1 | // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
2 | |||
3 | using pb = global::Google.ProtocolBuffers; | ||
4 | using pbc = global::Google.ProtocolBuffers.Collections; | ||
5 | using pbd = global::Google.ProtocolBuffers.Descriptors; | ||
6 | using scg = global::System.Collections.Generic; | ||
7 | namespace Sirikata.Physics.Protocol._PBJ_Internal { | ||
8 | |||
9 | public static partial class Physics { | ||
10 | |||
11 | #region Extension registration | ||
12 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { | ||
13 | } | ||
14 | #endregion | ||
15 | #region Static variables | ||
16 | internal static pbd::MessageDescriptor internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor; | ||
17 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin, global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.Builder> internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable; | ||
18 | internal static pbd::MessageDescriptor internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor; | ||
19 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd, global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.Builder> internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable; | ||
20 | #endregion | ||
21 | #region Descriptor | ||
22 | public static pbd::FileDescriptor Descriptor { | ||
23 | get { return descriptor; } | ||
24 | } | ||
25 | private static pbd::FileDescriptor descriptor; | ||
26 | |||
27 | static Physics() { | ||
28 | byte[] descriptorData = global::System.Convert.FromBase64String( | ||
29 | "Cg1QaHlzaWNzLnByb3RvEidTaXJpa2F0YS5QaHlzaWNzLlByb3RvY29sLl9Q" + | ||
30 | "QkpfSW50ZXJuYWwiqAEKDkNvbGxpc2lvbkJlZ2luEhEKCXRpbWVzdGFtcBgC" + | ||
31 | "IAEoBhIZCg10aGlzX3Bvc2l0aW9uGAMgAygBQgIQARIaCg5vdGhlcl9wb3Np" + | ||
32 | "dGlvbhgEIAMoAUICEAESFwoLdGhpc19ub3JtYWwYBSADKAJCAhABEhMKB2lt" + | ||
33 | "cHVsc2UYBiADKAJCAhABEh4KFm90aGVyX29iamVjdF9yZWZlcmVuY2UYByAB" + | ||
34 | "KAwiQQoMQ29sbGlzaW9uRW5kEhEKCXRpbWVzdGFtcBgCIAEoBhIeChZvdGhl" + | ||
35 | "cl9vYmplY3RfcmVmZXJlbmNlGAYgASgM"); | ||
36 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { | ||
37 | descriptor = root; | ||
38 | internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor = Descriptor.MessageTypes[0]; | ||
39 | internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable = | ||
40 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin, global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.Builder>(internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor, | ||
41 | new string[] { "Timestamp", "ThisPosition", "OtherPosition", "ThisNormal", "Impulse", "OtherObjectReference", }); | ||
42 | internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor = Descriptor.MessageTypes[1]; | ||
43 | internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable = | ||
44 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd, global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.Builder>(internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor, | ||
45 | new string[] { "Timestamp", "OtherObjectReference", }); | ||
46 | return null; | ||
47 | }; | ||
48 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, | ||
49 | new pbd::FileDescriptor[] { | ||
50 | }, assigner); | ||
51 | } | ||
52 | #endregion | ||
53 | |||
54 | } | ||
55 | #region Messages | ||
56 | public sealed partial class CollisionBegin : pb::GeneratedMessage<CollisionBegin, CollisionBegin.Builder> { | ||
57 | private static readonly CollisionBegin defaultInstance = new Builder().BuildPartial(); | ||
58 | public static CollisionBegin DefaultInstance { | ||
59 | get { return defaultInstance; } | ||
60 | } | ||
61 | |||
62 | public override CollisionBegin DefaultInstanceForType { | ||
63 | get { return defaultInstance; } | ||
64 | } | ||
65 | |||
66 | protected override CollisionBegin ThisMessage { | ||
67 | get { return this; } | ||
68 | } | ||
69 | |||
70 | public static pbd::MessageDescriptor Descriptor { | ||
71 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__Descriptor; } | ||
72 | } | ||
73 | |||
74 | protected override pb::FieldAccess.FieldAccessorTable<CollisionBegin, CollisionBegin.Builder> InternalFieldAccessors { | ||
75 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionBegin__FieldAccessorTable; } | ||
76 | } | ||
77 | |||
78 | public const int TimestampFieldNumber = 2; | ||
79 | private bool hasTimestamp; | ||
80 | private ulong timestamp_ = 0; | ||
81 | public bool HasTimestamp { | ||
82 | get { return hasTimestamp; } | ||
83 | } | ||
84 | [global::System.CLSCompliant(false)] | ||
85 | public ulong Timestamp { | ||
86 | get { return timestamp_; } | ||
87 | } | ||
88 | |||
89 | public const int ThisPositionFieldNumber = 3; | ||
90 | private int thisPositionMemoizedSerializedSize; | ||
91 | private pbc::PopsicleList<double> thisPosition_ = new pbc::PopsicleList<double>(); | ||
92 | public scg::IList<double> ThisPositionList { | ||
93 | get { return pbc::Lists.AsReadOnly(thisPosition_); } | ||
94 | } | ||
95 | public int ThisPositionCount { | ||
96 | get { return thisPosition_.Count; } | ||
97 | } | ||
98 | public double GetThisPosition(int index) { | ||
99 | return thisPosition_[index]; | ||
100 | } | ||
101 | |||
102 | public const int OtherPositionFieldNumber = 4; | ||
103 | private int otherPositionMemoizedSerializedSize; | ||
104 | private pbc::PopsicleList<double> otherPosition_ = new pbc::PopsicleList<double>(); | ||
105 | public scg::IList<double> OtherPositionList { | ||
106 | get { return pbc::Lists.AsReadOnly(otherPosition_); } | ||
107 | } | ||
108 | public int OtherPositionCount { | ||
109 | get { return otherPosition_.Count; } | ||
110 | } | ||
111 | public double GetOtherPosition(int index) { | ||
112 | return otherPosition_[index]; | ||
113 | } | ||
114 | |||
115 | public const int ThisNormalFieldNumber = 5; | ||
116 | private int thisNormalMemoizedSerializedSize; | ||
117 | private pbc::PopsicleList<float> thisNormal_ = new pbc::PopsicleList<float>(); | ||
118 | public scg::IList<float> ThisNormalList { | ||
119 | get { return pbc::Lists.AsReadOnly(thisNormal_); } | ||
120 | } | ||
121 | public int ThisNormalCount { | ||
122 | get { return thisNormal_.Count; } | ||
123 | } | ||
124 | public float GetThisNormal(int index) { | ||
125 | return thisNormal_[index]; | ||
126 | } | ||
127 | |||
128 | public const int ImpulseFieldNumber = 6; | ||
129 | private int impulseMemoizedSerializedSize; | ||
130 | private pbc::PopsicleList<float> impulse_ = new pbc::PopsicleList<float>(); | ||
131 | public scg::IList<float> ImpulseList { | ||
132 | get { return pbc::Lists.AsReadOnly(impulse_); } | ||
133 | } | ||
134 | public int ImpulseCount { | ||
135 | get { return impulse_.Count; } | ||
136 | } | ||
137 | public float GetImpulse(int index) { | ||
138 | return impulse_[index]; | ||
139 | } | ||
140 | |||
141 | public const int OtherObjectReferenceFieldNumber = 7; | ||
142 | private bool hasOtherObjectReference; | ||
143 | private pb::ByteString otherObjectReference_ = pb::ByteString.Empty; | ||
144 | public bool HasOtherObjectReference { | ||
145 | get { return hasOtherObjectReference; } | ||
146 | } | ||
147 | public pb::ByteString OtherObjectReference { | ||
148 | get { return otherObjectReference_; } | ||
149 | } | ||
150 | |||
151 | public override bool IsInitialized { | ||
152 | get { | ||
153 | return true; | ||
154 | } | ||
155 | } | ||
156 | |||
157 | public override void WriteTo(pb::CodedOutputStream output) { | ||
158 | if (HasTimestamp) { | ||
159 | output.WriteFixed64(2, Timestamp); | ||
160 | } | ||
161 | if (thisPosition_.Count > 0) { | ||
162 | output.WriteRawVarint32(26); | ||
163 | output.WriteRawVarint32((uint) thisPositionMemoizedSerializedSize); | ||
164 | foreach (double element in thisPosition_) { | ||
165 | output.WriteDoubleNoTag(element); | ||
166 | } | ||
167 | } | ||
168 | if (otherPosition_.Count > 0) { | ||
169 | output.WriteRawVarint32(34); | ||
170 | output.WriteRawVarint32((uint) otherPositionMemoizedSerializedSize); | ||
171 | foreach (double element in otherPosition_) { | ||
172 | output.WriteDoubleNoTag(element); | ||
173 | } | ||
174 | } | ||
175 | if (thisNormal_.Count > 0) { | ||
176 | output.WriteRawVarint32(42); | ||
177 | output.WriteRawVarint32((uint) thisNormalMemoizedSerializedSize); | ||
178 | foreach (float element in thisNormal_) { | ||
179 | output.WriteFloatNoTag(element); | ||
180 | } | ||
181 | } | ||
182 | if (impulse_.Count > 0) { | ||
183 | output.WriteRawVarint32(50); | ||
184 | output.WriteRawVarint32((uint) impulseMemoizedSerializedSize); | ||
185 | foreach (float element in impulse_) { | ||
186 | output.WriteFloatNoTag(element); | ||
187 | } | ||
188 | } | ||
189 | if (HasOtherObjectReference) { | ||
190 | output.WriteBytes(7, OtherObjectReference); | ||
191 | } | ||
192 | UnknownFields.WriteTo(output); | ||
193 | } | ||
194 | |||
195 | private int memoizedSerializedSize = -1; | ||
196 | public override int SerializedSize { | ||
197 | get { | ||
198 | int size = memoizedSerializedSize; | ||
199 | if (size != -1) return size; | ||
200 | |||
201 | size = 0; | ||
202 | if (HasTimestamp) { | ||
203 | size += pb::CodedOutputStream.ComputeFixed64Size(2, Timestamp); | ||
204 | } | ||
205 | { | ||
206 | int dataSize = 0; | ||
207 | dataSize = 8 * thisPosition_.Count; | ||
208 | size += dataSize; | ||
209 | if (thisPosition_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
210 | thisPositionMemoizedSerializedSize = dataSize; | ||
211 | } | ||
212 | { | ||
213 | int dataSize = 0; | ||
214 | dataSize = 8 * otherPosition_.Count; | ||
215 | size += dataSize; | ||
216 | if (otherPosition_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
217 | otherPositionMemoizedSerializedSize = dataSize; | ||
218 | } | ||
219 | { | ||
220 | int dataSize = 0; | ||
221 | dataSize = 4 * thisNormal_.Count; | ||
222 | size += dataSize; | ||
223 | if (thisNormal_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
224 | thisNormalMemoizedSerializedSize = dataSize; | ||
225 | } | ||
226 | { | ||
227 | int dataSize = 0; | ||
228 | dataSize = 4 * impulse_.Count; | ||
229 | size += dataSize; | ||
230 | if (impulse_.Count!=0) size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); | ||
231 | impulseMemoizedSerializedSize = dataSize; | ||
232 | } | ||
233 | if (HasOtherObjectReference) { | ||
234 | size += pb::CodedOutputStream.ComputeBytesSize(7, OtherObjectReference); | ||
235 | } | ||
236 | size += UnknownFields.SerializedSize; | ||
237 | memoizedSerializedSize = size; | ||
238 | return size; | ||
239 | } | ||
240 | } | ||
241 | |||
242 | public static CollisionBegin ParseFrom(pb::ByteString data) { | ||
243 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
244 | } | ||
245 | public static CollisionBegin ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
246 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
247 | } | ||
248 | public static CollisionBegin ParseFrom(byte[] data) { | ||
249 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
250 | } | ||
251 | public static CollisionBegin ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
252 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
253 | } | ||
254 | public static CollisionBegin ParseFrom(global::System.IO.Stream input) { | ||
255 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
256 | } | ||
257 | public static CollisionBegin ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
258 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
259 | } | ||
260 | public static CollisionBegin ParseDelimitedFrom(global::System.IO.Stream input) { | ||
261 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
262 | } | ||
263 | public static CollisionBegin ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
264 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
265 | } | ||
266 | public static CollisionBegin ParseFrom(pb::CodedInputStream input) { | ||
267 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
268 | } | ||
269 | public static CollisionBegin ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
270 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
271 | } | ||
272 | public static Builder CreateBuilder() { return new Builder(); } | ||
273 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
274 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
275 | public static Builder CreateBuilder(CollisionBegin prototype) { | ||
276 | return (Builder) new Builder().MergeFrom(prototype); | ||
277 | } | ||
278 | |||
279 | public sealed partial class Builder : pb::GeneratedBuilder<CollisionBegin, Builder> { | ||
280 | protected override Builder ThisBuilder { | ||
281 | get { return this; } | ||
282 | } | ||
283 | public Builder() {} | ||
284 | |||
285 | CollisionBegin result = new CollisionBegin(); | ||
286 | |||
287 | protected override CollisionBegin MessageBeingBuilt { | ||
288 | get { return result; } | ||
289 | } | ||
290 | |||
291 | public override Builder Clear() { | ||
292 | result = new CollisionBegin(); | ||
293 | return this; | ||
294 | } | ||
295 | |||
296 | public override Builder Clone() { | ||
297 | return new Builder().MergeFrom(result); | ||
298 | } | ||
299 | |||
300 | public override pbd::MessageDescriptor DescriptorForType { | ||
301 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.Descriptor; } | ||
302 | } | ||
303 | |||
304 | public override CollisionBegin DefaultInstanceForType { | ||
305 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.DefaultInstance; } | ||
306 | } | ||
307 | |||
308 | public override CollisionBegin BuildPartial() { | ||
309 | if (result == null) { | ||
310 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
311 | } | ||
312 | result.thisPosition_.MakeReadOnly(); | ||
313 | result.otherPosition_.MakeReadOnly(); | ||
314 | result.thisNormal_.MakeReadOnly(); | ||
315 | result.impulse_.MakeReadOnly(); | ||
316 | CollisionBegin returnMe = result; | ||
317 | result = null; | ||
318 | return returnMe; | ||
319 | } | ||
320 | |||
321 | public override Builder MergeFrom(pb::IMessage other) { | ||
322 | if (other is CollisionBegin) { | ||
323 | return MergeFrom((CollisionBegin) other); | ||
324 | } else { | ||
325 | base.MergeFrom(other); | ||
326 | return this; | ||
327 | } | ||
328 | } | ||
329 | |||
330 | public override Builder MergeFrom(CollisionBegin other) { | ||
331 | if (other == global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionBegin.DefaultInstance) return this; | ||
332 | if (other.HasTimestamp) { | ||
333 | Timestamp = other.Timestamp; | ||
334 | } | ||
335 | if (other.thisPosition_.Count != 0) { | ||
336 | base.AddRange(other.thisPosition_, result.thisPosition_); | ||
337 | } | ||
338 | if (other.otherPosition_.Count != 0) { | ||
339 | base.AddRange(other.otherPosition_, result.otherPosition_); | ||
340 | } | ||
341 | if (other.thisNormal_.Count != 0) { | ||
342 | base.AddRange(other.thisNormal_, result.thisNormal_); | ||
343 | } | ||
344 | if (other.impulse_.Count != 0) { | ||
345 | base.AddRange(other.impulse_, result.impulse_); | ||
346 | } | ||
347 | if (other.HasOtherObjectReference) { | ||
348 | OtherObjectReference = other.OtherObjectReference; | ||
349 | } | ||
350 | this.MergeUnknownFields(other.UnknownFields); | ||
351 | return this; | ||
352 | } | ||
353 | |||
354 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
355 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
356 | } | ||
357 | |||
358 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
359 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
360 | while (true) { | ||
361 | uint tag = input.ReadTag(); | ||
362 | switch (tag) { | ||
363 | case 0: { | ||
364 | if (unknownFields != null) { | ||
365 | this.UnknownFields = unknownFields.Build(); | ||
366 | } | ||
367 | return this; | ||
368 | } | ||
369 | default: { | ||
370 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
371 | if (unknownFields != null) { | ||
372 | this.UnknownFields = unknownFields.Build(); | ||
373 | } | ||
374 | return this; | ||
375 | } | ||
376 | if (unknownFields == null) { | ||
377 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
378 | } | ||
379 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
380 | break; | ||
381 | } | ||
382 | case 17: { | ||
383 | Timestamp = input.ReadFixed64(); | ||
384 | break; | ||
385 | } | ||
386 | case 26: { | ||
387 | int length = input.ReadInt32(); | ||
388 | int limit = input.PushLimit(length); | ||
389 | while (!input.ReachedLimit) { | ||
390 | AddThisPosition(input.ReadDouble()); | ||
391 | } | ||
392 | input.PopLimit(limit); | ||
393 | break; | ||
394 | } | ||
395 | case 34: { | ||
396 | int length = input.ReadInt32(); | ||
397 | int limit = input.PushLimit(length); | ||
398 | while (!input.ReachedLimit) { | ||
399 | AddOtherPosition(input.ReadDouble()); | ||
400 | } | ||
401 | input.PopLimit(limit); | ||
402 | break; | ||
403 | } | ||
404 | case 42: { | ||
405 | int length = input.ReadInt32(); | ||
406 | int limit = input.PushLimit(length); | ||
407 | while (!input.ReachedLimit) { | ||
408 | AddThisNormal(input.ReadFloat()); | ||
409 | } | ||
410 | input.PopLimit(limit); | ||
411 | break; | ||
412 | } | ||
413 | case 50: { | ||
414 | int length = input.ReadInt32(); | ||
415 | int limit = input.PushLimit(length); | ||
416 | while (!input.ReachedLimit) { | ||
417 | AddImpulse(input.ReadFloat()); | ||
418 | } | ||
419 | input.PopLimit(limit); | ||
420 | break; | ||
421 | } | ||
422 | case 58: { | ||
423 | OtherObjectReference = input.ReadBytes(); | ||
424 | break; | ||
425 | } | ||
426 | } | ||
427 | } | ||
428 | } | ||
429 | |||
430 | |||
431 | public bool HasTimestamp { | ||
432 | get { return result.HasTimestamp; } | ||
433 | } | ||
434 | [global::System.CLSCompliant(false)] | ||
435 | public ulong Timestamp { | ||
436 | get { return result.Timestamp; } | ||
437 | set { SetTimestamp(value); } | ||
438 | } | ||
439 | [global::System.CLSCompliant(false)] | ||
440 | public Builder SetTimestamp(ulong value) { | ||
441 | result.hasTimestamp = true; | ||
442 | result.timestamp_ = value; | ||
443 | return this; | ||
444 | } | ||
445 | public Builder ClearTimestamp() { | ||
446 | result.hasTimestamp = false; | ||
447 | result.timestamp_ = 0; | ||
448 | return this; | ||
449 | } | ||
450 | |||
451 | public pbc::IPopsicleList<double> ThisPositionList { | ||
452 | get { return result.thisPosition_; } | ||
453 | } | ||
454 | public int ThisPositionCount { | ||
455 | get { return result.ThisPositionCount; } | ||
456 | } | ||
457 | public double GetThisPosition(int index) { | ||
458 | return result.GetThisPosition(index); | ||
459 | } | ||
460 | public Builder SetThisPosition(int index, double value) { | ||
461 | result.thisPosition_[index] = value; | ||
462 | return this; | ||
463 | } | ||
464 | public Builder AddThisPosition(double value) { | ||
465 | result.thisPosition_.Add(value); | ||
466 | return this; | ||
467 | } | ||
468 | public Builder AddRangeThisPosition(scg::IEnumerable<double> values) { | ||
469 | base.AddRange(values, result.thisPosition_); | ||
470 | return this; | ||
471 | } | ||
472 | public Builder ClearThisPosition() { | ||
473 | result.thisPosition_.Clear(); | ||
474 | return this; | ||
475 | } | ||
476 | |||
477 | public pbc::IPopsicleList<double> OtherPositionList { | ||
478 | get { return result.otherPosition_; } | ||
479 | } | ||
480 | public int OtherPositionCount { | ||
481 | get { return result.OtherPositionCount; } | ||
482 | } | ||
483 | public double GetOtherPosition(int index) { | ||
484 | return result.GetOtherPosition(index); | ||
485 | } | ||
486 | public Builder SetOtherPosition(int index, double value) { | ||
487 | result.otherPosition_[index] = value; | ||
488 | return this; | ||
489 | } | ||
490 | public Builder AddOtherPosition(double value) { | ||
491 | result.otherPosition_.Add(value); | ||
492 | return this; | ||
493 | } | ||
494 | public Builder AddRangeOtherPosition(scg::IEnumerable<double> values) { | ||
495 | base.AddRange(values, result.otherPosition_); | ||
496 | return this; | ||
497 | } | ||
498 | public Builder ClearOtherPosition() { | ||
499 | result.otherPosition_.Clear(); | ||
500 | return this; | ||
501 | } | ||
502 | |||
503 | public pbc::IPopsicleList<float> ThisNormalList { | ||
504 | get { return result.thisNormal_; } | ||
505 | } | ||
506 | public int ThisNormalCount { | ||
507 | get { return result.ThisNormalCount; } | ||
508 | } | ||
509 | public float GetThisNormal(int index) { | ||
510 | return result.GetThisNormal(index); | ||
511 | } | ||
512 | public Builder SetThisNormal(int index, float value) { | ||
513 | result.thisNormal_[index] = value; | ||
514 | return this; | ||
515 | } | ||
516 | public Builder AddThisNormal(float value) { | ||
517 | result.thisNormal_.Add(value); | ||
518 | return this; | ||
519 | } | ||
520 | public Builder AddRangeThisNormal(scg::IEnumerable<float> values) { | ||
521 | base.AddRange(values, result.thisNormal_); | ||
522 | return this; | ||
523 | } | ||
524 | public Builder ClearThisNormal() { | ||
525 | result.thisNormal_.Clear(); | ||
526 | return this; | ||
527 | } | ||
528 | |||
529 | public pbc::IPopsicleList<float> ImpulseList { | ||
530 | get { return result.impulse_; } | ||
531 | } | ||
532 | public int ImpulseCount { | ||
533 | get { return result.ImpulseCount; } | ||
534 | } | ||
535 | public float GetImpulse(int index) { | ||
536 | return result.GetImpulse(index); | ||
537 | } | ||
538 | public Builder SetImpulse(int index, float value) { | ||
539 | result.impulse_[index] = value; | ||
540 | return this; | ||
541 | } | ||
542 | public Builder AddImpulse(float value) { | ||
543 | result.impulse_.Add(value); | ||
544 | return this; | ||
545 | } | ||
546 | public Builder AddRangeImpulse(scg::IEnumerable<float> values) { | ||
547 | base.AddRange(values, result.impulse_); | ||
548 | return this; | ||
549 | } | ||
550 | public Builder ClearImpulse() { | ||
551 | result.impulse_.Clear(); | ||
552 | return this; | ||
553 | } | ||
554 | |||
555 | public bool HasOtherObjectReference { | ||
556 | get { return result.HasOtherObjectReference; } | ||
557 | } | ||
558 | public pb::ByteString OtherObjectReference { | ||
559 | get { return result.OtherObjectReference; } | ||
560 | set { SetOtherObjectReference(value); } | ||
561 | } | ||
562 | public Builder SetOtherObjectReference(pb::ByteString value) { | ||
563 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
564 | result.hasOtherObjectReference = true; | ||
565 | result.otherObjectReference_ = value; | ||
566 | return this; | ||
567 | } | ||
568 | public Builder ClearOtherObjectReference() { | ||
569 | result.hasOtherObjectReference = false; | ||
570 | result.otherObjectReference_ = pb::ByteString.Empty; | ||
571 | return this; | ||
572 | } | ||
573 | } | ||
574 | static CollisionBegin() { | ||
575 | object.ReferenceEquals(global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.Descriptor, null); | ||
576 | } | ||
577 | } | ||
578 | |||
579 | public sealed partial class CollisionEnd : pb::GeneratedMessage<CollisionEnd, CollisionEnd.Builder> { | ||
580 | private static readonly CollisionEnd defaultInstance = new Builder().BuildPartial(); | ||
581 | public static CollisionEnd DefaultInstance { | ||
582 | get { return defaultInstance; } | ||
583 | } | ||
584 | |||
585 | public override CollisionEnd DefaultInstanceForType { | ||
586 | get { return defaultInstance; } | ||
587 | } | ||
588 | |||
589 | protected override CollisionEnd ThisMessage { | ||
590 | get { return this; } | ||
591 | } | ||
592 | |||
593 | public static pbd::MessageDescriptor Descriptor { | ||
594 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__Descriptor; } | ||
595 | } | ||
596 | |||
597 | protected override pb::FieldAccess.FieldAccessorTable<CollisionEnd, CollisionEnd.Builder> InternalFieldAccessors { | ||
598 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.internal__static_Sirikata_Physics_Protocol__PBJ_Internal_CollisionEnd__FieldAccessorTable; } | ||
599 | } | ||
600 | |||
601 | public const int TimestampFieldNumber = 2; | ||
602 | private bool hasTimestamp; | ||
603 | private ulong timestamp_ = 0; | ||
604 | public bool HasTimestamp { | ||
605 | get { return hasTimestamp; } | ||
606 | } | ||
607 | [global::System.CLSCompliant(false)] | ||
608 | public ulong Timestamp { | ||
609 | get { return timestamp_; } | ||
610 | } | ||
611 | |||
612 | public const int OtherObjectReferenceFieldNumber = 6; | ||
613 | private bool hasOtherObjectReference; | ||
614 | private pb::ByteString otherObjectReference_ = pb::ByteString.Empty; | ||
615 | public bool HasOtherObjectReference { | ||
616 | get { return hasOtherObjectReference; } | ||
617 | } | ||
618 | public pb::ByteString OtherObjectReference { | ||
619 | get { return otherObjectReference_; } | ||
620 | } | ||
621 | |||
622 | public override bool IsInitialized { | ||
623 | get { | ||
624 | return true; | ||
625 | } | ||
626 | } | ||
627 | |||
628 | public override void WriteTo(pb::CodedOutputStream output) { | ||
629 | if (HasTimestamp) { | ||
630 | output.WriteFixed64(2, Timestamp); | ||
631 | } | ||
632 | if (HasOtherObjectReference) { | ||
633 | output.WriteBytes(6, OtherObjectReference); | ||
634 | } | ||
635 | UnknownFields.WriteTo(output); | ||
636 | } | ||
637 | |||
638 | private int memoizedSerializedSize = -1; | ||
639 | public override int SerializedSize { | ||
640 | get { | ||
641 | int size = memoizedSerializedSize; | ||
642 | if (size != -1) return size; | ||
643 | |||
644 | size = 0; | ||
645 | if (HasTimestamp) { | ||
646 | size += pb::CodedOutputStream.ComputeFixed64Size(2, Timestamp); | ||
647 | } | ||
648 | if (HasOtherObjectReference) { | ||
649 | size += pb::CodedOutputStream.ComputeBytesSize(6, OtherObjectReference); | ||
650 | } | ||
651 | size += UnknownFields.SerializedSize; | ||
652 | memoizedSerializedSize = size; | ||
653 | return size; | ||
654 | } | ||
655 | } | ||
656 | |||
657 | public static CollisionEnd ParseFrom(pb::ByteString data) { | ||
658 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
659 | } | ||
660 | public static CollisionEnd ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
661 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
662 | } | ||
663 | public static CollisionEnd ParseFrom(byte[] data) { | ||
664 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
665 | } | ||
666 | public static CollisionEnd ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
667 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
668 | } | ||
669 | public static CollisionEnd ParseFrom(global::System.IO.Stream input) { | ||
670 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
671 | } | ||
672 | public static CollisionEnd ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
673 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
674 | } | ||
675 | public static CollisionEnd ParseDelimitedFrom(global::System.IO.Stream input) { | ||
676 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
677 | } | ||
678 | public static CollisionEnd ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
679 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
680 | } | ||
681 | public static CollisionEnd ParseFrom(pb::CodedInputStream input) { | ||
682 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
683 | } | ||
684 | public static CollisionEnd ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
685 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
686 | } | ||
687 | public static Builder CreateBuilder() { return new Builder(); } | ||
688 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
689 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
690 | public static Builder CreateBuilder(CollisionEnd prototype) { | ||
691 | return (Builder) new Builder().MergeFrom(prototype); | ||
692 | } | ||
693 | |||
694 | public sealed partial class Builder : pb::GeneratedBuilder<CollisionEnd, Builder> { | ||
695 | protected override Builder ThisBuilder { | ||
696 | get { return this; } | ||
697 | } | ||
698 | public Builder() {} | ||
699 | |||
700 | CollisionEnd result = new CollisionEnd(); | ||
701 | |||
702 | protected override CollisionEnd MessageBeingBuilt { | ||
703 | get { return result; } | ||
704 | } | ||
705 | |||
706 | public override Builder Clear() { | ||
707 | result = new CollisionEnd(); | ||
708 | return this; | ||
709 | } | ||
710 | |||
711 | public override Builder Clone() { | ||
712 | return new Builder().MergeFrom(result); | ||
713 | } | ||
714 | |||
715 | public override pbd::MessageDescriptor DescriptorForType { | ||
716 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.Descriptor; } | ||
717 | } | ||
718 | |||
719 | public override CollisionEnd DefaultInstanceForType { | ||
720 | get { return global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.DefaultInstance; } | ||
721 | } | ||
722 | |||
723 | public override CollisionEnd BuildPartial() { | ||
724 | if (result == null) { | ||
725 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
726 | } | ||
727 | CollisionEnd returnMe = result; | ||
728 | result = null; | ||
729 | return returnMe; | ||
730 | } | ||
731 | |||
732 | public override Builder MergeFrom(pb::IMessage other) { | ||
733 | if (other is CollisionEnd) { | ||
734 | return MergeFrom((CollisionEnd) other); | ||
735 | } else { | ||
736 | base.MergeFrom(other); | ||
737 | return this; | ||
738 | } | ||
739 | } | ||
740 | |||
741 | public override Builder MergeFrom(CollisionEnd other) { | ||
742 | if (other == global::Sirikata.Physics.Protocol._PBJ_Internal.CollisionEnd.DefaultInstance) return this; | ||
743 | if (other.HasTimestamp) { | ||
744 | Timestamp = other.Timestamp; | ||
745 | } | ||
746 | if (other.HasOtherObjectReference) { | ||
747 | OtherObjectReference = other.OtherObjectReference; | ||
748 | } | ||
749 | this.MergeUnknownFields(other.UnknownFields); | ||
750 | return this; | ||
751 | } | ||
752 | |||
753 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
754 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
755 | } | ||
756 | |||
757 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
758 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
759 | while (true) { | ||
760 | uint tag = input.ReadTag(); | ||
761 | switch (tag) { | ||
762 | case 0: { | ||
763 | if (unknownFields != null) { | ||
764 | this.UnknownFields = unknownFields.Build(); | ||
765 | } | ||
766 | return this; | ||
767 | } | ||
768 | default: { | ||
769 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
770 | if (unknownFields != null) { | ||
771 | this.UnknownFields = unknownFields.Build(); | ||
772 | } | ||
773 | return this; | ||
774 | } | ||
775 | if (unknownFields == null) { | ||
776 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
777 | } | ||
778 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
779 | break; | ||
780 | } | ||
781 | case 17: { | ||
782 | Timestamp = input.ReadFixed64(); | ||
783 | break; | ||
784 | } | ||
785 | case 50: { | ||
786 | OtherObjectReference = input.ReadBytes(); | ||
787 | break; | ||
788 | } | ||
789 | } | ||
790 | } | ||
791 | } | ||
792 | |||
793 | |||
794 | public bool HasTimestamp { | ||
795 | get { return result.HasTimestamp; } | ||
796 | } | ||
797 | [global::System.CLSCompliant(false)] | ||
798 | public ulong Timestamp { | ||
799 | get { return result.Timestamp; } | ||
800 | set { SetTimestamp(value); } | ||
801 | } | ||
802 | [global::System.CLSCompliant(false)] | ||
803 | public Builder SetTimestamp(ulong value) { | ||
804 | result.hasTimestamp = true; | ||
805 | result.timestamp_ = value; | ||
806 | return this; | ||
807 | } | ||
808 | public Builder ClearTimestamp() { | ||
809 | result.hasTimestamp = false; | ||
810 | result.timestamp_ = 0; | ||
811 | return this; | ||
812 | } | ||
813 | |||
814 | public bool HasOtherObjectReference { | ||
815 | get { return result.HasOtherObjectReference; } | ||
816 | } | ||
817 | public pb::ByteString OtherObjectReference { | ||
818 | get { return result.OtherObjectReference; } | ||
819 | set { SetOtherObjectReference(value); } | ||
820 | } | ||
821 | public Builder SetOtherObjectReference(pb::ByteString value) { | ||
822 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
823 | result.hasOtherObjectReference = true; | ||
824 | result.otherObjectReference_ = value; | ||
825 | return this; | ||
826 | } | ||
827 | public Builder ClearOtherObjectReference() { | ||
828 | result.hasOtherObjectReference = false; | ||
829 | result.otherObjectReference_ = pb::ByteString.Empty; | ||
830 | return this; | ||
831 | } | ||
832 | } | ||
833 | static CollisionEnd() { | ||
834 | object.ReferenceEquals(global::Sirikata.Physics.Protocol._PBJ_Internal.Physics.Descriptor, null); | ||
835 | } | ||
836 | } | ||
837 | |||
838 | #endregion | ||
839 | |||
840 | } | ||