Struct SunVoxVersion
- Namespace
- SunSharp
- Assembly
- SunSharp.dll
Represents the version of the SunVox library.
public readonly struct SunVoxVersion
Constructors
SunVoxVersion(byte, byte, byte, byte)
public SunVoxVersion(byte major, byte minor, byte minor2, byte bugfix)
Parameters
majorbyteminorbyteminor2bytebugfixbyte
Properties
Bugfix
public byte Bugfix { get; }
Property Value
- byte
Major
public byte Major { get; }
Property Value
- byte
Minor
public byte Minor { get; }
Property Value
- byte
Minor2
public byte Minor2 { get; }
Property Value
- byte
Methods
Equals(SunVoxVersion)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SunVoxVersion other)
Parameters
otherSunVoxVersionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
FromLibraryVersion(int)
public static SunVoxVersion FromLibraryVersion(int code)
Parameters
codeint
Returns
FromProjectBaseVersion(int)
public static SunVoxVersion FromProjectBaseVersion(int code)
Parameters
codeint
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(SunVoxVersion, SunVoxVersion)
public static bool operator ==(SunVoxVersion left, SunVoxVersion right)
Parameters
leftSunVoxVersionrightSunVoxVersion
Returns
- bool
operator !=(SunVoxVersion, SunVoxVersion)
public static bool operator !=(SunVoxVersion left, SunVoxVersion right)
Parameters
leftSunVoxVersionrightSunVoxVersion
Returns
- bool