tModLoader v2024.10
A mod to make and play Terraria mods
CreativePowers.ASharedSliderPower Class Referenceabstract

Inherits ICreativePower, IOnPlayerJoining, IProvideSliderElement, and IPowerSubcategoryElement.

Inherited by CreativePowers.DifficultySliderPower, CreativePowers.ModifyRainPower, CreativePowers.ModifyTimeRate, and CreativePowers.ModifyWindDirectionAndStrength.

Public Member Functions

void DebugCall ()
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
abstract bool GetIsUnlocked ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 
void OnPlayerJoining (int playerIndex)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
abstract UIElement ProvideSlider ()
 
virtual void Reset ()
 
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.ASharedSliderPower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

Implements ICreativePower.

◆ GetIsUnlocked()

abstract bool CreativePowers.ASharedSliderPower.GetIsUnlocked ( )
pure virtual

Implements ICreativePower.

◆ GetOptionButton()

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

◆ OnPlayerJoining()

void CreativePowers.ASharedSliderPower.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ ProvidePowerButtons()

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

Implements ICreativePower.

◆ ProvideSlider()

abstract UIElement CreativePowers.ASharedSliderPower.ProvideSlider ( )
pure virtual

Implements IProvideSliderElement.

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel CreativePowers.ASharedSliderPower.CurrentPermissionLevel
getset

Implements ICreativePower.

◆ DefaultPermissionLevel

PowerPermissionLevel CreativePowers.ASharedSliderPower.DefaultPermissionLevel
getset

Implements ICreativePower.

◆ PowerId

ushort CreativePowers.ASharedSliderPower.PowerId
getset

Implements ICreativePower.

◆ ServerConfigName

string CreativePowers.ASharedSliderPower.ServerConfigName
getset

Implements ICreativePower.