当前位置: 首页>>代码示例>>C#>>正文


C# IPackage.GetVector3方法代码示例

本文整理汇总了C#中IPackage.GetVector3方法的典型用法代码示例。如果您正苦于以下问题:C# IPackage.GetVector3方法的具体用法?C# IPackage.GetVector3怎么用?C# IPackage.GetVector3使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IPackage的用法示例。


在下文中一共展示了IPackage.GetVector3方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Decode

		public override void Decode(IPackage package)
		{
			Unknown 	= package.GetInt32();
			MapID 		= package.GetInt32();
			Position 	= package.GetVector3();
			Angle 		= package.GetFloat();
		}
开发者ID:oathx,项目名称:Six,代码行数:7,代码来源:TcpEvent.cs

示例2: Decode

		/// <summary>
		/// Decode the specified package.
		/// </summary>
		/// <param name="package">Package.</param>
		public override void Decode(IPackage package)
		{
			Timestamp 				= package.GetInt32 ();
			PlayerID 				= package.GetInt32 ();
			MapID					= package.GetInt32 ();
			WorldID	 				= package.GetInt32 ();
			SelfID 					= package.GetInt32 ();
			Position				= package.GetVector3 ();
			Angle 					= package.GetFloat ();
			Name 					= package.GetString ();
			Job 					= package.GetInt8 ();
			Level 					= package.GetInt16();
			Exp						= package.GetInt32();
			BagOpen					= package.GetInt8();
			StoreOpen				= package.GetInt8();
			Money					= package.GetInt32();
			Honor					= package.GetInt32();
			HP 						= package.GetInt32();
			MP 						= package.GetInt32();
			Emoney      			= package.GetInt32();
			EnergyPiece 			= package.GetInt32();
			MakeEnergyIndex       	= package.GetInt8();
			StartStone            	= package.GetInt32 ();
			StoneBuyTimes         	= package.GetInt8 ();
			MaxPowerTimeStamp     	= package.GetInt32();
			LastedLevelGotGiftID  	= package.GetInt8();
			NextGiftTime          	= package.GetInt32();
			LastedGotOnlineGiftID 	= package.GetInt8();
			LastAttendanceTime    	= package.GetInt32();
			TotalAttendanceCount  	= package.GetInt16();
			UntilAttendanceID     	= package.GetInt16();
			AccumulateID          	= package.GetInt8();
			MaxPowerBuyTimes      	= package.GetInt8 ();
			UntilPayEmoney 			= package.GetInt32();
			LastVipGiftID 			= package.GetInt8();
			GrowId 					= package.GetInt8();
			MagicWeaponInfo 		= package.GetString();
			//OpenEffectState 		= package.GetInt8();
		}
开发者ID:oathx,项目名称:Six,代码行数:43,代码来源:TcpEvent.cs


注:本文中的IPackage.GetVector3方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。