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
InControl.PlayerAction Class Reference
+ Inheritance diagram for InControl.PlayerAction:
+ Collaboration diagram for InControl.PlayerAction:

Public Member Functions

 PlayerAction (string name, PlayerActionSet owner)
 
void AddDefaultBinding (BindingSource binding)
 
void AddDefaultBinding (params Key[] keys)
 
void AddDefaultBinding (KeyCombo keyCombo)
 
void AddDefaultBinding (Mouse control)
 
void AddDefaultBinding (InputControlType control)
 
bool AddBinding (BindingSource binding)
 
bool InsertBindingAt (int index, BindingSource binding)
 
bool ReplaceBinding (BindingSource findBinding, BindingSource withBinding)
 
bool HasBinding (BindingSource binding)
 
BindingSource FindBinding (BindingSource binding)
 
void RemoveBinding (BindingSource binding)
 
void RemoveBindingAt (int index)
 
void ClearBindings ()
 
void ResetBindings ()
 
void ListenForBinding ()
 
void ListenForBindingReplacing (BindingSource binding)
 
void StopListeningForBinding ()
 
bool UpdateWithState (bool state, ulong updateTick, float deltaTime)
 
bool UpdateWithValue (float value, ulong updateTick, float deltaTime)
 
void ClearInputState ()
 
void Commit ()
 
void CommitWithState (bool state, ulong updateTick, float deltaTime)
 
void CommitWithValue (float value, ulong updateTick, float deltaTime)
 

Static Public Member Functions

static implicit operator bool (OneAxisInputControl instance)
 
static implicit operator float (OneAxisInputControl instance)
 

Public Attributes

BindingListenOptions ListenOptions
 
BindingSourceType LastInputType
 
ulong LastInputTypeChangedTick
 
InputDeviceClass LastDeviceClass
 
InputDeviceStyle LastDeviceStyle
 
float FirstRepeatDelay
 
float RepeatDelay
 
bool Raw
 

Protected Attributes

bool isNullControl
 
bool ownerEnabled
 

Package Functions

void Update (ulong updateTick, float deltaTime, InputDevice device)
 
void Load (BinaryReader reader, ushort dataFormatVersion)
 
void Save (BinaryWriter writer)
 
bool UpdateWithRawValue (float value, ulong updateTick, float deltaTime)
 
void SetValue (float value, ulong updateTick)
 
void CommitWithSides (InputControl negativeSide, InputControl positiveSide, ulong updateTick, float deltaTime)
 

Properties

string Name [get, set, private set]
 
PlayerActionSet Owner [get, set, private set]
 
Action< BindingSourceTypeOnLastInputTypeChanged [set]
 
Action OnBindingsChanged [set]
 
object UserData [get, set]
 
bool IsListeningForBinding [get, set]
 
ReadOnlyCollection< BindingSourceBindings [get, set]
 
ReadOnlyCollection< BindingSourceUnfilteredBindings [get, set]
 
InputDevice Device [get, set]
 
InputDevice ActiveDevice [get, set]
 
bool LastInputTypeIsDevice [get, set]
 
new float LowerDeadZone [get, set]
 
new float UpperDeadZone [get, set]
 
ulong UpdateTick [get, set, protected set]
 
bool State [get, set]
 
bool LastState [get, set]
 
float Value [get, set]
 
float LastValue [get, set]
 
float RawValue [get, set]
 
float NextRawValue [get, set]
 
bool HasInput [get, set]
 
bool HasChanged [get, set]
 
bool IsPressed [get, set]
 
bool WasPressed [get, set]
 
bool WasReleased [get, set]
 
bool WasRepeated [get, set]
 
float Sensitivity [get, set]
 
float StateThreshold [get, set]
 
bool IsNullControl [get, set]
 
bool Enabled [get, set]
 
bool EnabledInHierarchy [get, set]
 

Private Member Functions

void HardRemoveBinding (BindingSource binding)
 
int CountBindingsOfType (BindingSourceType bindingSourceType)
 
void RemoveFirstBindingOfType (BindingSourceType bindingSourceType)
 
int IndexOfFirstInvalidBinding ()
 
void RemoveOrphanedBindings ()
 
void UpdateBindings (ulong updateTick, float deltaTime)
 
void DetectBindings ()
 
void UpdateVisibleBindings ()
 
void PrepareForUpdate (ulong updateTick)
 

Private Attributes

string< Namek__BackingField
 
PlayerActionSet< Ownerk__BackingField
 
object< UserDatak__BackingField
 
readonly List< BindingSourcedefaultBindings
 
readonly List< BindingSourceregularBindings
 
readonly List< BindingSourcevisibleBindings
 
readonly ReadOnlyCollection< BindingSourcebindings
 
readonly ReadOnlyCollection< BindingSourceunfilteredBindings
 
readonly BindingSourceListener[] bindingSourceListeners
 
bool triggerBindingEnded
 
bool triggerBindingChanged
 
InputDevice device
 
InputDevice activeDevice
 
float sensitivity
 
float lowerDeadZone
 
float upperDeadZone
 
float stateThreshold
 
bool enabled
 
ulong pendingTick
 
bool pendingCommit
 
float nextRepeatTime
 
bool wasRepeated
 
bool clearInputState
 
InputControlState lastState
 
InputControlState nextState
 
InputControlState thisState
 

Detailed Description

Definition at line 13 of file PlayerAction.cs.


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