tModLoader v2024.11
A mod to make and play Terraria mods
CreativePowers.FarPlacementRangePower 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.FarPlacementRangePower.ApplyLoadedDataToOutOfPlayerFields ( Player  player)

◆ GetIsUnlocked()

override bool CreativePowers.FarPlacementRangePower.GetIsUnlocked ( )
virtual

◆ Load()

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

◆ ResetDataForNewPlayer()

void CreativePowers.FarPlacementRangePower.ResetDataForNewPlayer ( Player  player)

◆ Save()

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