tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower Class Referenceabstract

Inherits Terraria.GameContent.Creative.ICreativePower, and Terraria.GameContent.IOnPlayerJoining.

Inherited by Terraria.GameContent.Creative.CreativePowers.FarPlacementRangePower, and Terraria.GameContent.Creative.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 Terraria.GameContent.Creative.ICreativePower
PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 

Member Function Documentation

◆ DeserializeNetMessage()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

◆ GetIsUnlocked()

abstract bool Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.GetIsUnlocked ( )
pure virtual

◆ OnPlayerJoining()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.OnPlayerJoining ( int  playerIndex)

◆ ProvidePowerButtons()

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

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.CurrentPermissionLevel
getset

◆ DefaultPermissionLevel

PowerPermissionLevel Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.DefaultPermissionLevel
getset

◆ PowerId

ushort Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.PowerId
getset

◆ ServerConfigName

string Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.ServerConfigName
getset