tModLoader v2024.05
A mod to make and play Terraria mods
CreativePowers.GodmodePower Class Reference

Inherits CreativePowers.APerPlayerTogglePower, and IPersistentPerPlayerContent.

Public Member Functions

void ApplyLoadedDataToOutOfPlayerFields (Player player)
 
override bool GetIsUnlocked ()
 
void Load (Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void ResetDataForNewPlayer (Player player)
 
void Save (Player player, BinaryWriter writer)
 
- Public Member Functions inherited from CreativePowers.APerPlayerTogglePower
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)
 
- 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)
 

Additional Inherited Members

- Properties inherited from CreativePowers.APerPlayerTogglePower
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.GodmodePower.ApplyLoadedDataToOutOfPlayerFields ( Player  player)

◆ GetIsUnlocked()

override bool CreativePowers.GodmodePower.GetIsUnlocked ( )
virtual

◆ Load()

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

◆ ResetDataForNewPlayer()

void CreativePowers.GodmodePower.ResetDataForNewPlayer ( Player  player)

◆ Save()

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