當前位置: 首頁>>代碼示例>>C#>>正文


C# Vector3D.Parse方法代碼示例

本文整理匯總了C#中Mooege.Core.GS.Common.Types.Math.Vector3D.Parse方法的典型用法代碼示例。如果您正苦於以下問題:C# Vector3D.Parse方法的具體用法?C# Vector3D.Parse怎麽用?C# Vector3D.Parse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Mooege.Core.GS.Common.Types.Math.Vector3D的用法示例。


在下文中一共展示了Vector3D.Parse方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Parse

 /// <summary>
 /// Reads PRTransform from given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to parse from.</param>
 public void Parse(GameBitBuffer buffer)
 {
     Quaternion = new Quaternion();
     Quaternion.Parse(buffer);
     Vector3D = new Vector3D();
     Vector3D.Parse(buffer);
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:11,代碼來源:PRTransform.cs

示例2: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     if (buffer.ReadBool())
     {
         Position = new Vector3D();
         Position.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Angle = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         TurnImmediately = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Speed = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(25);
     }
     if (buffer.ReadBool())
     {
         AnimationTag = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
開發者ID:CommunityX,項目名稱:mooege,代碼行數:33,代碼來源:ACDTranslateNormalMessage.cs

示例3: Parse

 /// <summary>
 /// Parses AABB from given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to parse from.</param>
 public void Parse(GameBitBuffer buffer)
 {
     Min = new Vector3D();
     Min.Parse(buffer);
     Max = new Vector3D();
     Max.Parse(buffer);
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:11,代碼來源:AABB.cs

示例4: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = new Vector3D();
     Field2.Parse(buffer);
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:8,代碼來源:ACDTranslateFixedUpdateMessage.cs

示例5: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     Field2 = buffer.ReadFloat32();
     Field3 = buffer.ReadBool();
     Field4 = buffer.ReadInt(25);
 }
開發者ID:wow4all,項目名稱:mooege,代碼行數:9,代碼來源:ACDTranslateSnappedMessage.cs

示例6: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Tick = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(4);
     Position = new Vector3D();
     Position.Parse(buffer);
     Angle = buffer.ReadFloat32();
     Speed = buffer.ReadFloat32();
     Field5 = buffer.ReadInt(32);
     AnimationTag = buffer.ReadInt(21) + (-1);
     if(buffer.ReadBool())
         Field7 = buffer.ReadInt(32);
 }
開發者ID:God601,項目名稱:mooege,代碼行數:13,代碼來源:ACDClientTranslateMessage.cs

示例7: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Position = new Vector3D();
     Position.Parse(buffer);
     Angle = buffer.ReadFloat32();
     Field3 = buffer.ReadBool();
     Field4 = buffer.ReadInt(25);
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(16);
     }
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:13,代碼來源:ACDTranslateSnappedMessage.cs

示例8: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = new Vector3D();
     Field1.Parse(buffer);
     if (buffer.ReadBool())
     {
         Field2 = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Field3 = buffer.ReadInt(16);
     }
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:14,代碼來源:ACDTranslateSyncMessage.cs

示例9: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     FlyingAnimationTagID = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Gravity = buffer.ReadFloat32();
     PowerSNO = buffer.ReadInt(32);
     Bounce = buffer.ReadFloat32();
     DestinationZ = buffer.ReadFloat32();
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:15,代碼來源:ACDTranslateArcMessage.cs

示例10: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     ActorId = buffer.ReadInt(32);
     Start = new Vector3D();
     Start.Parse(buffer);
     Velocity = new Vector3D();
     Velocity.Parse(buffer);
     Field3 = buffer.ReadInt(25);
     FlyingAnimationTagID = buffer.ReadInt(21) + (-1);
     LandingAnimationTagID = buffer.ReadInt(21) + (-1);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadFloat32();
     Field9 = buffer.ReadFloat32();
 }
開發者ID:God601,項目名稱:mooege,代碼行數:15,代碼來源:ACDTranslateArcMessage.cs

示例11: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = new Vector3D();
     Field3.Parse(buffer);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadInt(32);
     Field8 = new RGBAColor();
     Field8.Parse(buffer);
     Field9 = buffer.ReadCharArray(128);
 }
開發者ID:wow4all,項目名稱:mooege,代碼行數:16,代碼來源:DebugDrawPrimMessage.cs

示例12: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(4);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = new Vector3D();
     Field4.Parse(buffer);
     Field5 = buffer.ReadFloat32();
     Field6 = new Vector3D();
     Field6.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(32);
     Field10 = buffer.ReadInt(32);
     Field11 = buffer.ReadInt(32);
     Field12 = buffer.ReadFloat32();
     Field13 = buffer.ReadFloat32();
     Field14 = buffer.ReadFloat32();
     Field15 = buffer.ReadFloat32();
 }
開發者ID:loonbg,項目名稱:mooege,代碼行數:21,代碼來源:ACDTranslateDetPathMessage.cs

示例13: Parse

 /// <summary>
 /// Parses Quaternion from given GameBitBuffer.
 /// </summary>
 /// <param name="buffer">The GameBitBuffer to parse from.</param>
 public void Parse(GameBitBuffer buffer)
 {
     W = buffer.ReadFloat32();
     Vector3D = new Vector3D();
     Vector3D.Parse(buffer);
 }
開發者ID:God601,項目名稱:mooege,代碼行數:10,代碼來源:Quaternion.cs


注:本文中的Mooege.Core.GS.Common.Types.Math.Vector3D.Parse方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。