public void RPC_GetPlayerInfo(ulong id, RPC.RPCForwardInfo fwd) { RPC.PackageWriter retPkg = new RPC.PackageWriter(); PlayerInstance player = HostMap.FindPlayer(id); if (player == null) { retPkg.Write((sbyte)(-1)); retPkg.DoReturnPlanes2Client(fwd); return; } retPkg.Write((sbyte)1); ////一级属性 //retPkg.Write(player.FinalPoint.Power); //retPkg.Write(player.FinalPoint.Body); //retPkg.Write(player.FinalPoint.Dex); ////二级属性 //retPkg.Write(player.mFinalRoleValue.Atk); //retPkg.Write(player.mFinalRoleValue.MaxHP); //retPkg.Write(player.mFinalRoleValue.MaxMP); //retPkg.Write(player.mFinalRoleValue.Hit); //retPkg.Write(player.mFinalRoleValue.Dodge); //retPkg.Write(player.mFinalRoleValue.Crit); //retPkg.Write(player.mFinalRoleValue.CritDef); //retPkg.Write(player.mFinalRoleValue.DeadlyHitRate); //retPkg.Write(player.mFinalRoleValue.Def[0]); //retPkg.Write(player.mFinalRoleValue.Def[1]); //retPkg.Write(player.mFinalRoleValue.Def[2]); //retPkg.Write(player.mFinalRoleValue.Def[3]); //retPkg.Write(player.mFinalRoleValue.Def[4]); //retPkg.Write(player.mFinalRoleValue.UpHurtRate); //retPkg.Write(player.mFinalRoleValue.DownHurtRate); //retPkg.Write(player.mFinalRoleValue.UnusualDefRate); retPkg.Write(player.FinalRoleValue.Power); retPkg.Write(player.FinalRoleValue.Body); retPkg.Write(player.FinalRoleValue.Dex); //二级属性 retPkg.Write(player.FinalRoleValue.Atk); retPkg.Write(player.FinalRoleValue.MaxHP); retPkg.Write(player.FinalRoleValue.MaxMP); retPkg.Write(player.FinalRoleValue.Hit); retPkg.Write(player.FinalRoleValue.Dodge); retPkg.Write(player.FinalRoleValue.Crit); retPkg.Write(player.FinalRoleValue.CritDef); retPkg.Write(player.FinalRoleValue.DeadlyHitRate); retPkg.Write(player.FinalRoleValue.GetDef(eElemType.Gold)); retPkg.Write(player.FinalRoleValue.GetDef(eElemType.Wood)); retPkg.Write(player.FinalRoleValue.GetDef(eElemType.Water)); retPkg.Write(player.FinalRoleValue.GetDef(eElemType.Fire)); retPkg.Write(player.FinalRoleValue.GetDef(eElemType.Earth)); retPkg.Write(player.FinalRoleValue.UpHurtRate); retPkg.Write(player.FinalRoleValue.DownHurtRate); retPkg.Write(player.FinalRoleValue.UnusualDefRate); retPkg.DoReturnPlanes2Client(fwd); }