M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Resource Class Referenceabstract

Inherits NativeObject.

Inherited by TaleWorlds.Engine.Material, TaleWorlds.Engine.Mesh, TaleWorlds.Engine.PhysicsShape, TaleWorlds.Engine.Shader, and TaleWorlds.Engine.Texture.

Protected Member Functions

 Resource ()
 
void CheckResourceParameter (Resource param, string paramName="")
 Check if the parameter 'param' is null or invalid and throws an exception containing 'paramName' as further information.
 

Properties

bool IsValid [get]
 

Constructor & Destructor Documentation

◆ Resource()

TaleWorlds.Engine.Resource.Resource ( )
protected

Member Function Documentation

◆ CheckResourceParameter()

void TaleWorlds.Engine.Resource.CheckResourceParameter ( Resource param,
string paramName = "" )
protected
Parameters
paramThe parameter to check
paramNameThe string to be included in the exception message if check fails
Exceptions
MBNullParameterExceptionIf 'param' is null, MBNullParameterException is thrown
MBInvalidParameterExceptionIf 'param' is invalid, MBInvalidParameterException is thrown

Property Documentation

◆ IsValid

bool TaleWorlds.Engine.Resource.IsValid
get