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

#include <Change.h>

+ Inheritance diagram for FSwapChange:
+ Collaboration diagram for FSwapChange:

Public Member Functions

virtual EChangeStyle GetChangeType () final
 
virtual void Apply (UObject *Object) final
 
virtual void Revert (UObject *Object) final
 
- Public Member Functions inherited from FChange
virtual TUniquePtr< FChangeExecute (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 FSwapChange you must implement Execute(). This function must do two things: 1) apply the change to the given UObject 2) return a new FSwapChange that does the "opposite" action

Definition at line 92 of file Change.h.

Member Function Documentation

◆ Apply()

virtual void FSwapChange::Apply ( UObject * Object)
inlinefinalvirtual

Makes the change to the object

Implements FChange.

Definition at line 102 of file Change.h.

◆ GetChangeType()

virtual EChangeStyle FSwapChange::GetChangeType ( )
inlinefinalvirtual

What style of change is this

Implements FChange.

Definition at line 96 of file Change.h.

◆ Revert()

virtual void FSwapChange::Revert ( UObject * Object)
inlinefinalvirtual

Reverts change to the object

Implements FChange.

Definition at line 108 of file Change.h.


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