C# Класс MissionController.MissionGoal

A single mission goal.
Наследование: InstructionSet
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
crewCount int
description String
doneOnce bool
id String
maxTotalMass double
minSeconds double
minTotalMass double
nonPermanent bool
optional bool
repeatable bool
reward int
throttleDown bool
vesselIndenpendent bool

Открытые методы

Метод Описание
getType ( ) : String

Caption in the window for this mission goal

getValues ( Vessel vessel, GameEvent events ) : List

Returns all values related to this mission goal

isDone ( Vessel vessel, GameEvent events ) : bool

Checks, if this mission goal has been accomplished.

Защищенные методы

Метод Описание
values ( Vessel v, GameEvent events ) : List

Returns an array of necessary values, like orbital parameters.

Описание методов

getType() публичный Метод

Caption in the window for this mission goal
public getType ( ) : String
Результат String

getValues() публичный Метод

Returns all values related to this mission goal
public getValues ( Vessel vessel, GameEvent events ) : List
vessel Vessel current vessel
events GameEvent
Результат List

isDone() публичный Метод

Checks, if this mission goal has been accomplished.
public isDone ( Vessel vessel, GameEvent events ) : bool
vessel Vessel current vessel
events GameEvent
Результат bool

values() защищенный Метод

Returns an array of necessary values, like orbital parameters.
protected values ( Vessel v, GameEvent events ) : List
v Vessel current vessel, might be null when in editor mode or in space center mode!
events GameEvent
Результат List

Описание свойств

crewCount публичное свойство

The minimal crew count needed for this mission goal
public int crewCount
Результат int

description публичное свойство

The mission goals description
public String description
Результат String

doneOnce публичное свойство

Indicates that the mission goals has been finished once. Don't set this inside a mission file.
public bool doneOnce
Результат bool

id публичное свойство

Used to store finished mission goals. Do not set manually!
public String id
Результат String

maxTotalMass публичное свойство

public double maxTotalMass
Результат double

minSeconds публичное свойство

Minimal time for this mission goal in seconds.
public double minSeconds
Результат double

minTotalMass публичное свойство

The maximal and minimal total mass
public double minTotalMass
Результат double

nonPermanent публичное свойство

nonPermanent = false makes the mission goal a permanent condition to finish the mission goal. Use with caution.
public bool nonPermanent
Результат bool

optional публичное свойство

optional = true makes this mission goal optional
public bool optional
Результат bool

repeatable публичное свойство

If repeatable = true, this mission goals can be accomplished more than once.
public bool repeatable
Результат bool

reward публичное свойство

Optional reward for this specific mission goal
public int reward
Результат int

throttleDown публичное свойство

If true, the vessel needs to be throttled down in order to finish this mission goal
public bool throttleDown
Результат bool

vesselIndenpendent публичное свойство

If true it does not matter with which vessel this goal has been finished.
public bool vesselIndenpendent
Результат bool