Skip to content

Commit 3d0c561

Browse files
committed
rename PropertyTag > FPropertyTag
1 parent 8485435 commit 3d0c561

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

libsave/include/SatisfactorySave/GameTypes/Arrays/StructArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ namespace SatisfactorySave {
4242

4343
protected:
4444
FPropertyTypeName type_param_;
45-
PropertyTag inner_tag_;
45+
FPropertyTag inner_tag_;
4646
};
4747
} // namespace SatisfactorySave

libsave/include/SatisfactorySave/GameTypes/Properties/Base/Property.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace SatisfactorySave {
1717

1818
explicit Property(FName type);
1919
Property(FName type, FName name);
20-
explicit Property(PropertyTag tag);
20+
explicit Property(FPropertyTag tag);
2121
virtual ~Property() = default;
2222
Property(const Property&) = default;
2323
Property& operator=(const Property&) = default;
@@ -51,7 +51,7 @@ namespace SatisfactorySave {
5151
}
5252

5353
protected:
54-
PropertyTag tag_;
54+
FPropertyTag tag_;
5555

5656
friend class PropertyList;
5757
};

libsave/include/SatisfactorySave/GameTypes/Properties/Base/PropertyImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace SatisfactorySave {
1616
PropertyImplBase(FName name, T value)
1717
: Property(FName(std::string(Impl::TypeName)), std::move(name)),
1818
Value(std::move(value)) {}
19-
explicit PropertyImplBase(PropertyTag tag) : Property(std::move(tag)) {}
19+
explicit PropertyImplBase(FPropertyTag tag) : Property(std::move(tag)) {}
2020

2121
PropertyImplBase(const PropertyImplBase&) = default;
2222
PropertyImplBase& operator=(const PropertyImplBase&) = default;

libsave/include/SatisfactorySave/GameTypes/Properties/BoolProperty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace SatisfactorySave {
1515
BoolProperty(FName name, bool value) : Property(FName(std::string(TypeName)), std::move(name)) {
1616
setValue(value);
1717
}
18-
explicit BoolProperty(PropertyTag tag) : Property(std::move(tag)) {}
18+
explicit BoolProperty(FPropertyTag tag) : Property(std::move(tag)) {}
1919

2020
[[nodiscard]] std::shared_ptr<Property> clone() const override;
2121

libsave/include/SatisfactorySave/GameTypes/Properties/MapProperty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace SatisfactorySave {
1414
MapProperty() : Property(FName(std::string(TypeName))) {}
1515
explicit MapProperty(FName name) : Property(FName(std::string(TypeName)), std::move(name)) {}
1616
MapProperty(FName name, std::shared_ptr<MapTypeList> keys, std::shared_ptr<MapTypeList> values);
17-
explicit MapProperty(PropertyTag tag) : Property(std::move(tag)) {}
17+
explicit MapProperty(FPropertyTag tag) : Property(std::move(tag)) {}
1818
MapProperty(const MapProperty& other);
1919
MapProperty& operator=(const MapProperty& other);
2020
MapProperty(MapProperty&&) = default;

libsave/include/SatisfactorySave/GameTypes/UE/CoreUObject/UObject/PropertyTag.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace SatisfactorySave {
1717
BinaryOrNative,
1818
};
1919

20-
struct SATISFACTORYSAVE_API PropertyTag {
20+
struct SATISFACTORYSAVE_API FPropertyTag {
2121
FPropertyTypeName_Data TypeName;
2222
FName Name;
2323
FName Type;
@@ -34,7 +34,7 @@ namespace SatisfactorySave {
3434
EPropertyTagSerializeType SerializeType = EPropertyTagSerializeType::Unknown;
3535
std::size_t SizeOffset = static_cast<std::size_t>(-1);
3636

37-
PropertyTag() = default;
37+
FPropertyTag() = default;
3838

3939
void serialize(Archive& ar);
4040

libsave/src/GameTypes/Properties/Base/Property.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "GameTypes/Properties/Base/PropertyAll.h"
88

99
std::shared_ptr<SatisfactorySave::Property> SatisfactorySave::Property::create(IStreamArchive& ar) {
10-
PropertyTag tag;
10+
FPropertyTag tag;
1111
ar << tag;
1212

1313
if (tag.Name == "None") {
@@ -70,7 +70,7 @@ std::shared_ptr<SatisfactorySave::Property> SatisfactorySave::Property::create(I
7070
recursion_depth--;
7171
} catch (const std::exception& ex) {
7272
recursion_depth--;
73-
PropertyTag tagCopy = property->tag_;
73+
FPropertyTag tagCopy = property->tag_;
7474
spdlog::error("Error parsing property {} (Type: {}, Class: {}) in recursion depth {}: {}",
7575
tagCopy.Name.toString(), tagCopy.Type.toString(), ar.getParentClassInfo(), recursion_depth, ex.what());
7676

@@ -104,4 +104,4 @@ SatisfactorySave::Property::Property(FName type, FName name) {
104104
tag_.Name = std::move(name);
105105
}
106106

107-
SatisfactorySave::Property::Property(PropertyTag tag) : tag_(std::move(tag)) {}
107+
SatisfactorySave::Property::Property(FPropertyTag tag) : tag_(std::move(tag)) {}

libsave/src/GameTypes/UE/CoreUObject/UObject/PropertyTag.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enum class EPropertyTagFlags : uint8_t {
1010
SkippedSerialize = 0x20,
1111
};
1212

13-
void SatisfactorySave::PropertyTag::serialize(Archive& ar) {
13+
void SatisfactorySave::FPropertyTag::serialize(Archive& ar) {
1414
ar << Name;
1515
if (Name == "None") {
1616
return;
@@ -70,7 +70,7 @@ void SatisfactorySave::PropertyTag::serialize(Archive& ar) {
7070
}
7171

7272
if (PropertyTagFlags & 0x04) {
73-
throw std::runtime_error("PropertyTag: PropertyExtensions not implemented!");
73+
throw std::runtime_error("FPropertyTag: PropertyExtensions not implemented!");
7474
}
7575
} else {
7676
ar << Type;
@@ -103,15 +103,15 @@ void SatisfactorySave::PropertyTag::serialize(Archive& ar) {
103103
}
104104
}
105105

106-
void SatisfactorySave::PropertyTag::SetType() {
106+
void SatisfactorySave::FPropertyTag::SetType() {
107107
Type = TypeName.GetName();
108108

109109
if (Type.Number == /*NAME_NO_NUMBER_INTERNAL*/ 0) {
110110
if (Type.Name == "StructProperty") {
111111
StructName = TypeName.GetParameterName(0);
112112
FName StructGuidName = TypeName.GetParameterName(1);
113113
if (StructGuidName != "None") {
114-
throw std::runtime_error("PropertyTag: Parsing StructGuidName not implemented!");
114+
throw std::runtime_error("FPropertyTag: Parsing StructGuidName not implemented!");
115115
}
116116
} else if (Type.Name == "ByteProperty" || Type.Name == "EnumProperty") {
117117
EnumName = TypeName.GetParameterName(0);

0 commit comments

Comments
 (0)