terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
BindingsExample.PlayerActions Class Reference
+ Inheritance diagram for BindingsExample.PlayerActions:
+ Collaboration diagram for BindingsExample.PlayerActions:

Public Member Functions

 PlayerActions ()
 
void Destroy ()
 
PlayerAction GetPlayerActionByName (string actionName)
 
void Reset ()
 
void ClearInputState ()
 
bool HasBinding (BindingSource binding)
 
void RemoveBinding (BindingSource binding)
 
byte[] SaveData ()
 
void LoadData (byte[] data)
 
string Save ()
 
void Load (string data)
 

Static Public Member Functions

static PlayerActions CreateWithDefaultBindings ()
 

Public Attributes

readonly PlayerAction Fire
 
readonly PlayerAction Jump
 
readonly PlayerAction Left
 
readonly PlayerAction Right
 
readonly PlayerAction Up
 
readonly PlayerAction Down
 
readonly PlayerTwoAxisAction Move
 
BindingSourceType LastInputType
 
ulong LastInputTypeChangedTick
 
InputDeviceClass LastDeviceClass
 
InputDeviceStyle LastDeviceStyle
 

Protected Member Functions

PlayerAction CreatePlayerAction (string name)
 
PlayerOneAxisAction CreateOneAxisPlayerAction (PlayerAction negativeAction, PlayerAction positiveAction)
 
PlayerTwoAxisAction CreateTwoAxisPlayerAction (PlayerAction negativeXAction, PlayerAction positiveXAction, PlayerAction negativeYAction, PlayerAction positiveYAction)
 

Package Functions

void AddPlayerAction (PlayerAction action)
 
void Update (ulong updateTick, float deltaTime)
 

Package Attributes

PlayerAction listenWithAction
 

Properties

InputDevice Device [get, set]
 
List< InputDevice > IncludeDevices [get, set, private set]
 
List< InputDevice > ExcludeDevices [get, set, private set]
 
ReadOnlyCollection< PlayerAction > Actions [get, set, private set]
 
ulong UpdateTick [get, set, protected set]
 
Action< BindingSourceType > OnLastInputTypeChanged [set]
 
bool Enabled [get, set]
 
bool PreventInputWhileListeningForBinding [get, set]
 
object UserData [get, set]
 
PlayerAction this[string actionName] [get, set]
 
bool IsListeningForBinding [get, set]
 
BindingListenOptions ListenOptions [get, set]
 
InputDevice ActiveDevice [get, set]
 

Private Member Functions

InputDevice FindActiveDevice ()
 

Private Attributes

InputDevice< Devicek__BackingField
 
List< InputDevice >< IncludeDevicesk__BackingField
 
List< InputDevice >< ExcludeDevicesk__BackingField
 
ReadOnlyCollection< PlayerAction >< Actionsk__BackingField
 
ulong< UpdateTickk__BackingField
 
bool< Enabledk__BackingField
 
bool< PreventInputWhileListeningForBindingk__BackingField
 
object< UserDatak__BackingField
 
List< PlayerAction > actions
 
List< PlayerOneAxisAction > oneAxisActions
 
List< PlayerTwoAxisAction > twoAxisActions
 
Dictionary< string, PlayerAction > actionsByName
 
BindingListenOptions listenOptions
 
InputDevice activeDevice
 

Static Private Attributes

const ushort currentDataFormatVersion = 2
 

Detailed Description

Definition at line 11 of file PlayerActions.cs.


The documentation for this class was generated from the following file: