コード例 #1
0
 internal ELSurveyStake.Data this[int index]
 {
     get {
         Vessel v = stakes[index];
         if (v.loaded)
         {
             var stake = v[0].FindModuleImplementing <ELSurveyStake> ();
             return(stake.GetData());
         }
         else
         {
             var ppart = v.protoVessel.protoPartSnapshots[0];
             var stake = ppart.FindModule("ELSurveyStake");
             return(ELSurveyStake.GetData(stake, v));
         }
     }
 }
コード例 #2
0
 internal ELSurveyStake.Data this[int index]
 {
     get {
         return(ELSurveyStake.GetData(stakes[index]));
     }
 }