Files
Project-Reboot-3.0/Project Reboot 3.0/NameTypes.h
Milxnor 5e92f2e90b abundant update
complete looting rewrite, improve combining pickups, add debug printing logs, fix some agids, fix cheat summon, fix issue with vehicle spawning.
2023-05-06 19:01:56 -04:00

37 lines
643 B
C++

#pragma once
#include "inc.h"
struct FNameEntryId
{
uint32 Value;
FNameEntryId() : Value(0) {}
FNameEntryId(uint32 value) : Value(value) {}
};
struct FName
{
FNameEntryId ComparisonIndex;
uint32 Number;
std::string ToString() const;
std::string ToString();
FName() : ComparisonIndex(0), Number(0) {}
FName(uint32 Value) : ComparisonIndex(Value), Number(0) {}
bool IsValid() { return ComparisonIndex.Value > 0; }
bool operator==(FName other)
{
return ComparisonIndex.Value == other.ComparisonIndex.Value;
}
bool operator<(FName Other) const
{
return this->ComparisonIndex.Value < Other.ComparisonIndex.Value;
}
};