本文整理汇总了C#中Vessel.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Vessel.ToString方法的具体用法?C# Vessel.ToString怎么用?C# Vessel.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vessel
的用法示例。
在下文中一共展示了Vessel.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Mission
// Mission is created only if the have a Vessel
// Check the vessel, if ok - create the mission
public Mission(Vessel ves)
{
if (this.is_vessel_fits_to_mission(ves))
{
KDebug.Log("Mission is creating by Vessel: " + ves.ToString(), KDebug.Type.CREATE);
this.missionId = Mission.mission_id(ves);
this.missionApproved = true;
this.missionName = ves.GetName(); // Name of the mission is the name of the Vessel
this.missionSituation = ves.situation;
this.missionTime = Mission.mission_time(); // Static call
if (String.IsNullOrEmpty(this.missionName) ) this.missionName = ves.name; // Let's see the unknown created vessels
}
else this.missionApproved = false; // No mission is created, we should not use this mission object
}
示例2: add_situation_event
// Add message from coroutine. We check the situation and change the situation
public void add_situation_event(Entry.Situations S, Vessel ves, String message, Vessel.Situations situation)
{
KDebug.Log("add_situation_event: " + message, KDebug.Type.CORUTINE);
Mission M = this.find_the_mission(ves);
if (M != null & M.get_situation() != situation)
{
KDebug.Log("situation change from : " + M.get_situation().ToString() + " to: " + situation.ToString(), KDebug.Type.EVENT);
M.set_situation(situation);
if (ves.Landed)
message = message + " at: " + FlightGlobals.currentMainBody.name + " (" + FlightGlobals.currentMainBody.BiomeMap.GetAtt(ves.latitude * Mathf.Deg2Rad, ves.longitude * Mathf.Deg2Rad).name + ")";
M.add_entry(S, ves, message);
}
}