|
KarmaEngine
Game Engine for practical learning and research purposes
|
A Level is a collection of Actors (lights, volumes, mesh instances etc.). Multiple Levels can be loaded and unloaded into the World to create a streaming experience. More...
#include <Level.h>


Public Member Functions | |
| void | Initialize (const FURL &InURL) |
| Initializes the Level appropriately. | |
| void | SetWorldSettings (AWorldSettings *NewWorldSettings) |
| Set level's world settings. | |
| virtual UWorld * | GetWorld () const override final |
| Override for UObject's GetWorld. | |
Public Member Functions inherited from Karma::UObject | |
| UObject () | |
| virtual void | FinishDestroy () |
| virtual const std::string & | GetDesc () |
| Return a one line description of an object for viewing in the thumbnail view of the generic browser. | |
| bool | IsValidChecked (const UObject *Test) |
| virtual void | BeginDestroy () |
| Called before destroying the object. This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process. | |
| FORCEINLINE bool | Modify (bool bAlwaysMarkDirty=true) |
| bool | IsSelected () const |
| Test the selection state of a UObject. | |
Public Member Functions inherited from Karma::UObjectBase | |
| UObjectBase (UClass *inClass, EObjectFlags inFlags, EInternalObjectFlags inInternalFlags, UObject *inOuter, const std::string &inName) | |
| UPackage * | GetPackage () const |
| UPackage * | GetExternalPackage () const |
| bool | IsUnreachable () const |
| FORCEINLINE void | SetInternalIndex (uint32_t StoreIndex) |
| FORCEINLINE uint32_t | GetInternalIndex () const |
| void | MarkAsGarbage () |
| void | ClearGarbage () |
| FORCEINLINE const std::string & | GetName () const |
| FORCEINLINE void | SetObjectName (const std::string &aName) |
| FORCEINLINE UObject * | GetOuter () const |
| UObject * | GetTypedOuter (UClass *Target) const |
| template<typename T> | |
| T * | GetTypedOuter () const |
| bool | IsValidLowLevel () const |
| template<typename OtherClassType> | |
| FORCEINLINE bool | IsA (OtherClassType SomeBase) const |
| FORCEINLINE UClass * | GetClass () const |
| FORCEINLINE EObjectFlags | GetFlags () const |
| FORCEINLINE void | SetFlags (EObjectFlags NewFlags) |
| FORCEINLINE void | ClearFlags (EObjectFlags FlagsToClear) |
| FORCEINLINE bool | HasAnyFlags (EObjectFlags FlagsToCheck) const |
| FORCEINLINE bool | HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const |
| FORCEINLINE void | SetInternalFlags (EInternalObjectFlags FlagsToSet) const |
| FORCEINLINE void | AddToRoot () |
Public Attributes | |
| FURL | m_URL |
| KarmaVector< AActor * > | m_Actors |
| std::vector< AActor * > | m_ActorsForGC |
| UWorld * | m_OwningWorld |
| The World that has this level in its Levels array. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Karma::UObject | |
| static const char * | StaticConfigName () |
Static Public Member Functions inherited from Karma::UObjectBase | |
| static FORCEINLINE EInternalObjectFlags | FixGarbageOrPendingKillInternalObjectFlags (const EInternalObjectFlags InFlags) |
Protected Member Functions inherited from Karma::UObjectBase | |
| UObjectBase () | |
| Providing a default constructor. | |
| FORCEINLINE void | SetFlagsTo (EObjectFlags NewFlags) |
A Level is a collection of Actors (lights, volumes, mesh instances etc.). Multiple Levels can be loaded and unloaded into the World to create a streaming experience.
|
finaloverridevirtual |
Override for UObject's GetWorld.
Reimplemented from Karma::UObject.
| void Karma::ULevel::Initialize | ( | const FURL & | InURL | ) |
Initializes the Level appropriately.
| InURL | The Karma's URL with which initialization may happen |
| void Karma::ULevel::SetWorldSettings | ( | AWorldSettings * | NewWorldSettings | ) |
| KarmaVector<AActor*> Karma::ULevel::m_Actors |
Array of all actors in this level, used by FActorIteratorBase and derived classes
| std::vector<AActor*> Karma::ULevel::m_ActorsForGC |
Array of actors to be exposed to GC in this level. All other actors will be referenced through ULevelActorContainer
| UWorld* Karma::ULevel::m_OwningWorld |
The World that has this level in its Levels array.
This is not the same as GetOuter(), because GetOuter() for a streaming level is a vestigial world that is not used. It should not be accessed during BeginDestroy(), just like any other UObject references, since GC may occur in any order.
| FURL Karma::ULevel::m_URL |
URL associated with this level.