ModIdentifier Class |
Namespace: UMod.Shared
[SerializableAttribute] public class ModIdentifier : IEquatable<ModIdentifier>
The ModIdentifier type exposes the following members.
Name | Description | |
---|---|---|
ModIdentifier |
Create a new mod identifier.
| |
ModIdentifier(Byte) |
Create a new mod identifier from the specified byte array.
| |
ModIdentifier(String) |
Create a new mod identifier from the specified friendly string.
|
Name | Description | |
---|---|---|
FriendlyIdentifier |
Get the friendly string representation of the hash code.
Mainly used for displaying the hash code in debug scenarios.
|
Name | Description | |
---|---|---|
Equals(Object) |
Override equals method.
(Overrides ObjectEquals(Object).) | |
Equals(ModIdentifier) |
Custom equals method.
| |
GeneratePotentiallyUnique |
Attempts to generate a unique identifier that has a very high chance of being unique.
| |
GetHashCode |
Override method.
(Overrides ObjectGetHashCode.) | |
ToString |
Override method.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Equality |
Override equals operator.
| |
(Byte to ModIdentifier) |
Implicit conversion of 'byte[]' to ModIdentifier.
| |
(ModIdentifier to Byte) |
Get the specified ModIdentifier as a byte array.
The lenght of the array will always be equal to identifierLength.
| |
Inequality |
Override not-equal operator.
|
Name | Description | |
---|---|---|
friendlyIdentifier |
The friendly string code for this identifier.
| |
identifier |
The raw 8-byte hash code for this identifier.
| |
identifierLength |
Get the number of bytes that makes up the identifier hash code.
|