Karma Engine
Loading...
Searching...
No Matches
Package.h
1#pragma once
2
3#include "krpch.h"
4#include "Object.h"
5
6namespace Karma
7{
8 class KARMA_API UPackage : public UObject
9 {
10 DECLARE_KARMA_CLASS(UPackage, UObject)
11
12 public:
16 UPackage();
17
23 FORCEINLINE void SetPackageFlags(uint32_t NewFlags)
24 {
25 SetPackageFlagsTo(m_PackageFlagsPrivate | NewFlags);
26 }
27
28 FORCEINLINE void SetPackageFlagsTo(uint32_t NewFlags)
29 {
30 m_PackageFlagsPrivate = NewFlags;
31 }
32
37 {
38 SetPackageFlags(PKG_ContainsMap);
39 }
40
49 FORCEINLINE bool HasAnyPackageFlags(uint32_t FlagsToCheck) const
50 {
51 return (m_PackageFlagsPrivate & FlagsToCheck) != 0;
52 }
53
54 private:
56 uint32_t m_PackageFlagsPrivate;
57 };
58}
This file contains the class UObject along with helper functions.
The base class of all the game code relevant objects.
Definition Object.h:106
Definition Package.h:9
FORCEINLINE void SetPackageFlags(uint32_t NewFlags)
Definition Package.h:23
FORCEINLINE bool HasAnyPackageFlags(uint32_t FlagsToCheck) const
Definition Package.h:49
void ThisContainsMap()
Definition Package.h:36