Nebula
Loading...
Searching...
No Matches
Nebula.HotReloadManager Class Referencesealed

Classes

class  ReloadRequest
class  RetiredContext

Public Member Functions

void Load (string path)
void RequestReload (string path, bool force=false)
void RequestReload (bool force)
void ProcessPendingReload ()
void Unload ()

Private Member Functions

void Reload (string sourcePath)
string Stage (string sourcePath)
bool HasChanged (string path)
void RememberBuild (string path)
void CollectUnloadedContexts ()
void TrackUnloadedContext (WeakReference reference)

Static Private Member Functions

static void DeleteStagingDirectory (string path)
static bool ShouldStage (string path)

Private Attributes

GamePluginContext gamePlugin
string pluginPath
int generation
readonly object requestLock = new object()
ReloadRequest pendingRequest
DateTime loadedWriteTime
long loadedLength
string loadedStagingDirectory
readonly List< RetiredContext > unloadedContexts = []

Member Function Documentation

◆ CollectUnloadedContexts()

void Nebula.HotReloadManager.CollectUnloadedContexts ( )
inlineprivate

◆ DeleteStagingDirectory()

void Nebula.HotReloadManager.DeleteStagingDirectory ( string path)
inlinestaticprivate

◆ HasChanged()

bool Nebula.HotReloadManager.HasChanged ( string path)
inlineprivate

◆ Load()

void Nebula.HotReloadManager.Load ( string path)
inline

◆ ProcessPendingReload()

void Nebula.HotReloadManager.ProcessPendingReload ( )
inline

◆ Reload()

void Nebula.HotReloadManager.Reload ( string sourcePath)
inlineprivate

◆ RememberBuild()

void Nebula.HotReloadManager.RememberBuild ( string path)
inlineprivate

◆ RequestReload() [1/2]

void Nebula.HotReloadManager.RequestReload ( bool force)
inline

◆ RequestReload() [2/2]

void Nebula.HotReloadManager.RequestReload ( string path,
bool force = false )
inline

◆ ShouldStage()

bool Nebula.HotReloadManager.ShouldStage ( string path)
inlinestaticprivate

◆ Stage()

string Nebula.HotReloadManager.Stage ( string sourcePath)
inlineprivate

◆ TrackUnloadedContext()

void Nebula.HotReloadManager.TrackUnloadedContext ( WeakReference reference)
inlineprivate

◆ Unload()

void Nebula.HotReloadManager.Unload ( )
inline

Member Data Documentation

◆ gamePlugin

GamePluginContext Nebula.HotReloadManager.gamePlugin
private

◆ generation

int Nebula.HotReloadManager.generation
private

◆ loadedLength

long Nebula.HotReloadManager.loadedLength
private

◆ loadedStagingDirectory

string Nebula.HotReloadManager.loadedStagingDirectory
private

◆ loadedWriteTime

DateTime Nebula.HotReloadManager.loadedWriteTime
private

◆ pendingRequest

ReloadRequest Nebula.HotReloadManager.pendingRequest
private

◆ pluginPath

string Nebula.HotReloadManager.pluginPath
private

◆ requestLock

readonly object Nebula.HotReloadManager.requestLock = new object()
private

◆ unloadedContexts

readonly List<RetiredContext> Nebula.HotReloadManager.unloadedContexts = []
private

The documentation for this class was generated from the following file: