using System; using System.Text; using ReClassNET.UI; namespace ReClassNET.Nodes { public class UTF16TextPtrNode : BaseTextPtrNode { /// Draws this node. /// The view information. /// The x coordinate. /// The y coordinate. /// The height the node occupies. public override int Draw(ViewInfo view, int x, int y) { var ptr = view.Memory.ReadObject(Offset); var str = view.Memory.Process.ReadRemoteString(Encoding.Unicode, ptr, 128); return DrawText(view, x, y, "Text16Ptr", MemorySize, str); } } }