[Memhack] Point - Redacted-Rice/ITB-RedactedRiceExts GitHub Wiki
Memhack Point
The Memhack Point struct represents the Point object used by the game. From what I can tell, its just an x & y value
It has the standard memhack base struct functions/fields.
Table of Contents
Data
| Field | Type | Offset | Description |
|---|---|---|---|
| x | int | 0x0 | The x coordinate |
| y | int | 0x4 | The y coordinate |
Data Functions
These are functions that draw from the data in the struct or set the data in the struct
| Argument name | Type | Description |
|---|---|---|
values |
table or memhack point or native point | Table of field names to values, another Point struct, or a native Point object |
Sets the x & y together to the passed values
Example:
p:set({x = -1, y = -1})
p2:set(Point(3,5))
p3:set(p)
getX
intPoint:getX()
Returns the x coordinate
setX
voidPoint:setX(value)
| Argument name | Type | Description |
|---|---|---|
value |
int | The new x value |
Sets the x coordinate
getY
intPoint:getY()
Returns the y coordinate
setY
voidPoint:setY(value)
| Argument name | Type | Description |
|---|---|---|
value |
int | The new y value |
Sets the y coordinate