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

Inherits ICreativePower, and IOnPlayerJoining.

Inherited by CreativePowers.FarPlacementRangePower, and CreativePowers.GodmodePower.

Public Member Functions

void DebugCall ()
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
abstract bool GetIsUnlocked ()
 
bool IsEnabledForPlayer (int playerIndex)
 
void OnPlayerJoining (int playerIndex)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void Reset ()
 
void SetEnabledState (int playerIndex, bool state)
 
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]
 
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.APerPlayerTogglePower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

Implements ICreativePower.

◆ GetIsUnlocked()

abstract bool CreativePowers.APerPlayerTogglePower.GetIsUnlocked ( )
pure virtual

Implements ICreativePower.

◆ OnPlayerJoining()

void CreativePowers.APerPlayerTogglePower.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ ProvidePowerButtons()

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

Implements ICreativePower.

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel CreativePowers.APerPlayerTogglePower.CurrentPermissionLevel
getset

Implements ICreativePower.

◆ DefaultPermissionLevel

PowerPermissionLevel CreativePowers.APerPlayerTogglePower.DefaultPermissionLevel
getset

Implements ICreativePower.

◆ PowerId

ushort CreativePowers.APerPlayerTogglePower.PowerId
getset

Implements ICreativePower.

◆ ServerConfigName

string CreativePowers.APerPlayerTogglePower.ServerConfigName
getset

Implements ICreativePower.