tModLoader v2024.08
A mod to make and play Terraria mods
CreativePowers.SpawnRateSliderPerPlayerPower Class Reference

Inherits CreativePowers.APerPlayerSliderPower, and IPersistentPerPlayerContent.

Public Member Functions

void ApplyLoadedDataToOutOfPlayerFields (Player player)
 
override bool GetIsUnlocked ()
 
bool GetShouldDisableSpawnsFor (int playerIndex)
 
void Load (Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
 
override UIElement ProvideSlider ()
 
override float RemapSliderValueToPowerValue (float sliderValue)
 
void ResetDataForNewPlayer (Player player)
 
void Save (Player player, BinaryWriter writer)
 
- Public Member Functions inherited from CreativePowers.APerPlayerSliderPower
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)
 
- Public Member Functions inherited from IPersistentPerPlayerContent
void ApplyLoadedDataToOutOfPlayerFields (Player player)
 
void Load (Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void Reset ()
 
void ResetDataForNewPlayer (Player player)
 
void Save (Player player, BinaryWriter writer)
 

Properties

float StrengthMultiplierToGiveNPCs [get]
 
- Properties inherited from CreativePowers.APerPlayerSliderPower
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

◆ ApplyLoadedDataToOutOfPlayerFields()

void CreativePowers.SpawnRateSliderPerPlayerPower.ApplyLoadedDataToOutOfPlayerFields ( Player  player)

◆ GetIsUnlocked()

override bool CreativePowers.SpawnRateSliderPerPlayerPower.GetIsUnlocked ( )
virtual

◆ Load()

void CreativePowers.SpawnRateSliderPerPlayerPower.Load ( Player  player,
BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)

◆ ProvideSlider()

override UIElement CreativePowers.SpawnRateSliderPerPlayerPower.ProvideSlider ( )
virtual

◆ RemapSliderValueToPowerValue()

override float CreativePowers.SpawnRateSliderPerPlayerPower.RemapSliderValueToPowerValue ( float  sliderValue)
virtual

◆ ResetDataForNewPlayer()

void CreativePowers.SpawnRateSliderPerPlayerPower.ResetDataForNewPlayer ( Player  player)

◆ Save()

void CreativePowers.SpawnRateSliderPerPlayerPower.Save ( Player  player,
BinaryWriter  writer 
)