|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
The Field Notification system allows a user to know when a property value is modified at runtime (note that it can be a function return value). The class needs to implement the INotifyFieldValueChanged interface. The property' setter usually follows this pattern "if (new value != old value) assign the new value; broadcast that the value changed;". The Blueprint implementation handles that setter logic automatically with SetPropertyValueAndBroadcast. When a property value is modified by replication, the RepNotify will call BroadcastFieldValueChanged. A function can also be a Field Notify. The function needs to be const and return a single value. More...
Static Public Member Functions | |
Static Functions | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UBlueprintFunctionLibrary | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UObject | |
| static UClass | StaticClass () |
Additional Inherited Members | |
| Public Member Functions inherited from UObject | |
| bool | MarkPackageDirty () const |
| void | RemoveFromRoot () |
| bool | GetIsRooted () const |
| bool | IsTransient () const |
| bool | Modify (bool bAlwaysMarkDirty=true) |
| void | SetTransactional (bool bTransactional) |
| bool | IsSupportedForNetworking () const |
| UClass | GetClass () const |
| UObject | GetOuter () const |
| UObject | GetTypedOuter (TSubclassOf< UObject > Target) const |
| Traverses the outer chain searching for the next object of a certain type. | |
| UPackage | GetOutermost () const |
| UPackage | GetPackage () const |
| void | AddToRoot () |
| UWorld | GetWorld () const |
| FName | GetName () const |
| FString | GetFullName (const UObject StopOuter=nullptr) const |
| FString | GetPathName (const UObject StopOuter=nullptr) const |
| bool | IsA (const UClass Class) const |
| Returns true if this object is of the specified type, or a child of that type. | |
| void | SaveConfig () |
| void | LoadConfig () |
| void | ReloadConfig () |
| void | CopyScriptPropertiesFrom (const UObject OtherObject) |
| void | opCast (?&Address) const |
| FString | ToString () const |
| Public Attributes inherited from UObject | |
| const UClass | Class |
| const UObject | Outer |
| const UPackage | Outermost |
| const UPackage | Package |
| const UWorld | World |
| const FName | Name |
| const bool | IsRooted |
The Field Notification system allows a user to know when a property value is modified at runtime (note that it can be a function return value). The class needs to implement the INotifyFieldValueChanged interface. The property' setter usually follows this pattern "if (new value != old value) assign the new value; broadcast that the value changed;". The Blueprint implementation handles that setter logic automatically with SetPropertyValueAndBroadcast. When a property value is modified by replication, the RepNotify will call BroadcastFieldValueChanged. A function can also be a Field Notify. The function needs to be const and return a single value.
|
static |