本文整理汇总了C#中Vessel.RevealSituationString方法的典型用法代码示例。如果您正苦于以下问题:C# Vessel.RevealSituationString方法的具体用法?C# Vessel.RevealSituationString怎么用?C# Vessel.RevealSituationString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vessel
的用法示例。
在下文中一共展示了Vessel.RevealSituationString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Print_Vessel_info
//////////////////////////////
/// Debug functions
/// ///////////////////////////
/// <summary>
///
/// </summary>
/// <param name="o">O.</param>
private static void Print_Vessel_info(Vessel v)
{
Debug.Log("Vessel Info \n");
bool AttachedConicsAtStart = v.PatchedConicsAttached;
string Output = "";
Output = "Name:" + v.name + "; Of type:" + v.vesselType + "; doing: " + v.RevealSituationString () +
"; Unobserved for: " + v.DiscoveryInfo.unobservedLifetime + "sec; Orbiting:" + v.orbit.referenceBody.name ;
Debug.Log(Output);
//Dump All info
Output = "Vessel Dump \n";
//Variables
//Output += "\n acceleration:" + v.acceleration;
Output += "\n altitude:" + v.altitude;
//Output += "\n angularMomentum:" + v.angularMomentum;
//Output += "\n angularVelocity:" + v.angularVelocity;
//Output += "\n atmDensity:" + v.atmDensity;
//Output += "\n CoM:" + v.CoM;
Output += "\n ctrlState:" + v.ctrlState;
//Output += "\n currentStage:" + v.currentStage;
//Output += "\n geeForce:" + v.geeForce;
//Output += "\n geeForce_immediate:" + v.geeForce_immediate;
//Output += "\n heightFromSurface:" + v.heightFromSurface;
//Output += "\n heightFromTerrain:" + v.heightFromTerrain;
//Output += "\n horizontalSrfSpeed:" + v.horizontalSrfSpeed;
Output += "\n id:" + v.id;
//Output += "\n isEVA:" + v.isEVA;
//Output += "\n Landed:" + v.Landed;
//Output += "\n LandedAt:" + v.landedAt;
Output += "\n Latitude:" + v.latitude;
Output += "\n LaunchTime:" + v.launchTime;
Output += "\n loaded:" + v.loaded;
//Output += "\n LocalCoM:" + v.localCoM;
//Output += "\n missionTime:" + v.missionTime;
//Output += "\n MOI:" + v.MOI;
//Output += "\n obt_speed:" + v.obt_speed;
//Output += "\n obt_velocity:" + v.obt_velocity;
// Output += "\n A:" + v.OnFlyByWire;
Output += "\n orbitDriver:" + v.orbitDriver;
Output += "\n orbitTargeter:" + v.orbitTargeter;
Output += "\n packed:" + v.packed;
//Output += "\n parts:" + v.parts;
Output += "\n patchedConicRenderer:" + v.patchedConicRenderer;
Output += "\n patchedConicSolver:" + v.patchedConicSolver;
//Output += "\n perturbation:" + v.perturbation;
//Output += "\n pqsAltitude:" + v.pqsAltitude;
Output += "\n protoVessel:" + v.protoVessel;
//Output += "\n rb_velocity:" + v.rb_velocity;
//Output += "\n referenceTransformId:" + v.referenceTransformId;
//Output += "\n rootPart:" + v.rootPart;
Output += "\n situation:" + v.situation;
//Output += "\n specificAcceleration:" + v.specificAcceleration;
//Output += "\n Splashed:" + v.Splashed;
//Output += "\n srf_velocity:" + v.srf_velocity;
//Output += "\n srfRelRotation:" + v.srfRelRotation;
Output += "\n state:" + v.state;
//Output += "\n staticPressurekPa:" + v.staticPressurekPa;
//Output += "\n terrainAltitude:" + v.terrainAltitude;
//Output += "\n terrainNormal:" + v.terrainNormal;
//Output += "\n upAxis:" + v.upAxis;
Output += "\n verticalSpeed:" + v.verticalSpeed;
Output += "\n vesselName:" + v.vesselName;
Output += "\n vesselType:" + v.vesselType;
//Properties (get/set)
//Output += "\n ActionGroups:" + v.ActionGroups;
Output += "\n DiscoveryInfo:" + v.DiscoveryInfo.ToString(); //@@@TODO: add Function
Output += "\n HoldPhysics:" + v.HoldPhysics;
Output += "\n isActiveVessel:" + v.isActiveVessel;
Output += "\n isCommandable:" + v.isCommandable;
Output += "\n IsControllable:" + v.IsControllable;
Output += "\n isPersistent:" + v.isPersistent;
Output += "\n LandedOrSplashed:" + v.LandedOrSplashed;
Output += "\n orbit:" + v.orbit;
//functions
Output += "\n PatchedConicsAttached:" + v.PatchedConicsAttached;
// Debug.Log(v.GetComponents<Component> ());
//tests
if(v.PatchedConicsAttached){
///@@@TODO: Add another funtion for PatchConic Solver Dump
Output += "\n maxTotalPatches:" + v.patchedConicSolver.maxTotalPatches;
}
Debug.Log(Output);
Print_Discovery_info (v.DiscoveryInfo);
Print_Orbit_info (v.orbit);
//.........这里部分代码省略.........
示例2: CheckVessel
/// <summary>
/// Stuff
/// </summary>
private static bool CheckVessel(Vessel v)
{
bool answer = false;
Debug.Log("Cheking Intersection for Vessel " + v.name );
bool DontdetachConics = v.PatchedConicsAttached;
//Debug Output
string Output = "";
Output = "Name:" + v.name + "; Of type:" + v.vesselType + "; doing: " + v.RevealSituationString () +
"; Unobserved for: " + v.DiscoveryInfo.unobservedLifetime + "sec; Orbiting:" + v.orbit.referenceBody.name ;
Debug.Log(Output);
if (!v.PatchedConicsAttached) {
Debug.Log("No PatchedConicSolver. Creating a New One. ");
try {
//v.patchedConicSolver = new PatchedConicSolver ();
v.AttachPatchedConicsSolver();
v.patchedConicSolver.IncreasePatchLimit ();
v.patchedConicSolver.Update ();
}
catch(Exception ex)
{
Debug.Log("Could not attach patchedConicSolver. Exception:" + ex);
//DontdetachConics = true;
//v.DetachPatchedConicsSolver ();
}
}
answer = CheckOrbits (v.orbit);
if (!DontdetachConics && v.PatchedConicsAttached && v.patchedConicSolver != null) {
v.DetachPatchedConicsSolver ();
}
return answer;
}