C# 클래스 MissionController.Mission

A mission
상속: InstructionSet
파일 보기 프로젝트 열기: pweingardt/KSPMissionController 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
category Category
clientControlled bool
description String
destroyPunishment int
inOrder bool
lifetime double
name String
packageOrder int
passiveMission bool
passiveReward int
randomized bool
repeatable bool
repeatableSameVessel bool
requiresMission String
reward int

공개 메소드들

메소드 설명
Sort ( List missions, SortBy sortBy ) : void

Sorts the given missions with the given method

SortByName ( Mission x, Mission y ) : int
SortByPackageOrder ( Mission x, Mission y ) : int
SortByReward ( Mission x, Mission y ) : int
ToString ( ) : string
add ( MissionGoal c ) : void

Needed for reflection

isDone ( Vessel vessel, GameEvent events ) : bool

Checks if the mission is finishable with the vessel

메소드 상세

Sort() 공개 정적인 메소드

Sorts the given missions with the given method
public static Sort ( List missions, SortBy sortBy ) : void
missions List Missions.
sortBy SortBy Sort by.
리턴 void

SortByName() 공개 정적인 메소드

public static SortByName ( Mission x, Mission y ) : int
x Mission
y Mission
리턴 int

SortByPackageOrder() 공개 정적인 메소드

public static SortByPackageOrder ( Mission x, Mission y ) : int
x Mission
y Mission
리턴 int

SortByReward() 공개 정적인 메소드

public static SortByReward ( Mission x, Mission y ) : int
x Mission
y Mission
리턴 int

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

add() 공개 메소드

Needed for reflection
public add ( MissionGoal c ) : void
c MissionGoal C.
리턴 void

isDone() 공개 메소드

Checks if the mission is finishable with the vessel
public isDone ( Vessel vessel, GameEvent events ) : bool
vessel Vessel current vessel
events GameEvent
리턴 bool

프로퍼티 상세

category 공개적으로 프로퍼티

Mission category
public Category category
리턴 Category

clientControlled 공개적으로 프로퍼티

if true then the vessel that finished this mission is controlled by the client, not by the user
public bool clientControlled
리턴 bool

description 공개적으로 프로퍼티

Missions Description
public String description
리턴 String

destroyPunishment 공개적으로 프로퍼티

The punishment if the user destroyed the vessel
public int destroyPunishment
리턴 int

inOrder 공개적으로 프로퍼티

If true, the mission goals needs to be finished in the right order
public bool inOrder
리턴 bool

lifetime 공개적으로 프로퍼티

Lifetime of this mission in secondes. use TIME.
public double lifetime
리턴 double

name 공개적으로 프로퍼티

Unique name
public String name
리턴 String

packageOrder 공개적으로 프로퍼티

The order in the mission package. Set to a very high number so that it is the last mission
public int packageOrder
리턴 int

passiveMission 공개적으로 프로퍼티

If true, then this mission is a passive mission with a lifetime and income gerneration
public bool passiveMission
리턴 bool

passiveReward 공개적으로 프로퍼티

The passive reward per day
public int passiveReward
리턴 int

randomized 공개적으로 프로퍼티

If true, the mission will be initialized with a random seed and this seed is saved within the space program object. Once loaded (until discarded), the mission will stay the same.
public bool randomized
리턴 bool

repeatable 공개적으로 프로퍼티

If true, this mission is repeatable. You can't finish the same mission with one vessel twice.
public bool repeatable
리턴 bool

repeatableSameVessel 공개적으로 프로퍼티

If true, then the repeatable mission (repeatable must be true), then this mission is repeatable with the same vessel. This field is ignored, when the mission is not client controlled of passive!
public bool repeatableSameVessel
리턴 bool

requiresMission 공개적으로 프로퍼티

If this field is not empty, then this mission requires another mission to be finished. If it has not been finished, then this mission can not be finished either.
public String requiresMission
리턴 String

reward 공개적으로 프로퍼티

Reward for finishing the mission
public int reward
리턴 int