tModLoader v2024.11
A mod to make and play Terraria mods
CreativePowers.APerPlayerSliderPower Class Referenceabstract

Inherits ICreativePower, IOnPlayerJoining, IProvideSliderElement, and IPowerSubcategoryElement.

Inherited by CreativePowers.SpawnRateSliderPerPlayerPower.

Public Member Functions

void DebugCall ()
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
abstract bool GetIsUnlocked ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 
bool GetRemappedSliderValueFor (int playerIndex, out float value)
 
void OnPlayerJoining (int playerIndex)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
abstract UIElement ProvideSlider ()
 
void PushChangeAndSetSlider (float value)
 
abstract float RemapSliderValueToPowerValue (float sliderValue)
 
virtual void Reset ()
 
virtual void ResetForPlayer (int playerIndex)
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
bool GetIsUnlocked ()
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void OnPlayerJoining (int playerIndex)
 
UIElement ProvideSlider ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 

Properties

PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 
- Properties inherited from ICreativePower
PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 

Member Function Documentation

◆ DeserializeNetMessage()

void CreativePowers.APerPlayerSliderPower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

Implements ICreativePower.

◆ GetIsUnlocked()

abstract bool CreativePowers.APerPlayerSliderPower.GetIsUnlocked ( )
pure virtual

Implements ICreativePower.

◆ GetOptionButton()

GroupOptionButton< int > CreativePowers.APerPlayerSliderPower.GetOptionButton ( CreativePowerUIElementRequestInfo  info,
int  optionIndex,
int  currentOptionIndex 
)

◆ OnPlayerJoining()

void CreativePowers.APerPlayerSliderPower.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ ProvidePowerButtons()

void CreativePowers.APerPlayerSliderPower.ProvidePowerButtons ( CreativePowerUIElementRequestInfo  info,
List< UIElement elements 
)

Implements ICreativePower.

◆ ProvideSlider()

abstract UIElement CreativePowers.APerPlayerSliderPower.ProvideSlider ( )
pure virtual

Implements IProvideSliderElement.

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel CreativePowers.APerPlayerSliderPower.CurrentPermissionLevel
getset

Implements ICreativePower.

◆ DefaultPermissionLevel

PowerPermissionLevel CreativePowers.APerPlayerSliderPower.DefaultPermissionLevel
getset

Implements ICreativePower.

◆ PowerId

ushort CreativePowers.APerPlayerSliderPower.PowerId
getset

Implements ICreativePower.

◆ ServerConfigName

string CreativePowers.APerPlayerSliderPower.ServerConfigName
getset

Implements ICreativePower.