Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 |
/** * LevelStreaming * * Abstract base class of container object encapsulating data required for streaming and providing * interface for when a level should be streamed in and out of memory. * * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. */ class LevelStreaming extends Object abstract editinlinenew native; /** Name of the level package name used for loading. */ var() editconst const name PackageName; /** Pointer to Level object if currently loaded/ streamed in. */ var transient const level LoadedLevel; /** Offset applied to actors after loading. */ var() const vector Offset; /** Current/ old offset required for changing the offset at runtime, e.g. in the Editor. */ var const vector OldOffset; /** Whether the level is currently visible/ associated with the world */ var const transient bool bIsVisible; /** Whether we currently have a load request pending. */ var const transient bool bHasLoadRequestPending; /** Whether we currently have an unload request pending. */ var const transient bool bHasUnloadRequestPending; /** Whether this level should be visible in the Editor */ var() const bool bShouldBeVisibleInEditor; /** Whether this level's bounding box should be visible in the Editor. */ var const bool bBoundingBoxVisible; /** Whether this level is locked; that is, its actors are read-only. */ var() const bool bLocked; /** Whether this level is fully static - if it is, then assumptions can be made about it, ie it doesn't need to be reloaded since nothing could have changed */ var() const bool bIsFullyStatic; /** Whether the level should be loaded */ var const transient bool bShouldBeLoaded; /** Whether the level should be visible if it is loaded */ var const transient bool bShouldBeVisible; /** Whether we want to force a blocking load */ var transient bool bShouldBlockOnLoad; /** The level's color; used to make the level easily identifiable in the level browser, for actor level visulization, etc. */ var() const color DrawColor; /** The level streaming volumes bound to this level. */ var() const editconst array<LevelStreamingVolume> EditorStreamingVolumes; /** If TRUE, will be drawn on the 'level streaming status' map (STAT LEVELMAP console command) */ var() bool bDrawOnLevelStatusMap; /** Cooldown time in seconds between volume-based unload requests. Used in preventing spurious unload requests. */ var() float MinTimeBetweenVolumeUnloadRequests; /** Time of last volume unload request. Used in preventing spurious unload requests. */ var const transient float LastVolumeUnloadRequestTime; /** Whether this level streaming object's level should be unloaded and the object be removed from the level list. */ var const transient bool bIsRequestingUnloadAndRemoval; /** List of keywords to filter on in the level browser */ var array<string> Keywords; /** The grid volume bound to this level, if any */ var() const editconst LevelGridVolume EditorGridVolume; /** Row, column and depth of this streaming level in a streaming grid network */ var() const editconst int GridPosition[ 3 ]; cpptext { /** * Returns whether this level should be present in memory which in turn tells the * streaming code to stream it in. Please note that a change in value from FALSE * to TRUE only tells the streaming code that it needs to START streaming it in * so the code needs to return TRUE an appropriate amount of time before it is * needed. * * @param ViewLocation Location of the viewer * @return TRUE if level should be loaded/ streamed in, FALSE otherwise */ virtual UBOOL ShouldBeLoaded( const FVector& ViewLocation ); /** * Returns whether this level should be visible/ associated with the world if it is * loaded. * * @param ViewLocation Location of the viewer * @return TRUE if the level should be visible, FALSE otherwise */ virtual UBOOL ShouldBeVisible( const FVector& ViewLocation ); /** Get a bounding box around the streaming volumes associated with this LevelStreaming object */ FBox GetStreamingVolumeBounds(); // UObject interface. virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent); } defaultproperties { bShouldBeVisibleInEditor=TRUE DrawColor=(R=255,G=255,B=255,A=255) MinTimeBetweenVolumeUnloadRequests=2.0 bDrawOnLevelStatusMap=TRUE } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |