C# Класс MissionController.Mission

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

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

Свойство Тип Описание
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