C# Класс LogicSpawn.GTARPG.Core.Scripts.Questing.Quest

Показать файл Открыть проект

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

Свойство Тип Описание
AdditionalRewards List
AmountToSpawn int
AutoComplete bool
Cancellable bool
Conditions List
CreateHandInBlip bool
CurrentCondition int
Description string
Done bool
ExpReward int
HandInBlipPosition Vector3
InProgress bool
IsContract bool
IsRepeatable bool
MoneyReward int
Name string
QuestMode QuestMode
SpawnTargets bool

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

Метод Описание
AddCondiiton ( QuestCondition condition ) : Quest
AddFinishBlip ( Vector3 position ) : Quest
AddReward ( ) : Quest
AddReward ( QuestReward reward ) : Quest
CheckState ( ) : void
ClearObjectsAndBlips ( ) : void
Complete ( ) : void
GetBasicRewardString ( ) : string
GetCondition ( string conditionName ) : QuestCondition
GetProgressString ( ) : string
OnReload ( ) : void
Quest ( ) : System
Quest ( string name, string desc, bool isRepeatable, bool isContract, int expReward, int moneyReward, QuestMode questMode = QuestMode.AllAtOnce ) : System
Reset ( ) : void
SetupCondition ( QuestCondition c, bool firstSetup ) : void
Start ( bool withPopup = true ) : void
WithAutoComplete ( ) : Quest
WithCannotBeCancelled ( ) : Quest
WithOnComplete ( Action onComplete ) : Quest
WithOnStart ( Action onStart ) : Quest
WithSpawnedTargets ( ) : Quest
WithSpawnedTargets ( int amount ) : Quest

Приватные методы

Метод Описание
CleanupQuestOnDone ( ) : void
CleanupQuestOnReset ( ) : void
SetupConditions ( ) : void

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

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

public AddCondiiton ( QuestCondition condition ) : Quest
condition QuestCondition
Результат Quest

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

public AddFinishBlip ( Vector3 position ) : Quest
position Vector3
Результат Quest

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

public AddReward ( ) : Quest
Результат Quest

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

public AddReward ( QuestReward reward ) : Quest
reward QuestReward
Результат Quest

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

public CheckState ( ) : void
Результат void

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

public ClearObjectsAndBlips ( ) : void
Результат void

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

public Complete ( ) : void
Результат void

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

public GetBasicRewardString ( ) : string
Результат string

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

public GetCondition ( string conditionName ) : QuestCondition
conditionName string
Результат QuestCondition

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

public GetProgressString ( ) : string
Результат string

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

public OnReload ( ) : void
Результат void

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

public Quest ( ) : System
Результат System

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

public Quest ( string name, string desc, bool isRepeatable, bool isContract, int expReward, int moneyReward, QuestMode questMode = QuestMode.AllAtOnce ) : System
name string
desc string
isRepeatable bool
isContract bool
expReward int
moneyReward int
questMode QuestMode
Результат System

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

public Reset ( ) : void
Результат void

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

public SetupCondition ( QuestCondition c, bool firstSetup ) : void
c QuestCondition
firstSetup bool
Результат void

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

public Start ( bool withPopup = true ) : void
withPopup bool
Результат void

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

public WithAutoComplete ( ) : Quest
Результат Quest

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

public WithCannotBeCancelled ( ) : Quest
Результат Quest

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

public WithOnComplete ( Action onComplete ) : Quest
onComplete Action
Результат Quest

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

public WithOnStart ( Action onStart ) : Quest
onStart Action
Результат Quest

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

public WithSpawnedTargets ( ) : Quest
Результат Quest

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

public WithSpawnedTargets ( int amount ) : Quest
amount int
Результат Quest

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

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

public List AdditionalRewards
Результат List

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

public int AmountToSpawn
Результат int

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

public bool AutoComplete
Результат bool

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

public bool Cancellable
Результат bool

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

public List Conditions
Результат List

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

public bool CreateHandInBlip
Результат bool

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

public int CurrentCondition
Результат int

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

public string Description
Результат string

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

public bool Done
Результат bool

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

public int ExpReward
Результат int

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

public Vector3 HandInBlipPosition
Результат Vector3

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

public bool InProgress
Результат bool

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

public bool IsContract
Результат bool

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

public bool IsRepeatable
Результат bool

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

public int MoneyReward
Результат int

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

public string Name
Результат string

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

public QuestMode QuestMode
Результат QuestMode

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

public bool SpawnTargets
Результат bool