mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
complete looting rewrite, improve combining pickups, add debug printing logs, fix some agids, fix cheat summon, fix issue with vehicle spawning.
37 lines
643 B
C++
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;
|
|
}
|
|
}; |