~ruther/NosSmooth

2ed1006565d793bc5bda0bb4eea116c7d09e8de8 — Rutherther 3 years ago f271de0
feat(localbinding): add map object x, y
1 files changed, 24 insertions(+), 0 deletions(-)

M Local/NosSmooth.LocalBinding/Structs/MapBaseObj.cs
M Local/NosSmooth.LocalBinding/Structs/MapBaseObj.cs => Local/NosSmooth.LocalBinding/Structs/MapBaseObj.cs +24 -0
@@ 41,4 41,28 @@ public class MapBaseObj : NostaleObject
            return id;
        }
    }

    /// <summary>
    /// Gets the x coordinate of the entity.
    /// </summary>
    public ushort X
    {
        get
        {
            Memory.SafeRead(Address + 0x0C, out ushort x);
            return x;
        }
    }

    /// <summary>
    /// Gets the y coordinate of the entity.
    /// </summary>
    public ushort Y
    {
        get
        {
            Memory.SafeRead(Address + 0x0E, out ushort y);
            return y;
        }
    }
}
\ No newline at end of file

Do not follow this link