C# Class LogicSpawn.GTARPG.Core.Scripts.Questing.Quest

Show file Open project: logicspawn/GTARPG

Public Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
CleanupQuestOnDone ( ) : void
CleanupQuestOnReset ( ) : void
SetupConditions ( ) : void

Method Details

AddCondiiton() public method

public AddCondiiton ( QuestCondition condition ) : Quest
condition QuestCondition
return Quest

AddFinishBlip() public method

public AddFinishBlip ( Vector3 position ) : Quest
position Vector3
return Quest

AddReward() public method

public AddReward ( ) : Quest
return Quest

AddReward() public method

public AddReward ( QuestReward reward ) : Quest
reward QuestReward
return Quest

CheckState() public method

public CheckState ( ) : void
return void

ClearObjectsAndBlips() public method

public ClearObjectsAndBlips ( ) : void
return void

Complete() public method

public Complete ( ) : void
return void

GetBasicRewardString() public method

public GetBasicRewardString ( ) : string
return string

GetCondition() public method

public GetCondition ( string conditionName ) : QuestCondition
conditionName string
return QuestCondition

GetProgressString() public method

public GetProgressString ( ) : string
return string

OnReload() public method

public OnReload ( ) : void
return void

Quest() public method

public Quest ( ) : System
return System

Quest() public method

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
return System

Reset() public method

public Reset ( ) : void
return void

SetupCondition() public method

public SetupCondition ( QuestCondition c, bool firstSetup ) : void
c QuestCondition
firstSetup bool
return void

Start() public method

public Start ( bool withPopup = true ) : void
withPopup bool
return void

WithAutoComplete() public method

public WithAutoComplete ( ) : Quest
return Quest

WithCannotBeCancelled() public method

public WithCannotBeCancelled ( ) : Quest
return Quest

WithOnComplete() public method

public WithOnComplete ( Action onComplete ) : Quest
onComplete Action
return Quest

WithOnStart() public method

public WithOnStart ( Action onStart ) : Quest
onStart Action
return Quest

WithSpawnedTargets() public method

public WithSpawnedTargets ( ) : Quest
return Quest

WithSpawnedTargets() public method

public WithSpawnedTargets ( int amount ) : Quest
amount int
return Quest

Property Details

AdditionalRewards public property

public List AdditionalRewards
return List

AmountToSpawn public property

public int AmountToSpawn
return int

AutoComplete public property

public bool AutoComplete
return bool

Cancellable public property

public bool Cancellable
return bool

Conditions public property

public List Conditions
return List

CreateHandInBlip public property

public bool CreateHandInBlip
return bool

CurrentCondition public property

public int CurrentCondition
return int

Description public property

public string Description
return string

Done public property

public bool Done
return bool

ExpReward public property

public int ExpReward
return int

HandInBlipPosition public property

public Vector3 HandInBlipPosition
return Vector3

InProgress public property

public bool InProgress
return bool

IsContract public property

public bool IsContract
return bool

IsRepeatable public property

public bool IsRepeatable
return bool

MoneyReward public property

public int MoneyReward
return int

Name public property

public string Name
return string

QuestMode public property

public QuestMode QuestMode
return QuestMode

SpawnTargets public property

public bool SpawnTargets
return bool