Unreal SDK  v1.2.0
Loading...
Searching...
No Matches
WeArtTemperature.h
Go to the documentation of this file.
1#pragma once
2
3#include "CoreMinimal.h"
4#include "WeArtCommon.h"
6
10USTRUCT()
12 GENERATED_BODY()
13
14public:
16 UPROPERTY(EditAnywhere, Meta = (InlineEditConditionToggle))
17 bool active;
18
19 // The value 0.5 is room temperature. The value 0 is cold and value 1 is hot.
20 UPROPERTY(EditAnywhere, Meta = (DisplayName = "Value", EditCondition = "active", ClampMin = "0.0", ClampMax = "1.0"))
21 float value;
22
24 FWeArtTemperature() : active(false), value(WeArtConstants::defaultTemperature) {};
25
31 bool operator==(const FWeArtTemperature& other) const {
32 return (active == other.active && value == other.value);
33 };
34
40 bool operator!=(const FWeArtTemperature& other) const {
41 return (active != other.active || value != other.value);
42 };
43};
44
45
#define WEARTPLUGIN_API
Definition: Definitions.WEARTPlugin.h:292
Definition: WeArtCommon.h:179
Temperature value to be applied to an effect.
Definition: WeArtTemperature.h:11
bool operator!=(const FWeArtTemperature &other) const
Inequality operator for comparing two temperature objects.
Definition: WeArtTemperature.h:40
float value
Definition: WeArtTemperature.h:21
bool active
Definition: WeArtTemperature.h:17
bool operator==(const FWeArtTemperature &other) const
Equality operator for comparing two temperature objects.
Definition: WeArtTemperature.h:31