mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
a bit
start work on vending machines, fix some playlist specific things, fixed a bug with <s5 playlist looting,
This commit is contained in:
@@ -42,6 +42,20 @@ struct FFortItemEntry : FFastArraySerializerItem
|
||||
static auto StructSize = GetStruct()->GetPropertiesSize();
|
||||
return StructSize;
|
||||
}
|
||||
|
||||
static FFortItemEntry* MakeItemEntry(UFortItemDefinition* ItemDefinition, int Count = 1, int LoadedAmmo = 0)
|
||||
{
|
||||
auto Entry = Alloc<FFortItemEntry>(GetStructSize());
|
||||
|
||||
if (!Entry)
|
||||
return nullptr;
|
||||
|
||||
Entry->GetItemDefinition() = ItemDefinition;
|
||||
Entry->GetCount() = Count;
|
||||
Entry->GetLoadedAmmo() = LoadedAmmo;
|
||||
|
||||
return Entry;
|
||||
}
|
||||
};
|
||||
|
||||
class UFortItem : public UObject
|
||||
|
||||
Reference in New Issue
Block a user