Interface IDLCMetadata
- Namespace
- DLCToolkit
- Assembly
- DLCToolkit.dll
Access all metadata for a given DLC.
public interface IDLCMetadata
Properties
BuildTime
Get the time stamp for when the DLC was built. Can be used as a unique DLC identifier to use in multiplayer scenarios or similar where you need to ensure that the same DLC is used between clients and the name/version combo may not give enough distinction.
DateTime BuildTime { get; }
Property Value
ContentFlags
Access the content flags for this DLC content to determine which types of assets are included.
DLCContentFlags ContentFlags { get; }
Property Value
Description
The description for this DLC content.
string Description { get; }
Property Value
Developer
The developer name who created this DLC content.
string Developer { get; }
Property Value
Guid
The unique Guid for the DLC content assigned at creation.
string Guid { get; }
Property Value
NameInfo
Access the name info for the DLC content.
IDLCNameInfo NameInfo { get; }
Property Value
Publisher
The publisher name who published this DLC content.
string Publisher { get; }
Property Value
ToolkitVersion
The DLC toolkit version required to load this DLC.
Version ToolkitVersion { get; }
Property Value
UnityVersion
The Unity version string required to load this DLC.
string UnityVersion { get; }
Property Value
Methods
GetNetworkUniqueIdentifier(bool)
Returns a unique string identifier for this DLC including name and version information which may be used between networking clients to compare DLC content in use.
Can be used to determine if two network clients are using the same DLC (Or atleast have the same unique key and version) which will usually be a good enough indicator.
Be sure to enabled includeBuildStamp
if you want an explicit version match of DLC's (Exact same build) as it will serialize the build time stamp for when the DLC file was created and will almost certainly identify that the DLC is the exact same version and build.
Even if the unique key and version information match, there could be potential for the DLC's to be matched if the version was not updated correctly for example.
string GetNetworkUniqueIdentifier(bool includeBuildStamp)
Parameters
includeBuildStamp
boolShould the build time stamp be included in the unique string which will guarantee an explicit DLC match
Returns
- string
A short string identifier to uniquely identify this DLC content and can be shared between network clients to compare DLC's in use