Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.SetPriceMultiplierAction Class Reference

Adjusts the price multiplier for stores or mechanical repairs in the current location. More...

Inheritance diagram for Barotrauma.SetPriceMultiplierAction:
Barotrauma.EventAction

Public Types

enum  OperationType { Set , Multiply , Min , Max }
 
enum  PriceMultiplierType { Store , Mechanical }
 

Public Member Functions

 SetPriceMultiplierAction (ScriptedEvent parentEvent, ContentXElement element)
 
override bool IsFinished (ref string goTo)
 
override void Reset ()
 
override void Update (float deltaTime)
 
override string ToDebugString ()
 Rich test to display in debugdraw.
 
- Public Member Functions inherited from Barotrauma.EventAction
 EventAction (ScriptedEvent parentEvent, ContentXElement element)
 
bool IsFinished (ref string goToLabel)
 Has the action finished.
 
virtual bool SetGoToTarget (string goTo)
 
void Reset ()
 
virtual bool CanBeFinished ()
 
virtual IEnumerable< EventActionGetSubActions ()
 

Properties

float Multiplier [get, set]
 
OperationType Operation [get, set]
 
PriceMultiplierType TargetMultiplier [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.EventAction
static EventAction Instantiate (ScriptedEvent scriptedEvent, ContentXElement element)
 
- Public Attributes inherited from Barotrauma.EventAction
readonly ScriptedEvent ParentEvent
 
- Protected Member Functions inherited from Barotrauma.EventAction
void ApplyTagsToHulls (Entity entity, Identifier hullTag, Identifier linkedHullTag)
 
string GetEventDebugName ()
 

Detailed Description

Adjusts the price multiplier for stores or mechanical repairs in the current location.

Member Enumeration Documentation

◆ OperationType

Enumerator
Set 
Multiply 
Min 
Max 

◆ PriceMultiplierType

Enumerator
Store 
Mechanical 

Constructor & Destructor Documentation

◆ SetPriceMultiplierAction()

Barotrauma.SetPriceMultiplierAction.SetPriceMultiplierAction ( ScriptedEvent parentEvent,
ContentXElement element )

Member Function Documentation

◆ IsFinished()

override bool Barotrauma.SetPriceMultiplierAction.IsFinished ( ref string goTo)

◆ Reset()

override void Barotrauma.SetPriceMultiplierAction.Reset ( )

◆ ToDebugString()

override string Barotrauma.SetPriceMultiplierAction.ToDebugString ( )
virtual

Rich test to display in debugdraw.

public override string ToDebugString()
{
return $"{ToolBox.GetDebugSymbol(isFinished)} SomeAction -> "(someInfo: {info.ColorizeObject()})";
}
override string ToDebugString()
Rich test to display in debugdraw.
Definition SetPriceMultiplierAction.cs:101
Returns

Reimplemented from Barotrauma.EventAction.

◆ Update()

override void Barotrauma.SetPriceMultiplierAction.Update ( float deltaTime)
virtual

Reimplemented from Barotrauma.EventAction.

Property Documentation

◆ Multiplier

float Barotrauma.SetPriceMultiplierAction.Multiplier
getset

◆ Operation

OperationType Barotrauma.SetPriceMultiplierAction.Operation
getset

◆ TargetMultiplier

PriceMultiplierType Barotrauma.SetPriceMultiplierAction.TargetMultiplier
getset

The documentation for this class was generated from the following file: