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

Inherits ICreativePower, and IOnPlayerJoining.

Inherited by CreativePowers.FreezeRainPower, CreativePowers.FreezeTime, CreativePowers.FreezeWindDirectionAndStrength, and CreativePowers.StopBiomeSpreadPower.

Public Member Functions

void DeserializeNetMessage (BinaryReader reader, int userId)
 
abstract bool GetIsUnlocked ()
 
void OnPlayerJoining (int playerIndex)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void Reset ()
 
void SetPowerInfo (bool enabled)
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
bool GetIsUnlocked ()
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void OnPlayerJoining (int playerIndex)
 

Properties

PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
bool Enabled [get]
 
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.ASharedTogglePower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

Implements ICreativePower.

◆ GetIsUnlocked()

abstract bool CreativePowers.ASharedTogglePower.GetIsUnlocked ( )
pure virtual

Implements ICreativePower.

◆ OnPlayerJoining()

void CreativePowers.ASharedTogglePower.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ ProvidePowerButtons()

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

Implements ICreativePower.

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel CreativePowers.ASharedTogglePower.CurrentPermissionLevel
getset

Implements ICreativePower.

◆ DefaultPermissionLevel

PowerPermissionLevel CreativePowers.ASharedTogglePower.DefaultPermissionLevel
getset

Implements ICreativePower.

◆ PowerId

ushort CreativePowers.ASharedTogglePower.PowerId
getset

Implements ICreativePower.

◆ ServerConfigName

string CreativePowers.ASharedTogglePower.ServerConfigName
getset

Implements ICreativePower.