Struct ILogger
This type represents a pointer to an unmanaged open.mp ILogger interface.
[OpenMpApi(new Type[] { })]
public readonly struct ILogger : IEquatable<ILogger>, ILogger.IManagedInterface, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
ILogger(nint)
Initializes a new instance of the ILogger struct.
public ILogger(nint handle)
Parameters
handlenintA pointer to the unmanaged interface.
Properties
Handle
Gets the handle to the unmanaged interface instance.
public nint Handle { get; }
Property Value
HasValue
Gets a value indicating whether the pointer has a value.
public bool HasValue { get; }
Property Value
Methods
Equals(ILogger)
public bool Equals(ILogger other)
Parameters
otherILogger
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
LogLine(LogLevel, string)
Logs a new line to the console with the specified severity level.
public void LogLine(LogLevel level, string msg)
Parameters
LogLn(LogLevel, byte*)
Prints a new line to the console with the specified severity level.
public void LogLn(LogLevel level, byte* msg)
Parameters
LogLnU8(LogLevel, byte*)
Prints a new line to the console of the specified log type in UTF-8 encoding.
public void LogLnU8(LogLevel level, byte* msg)
Parameters
PrintLine(string)
Prints a new line to the console.
public void PrintLine(string msg)
Parameters
msgstringThe message to log.
PrintLn(byte*)
Prints a new line to the console.
public void PrintLn(byte* msg)
Parameters
msgbyte*The message to log.
PrintLnU8(byte*)
Prints a new line to the console in UTF-8 encoding.
public void PrintLnU8(byte* msg)
Parameters
msgbyte*The message to log.
Operators
operator ==(ILogger, object?)
Determines whether the specified values are equal.
public static bool operator ==(ILogger lhs, object? rhs)
Parameters
lhsILoggerThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are equal; otherwise,false.
operator !=(ILogger, object?)
Determines whether the specified values are not equal.
public static bool operator !=(ILogger lhs, object? rhs)
Parameters
lhsILoggerThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are not equal; otherwise,false.