Inheritance: kOS.Suffixed.SpecialValue
コード例 #1
0
ファイル: Suffixed.cs プロジェクト: CalebJ2/KOS
 public override void Execute(SharedObjects shared)
 {
     string bodyName = PopValueAssert(shared).ToString();
     AssertArgBottomAndConsume(shared);
     var result = new BodyAtmosphere(VesselUtils.GetBodyByName(bodyName));
     ReturnValue = result;
 }
コード例 #2
0
ファイル: Suffixed.cs プロジェクト: EbbiDos/KOS
 public override void Execute(SharedObjects shared)
 {
     string bodyName = shared.Cpu.PopValue().ToString();
     var result = new BodyAtmosphere(VesselUtils.GetBodyByName(bodyName));
     shared.Cpu.PushStack(result);
 }