Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
ActorComponent for running Mock Ability Simulation
| Name | UMockFlyingAbilityComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockAbilitySimulation.h |
| Include Path | #include "MockAbilitySimulation.h" |
Syntax
UCLASS (BlueprintType, Meta=(BlueprintSpawnableComponent))
class UMockFlyingAbilityComponent : public UFlyingMovementComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UNetworkPredictionComponent → UBaseMovementComponent → UFlyingMovementComponent → UMockFlyingAbilityComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMockFlyingAbilityComponent() |
MockAbilitySimulation.h |
Classes
| Name | Remarks |
|---|---|
| FMockAbilityBlinkCueEvent | Blueprint assignable events for blinking. THis allows the user/blueprint to implement rollback-able events. |
| FMockAbilityBlinkCueRollback | |
| FMockAbilityNotifyStateChange | Ability State and Notifications -This allows user code/blueprints to respond to state changes. |
| FMockAbilityPhysicsGunFireEvent |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FProduceMockAbilityInput | TBaseDelegate_TwoParams< void, const int32, FMockAbilityInputCmd & > | MockAbilitySimulation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnBlinkActivateEvent | FMockAbilityBlinkCueEvent | MockAbilitySimulation.h |
|
|
| OnBlinkActivateEventRollback | FMockAbilityBlinkCueRollback | MockAbilitySimulation.h |
|
|
| OnBlinkStateChange | FMockAbilityNotifyStateChange | Notifies when Blink Changes. | MockAbilitySimulation.h |
|
| OnDashStateChange | FMockAbilityNotifyStateChange | Notifies when Dash state changes. | MockAbilitySimulation.h |
|
| OnPhysicsGunFirEvent | FMockAbilityPhysicsGunFireEvent | MockAbilitySimulation.h |
|
|
| OnSprintStateChange | FMockAbilityNotifyStateChange | Notifies when Sprint state changes. | MockAbilitySimulation.h |
|
| ProduceInputDelegate | FProduceMockAbilityInput | MockAbilitySimulation.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsBlinking | bool | MockAbilitySimulation.h | ||
| bIsDashing | bool | MockAbilitySimulation.h | ||
| bIsSprinting | bool | Local cached values for detecting state changes from the sim in FinalizeFrame Its tempting to think FinalizeFrame could pass in the previous frames values but this could not be reliable if buffer sizes are small and network conditions etc - you may not always know what was the "last finalized frame" or even have it in the buffers anymore. | MockAbilitySimulation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void FinalizeFrame
(
const FMockAbilitySyncState* SyncState, |
MockAbilitySimulation.h | ||
float GetBlinkWarmupTimeSeconds() |
MockAbilitySimulation.h |
|
|
float GetMaxStamina() |
MockAbilitySimulation.h |
|
|
float GetStamina() |
MockAbilitySimulation.h |
|
|
void HandleCue
(
const FMockAbilityBlinkActivateCue& BlinkCue, |
NetSimCues. | MockAbilitySimulation.h | |
void HandleCue
(
const FMockAbilityBlinkCue& BlinkCue, |
MockAbilitySimulation.h | ||
void HandleCue
(
const FMockAbilityPhysicsGunFireCue& FireCue, |
MockAbilitySimulation.h | ||
virtual void InitializeSimulationState
(
FMockAbilitySyncState* SyncState, |
MockAbilitySimulation.h | ||
bool IsBlinking() |
Are we currently in the blinking (startup) state. | MockAbilitySimulation.h |
|
bool IsDashing() |
Are we currently in the dashing state. | MockAbilitySimulation.h |
|
bool IsSprinting() |
Are we currently in the sprinting state. | MockAbilitySimulation.h |
|
virtual void ProduceInput
(
const int32 SimTimeMS, |
MockAbilitySimulation.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitMockAbilitySimulation
(
FMockAbilitySimulation* Simulation |
MockAbilitySimulation.h |
Overridden from UNetworkPredictionComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeNetworkPredictionProxy() |
Network Prediction. | MockAbilitySimulation.h |