public MMIStandard.MPathConstraint ComputePath(MMIStandard.MVector start, MMIStandard.MVector goal, List <MMIStandard.MSceneObject> sceneObjects, Dictionary <string, string> properties) { #if SILVERLIGHT var asyncResult = Begin_ComputePath(null, null, start, goal, sceneObjects, properties); return(End_ComputePath(asyncResult)); #else send_ComputePath(start, goal, sceneObjects, properties); return(recv_ComputePath()); #endif }
public void send_ComputePath(MMIStandard.MVector start, MMIStandard.MVector goal, List <MMIStandard.MSceneObject> sceneObjects, Dictionary <string, string> properties) { oprot_.WriteMessageBegin(new TMessage("ComputePath", TMessageType.Call, seqid_)); ComputePath_args args = new ComputePath_args(); args.Start = start; args.Goal = goal; args.SceneObjects = sceneObjects; args.Properties = properties; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_ComputePath(AsyncCallback callback, object state, MMIStandard.MVector start, MMIStandard.MVector goal, List <MMIStandard.MSceneObject> sceneObjects, Dictionary <string, string> properties) { oprot_.WriteMessageBegin(new TMessage("ComputePath", TMessageType.Call, seqid_)); ComputePath_args args = new ComputePath_args(); args.Start = start; args.Goal = goal; args.SceneObjects = sceneObjects; args.Properties = properties; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public IAsyncResult Begin_ComputePath(AsyncCallback callback, object state, MMIStandard.MVector start, MMIStandard.MVector goal, List <MMIStandard.MSceneObject> sceneObjects, Dictionary <string, string> properties) { return(send_ComputePath(callback, state, start, goal, sceneObjects, properties)); }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Start = new MMIStandard.MVector(); Start.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Goal = new MMIStandard.MVector(); Goal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { SceneObjects = new List <MMIStandard.MSceneObject>(); TList _list136 = iprot.ReadListBegin(); for (int _i137 = 0; _i137 < _list136.Count; ++_i137) { MMIStandard.MSceneObject _elem138; _elem138 = new MMIStandard.MSceneObject(); _elem138.Read(iprot); SceneObjects.Add(_elem138); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Map) { { Properties = new Dictionary <string, string>(); TMap _map139 = iprot.ReadMapBegin(); for (int _i140 = 0; _i140 < _map139.Count; ++_i140) { string _key141; string _val142; _key141 = iprot.ReadString(); _val142 = iprot.ReadString(); Properties[_key141] = _val142; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }