M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.ResourceDepot Class Reference

Public Member Functions

 ResourceDepot ()
 
void AddLocation (string basePath, string location)
 
void CollectResources ()
 
string[] GetFiles (string subDirectory, string extension, bool excludeSubContents=false)
 Returns all files under subDirectory, with extension. if exludeSubContents = true will only return files in subDirectory.
 
string GetFilePath (string file)
 
IEnumerable< string > GetFilesEndingWith (string fileEndName)
 Returns full paths of all files' names ending with fileEndName.
 
void StartWatchingChangesInDepot ()
 
void StopWatchingChangesInDepot ()
 
void CheckForChanges ()
 

Properties

MBReadOnlyList< ResourceDepotLocationResourceLocations [get]
 

Events

ResourceChangeEvent OnResourceChange
 

Constructor & Destructor Documentation

◆ ResourceDepot()

TaleWorlds.Library.ResourceDepot.ResourceDepot ( )

Member Function Documentation

◆ AddLocation()

void TaleWorlds.Library.ResourceDepot.AddLocation ( string basePath,
string location )

◆ CollectResources()

void TaleWorlds.Library.ResourceDepot.CollectResources ( )

◆ GetFiles()

string[] TaleWorlds.Library.ResourceDepot.GetFiles ( string subDirectory,
string extension,
bool excludeSubContents = false )

◆ GetFilePath()

string TaleWorlds.Library.ResourceDepot.GetFilePath ( string file)

◆ GetFilesEndingWith()

IEnumerable< string > TaleWorlds.Library.ResourceDepot.GetFilesEndingWith ( string fileEndName)

◆ StartWatchingChangesInDepot()

void TaleWorlds.Library.ResourceDepot.StartWatchingChangesInDepot ( )

◆ StopWatchingChangesInDepot()

void TaleWorlds.Library.ResourceDepot.StopWatchingChangesInDepot ( )

◆ CheckForChanges()

void TaleWorlds.Library.ResourceDepot.CheckForChanges ( )

Property Documentation

◆ ResourceLocations

MBReadOnlyList<ResourceDepotLocation> TaleWorlds.Library.ResourceDepot.ResourceLocations
get

Event Documentation

◆ OnResourceChange

ResourceChangeEvent TaleWorlds.Library.ResourceDepot.OnResourceChange