Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FCommandChange Class Reference

#include <Change.h>

+ Inheritance diagram for FCommandChange:
+ Collaboration diagram for FCommandChange:

Public Member Functions

virtual EChangeStyle GetChangeType () final
 
virtual TUniquePtr< FChangeExecute (UObject *Object) final
 
- Public Member Functions inherited from FChange
virtual void Apply (UObject *Object)=0
 
virtual void Revert (UObject *Object)=0
 
virtual bool HasExpired (UObject *Object) const
 
virtual void AddReferencedObjects (FReferenceCollector &Collector)
 
virtual FString ToString () const =0
 
virtual void PrintToLog (FFeedbackContext &FeedbackContext, const int32 IndentLevel=0)
 
virtual ~FChange ()
 

Additional Inherited Members

- Public Types inherited from FChange
enum class  EChangeStyle { InPlaceSwap , CommandPattern }
 
- Protected Member Functions inherited from FChange
 FChange ()
 

Detailed Description

To use FCommandChange you must implement Apply() and Revert() Revert() is called to "Undo" and Apply() is called to "Redo"

Definition at line 120 of file Change.h.

Member Function Documentation

◆ Execute()

virtual TUniquePtr< FChange > FCommandChange::Execute ( UObject * Object)
inlinefinalvirtual

Makes the change to the object, returning a new change that can be used to perfectly roll back this change

Implements FChange.

Definition at line 129 of file Change.h.

◆ GetChangeType()

virtual EChangeStyle FCommandChange::GetChangeType ( )
inlinefinalvirtual

What style of change is this

Implements FChange.

Definition at line 124 of file Change.h.


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