Class Gmd
Represents a GMD (Game Message Data) resource, which contains localized message strings for the game.
public class Gmd : Resource
- Inheritance
-
Gmd
- Inherited Members
Constructors
Gmd()
public Gmd()
Gmd(nint, bool)
public Gmd(nint instance, bool weakRef = false)
Parameters
Properties
MessageCount
The number of messages in the GMD resource.
public ref int MessageCount { get; }
Property Value
Messages
The pointer to the array of message pointers in the GMD resource, where each pointer points to a message string in the string block.
public byte** Messages { get; set; }
Property Value
- byte**
StringBlock
The pointer to the string block of the GMD resource, which contains all the message strings.
public byte* StringBlock { get; }
Property Value
- byte*
Methods
GetMessage(int)
Gets the message string at the specified index in the GMD resource.
public string GetMessage(int id)
Parameters
idintThe id/index of the message
Returns
- string
The string
Remarks
This method assumes the message is UTF-8 encoded.
GetMessagePtr(int)
Gets the message string at the specified index in the GMD resource.
public byte* GetMessagePtr(int id)
Parameters
idintThe id/index of the message
Returns
- byte*
The string
Remarks
This method assumes the message is UTF-8 encoded.