inventory equip slot icon

This commit is contained in:
minjaesong
2019-02-20 01:34:47 +09:00
parent 4de53b7321
commit 0984b65d65
6 changed files with 55 additions and 5 deletions

View File

@@ -64,4 +64,12 @@ data class Point2i(var x: Int, var y: Int) {
this.x = other.x
this.y = other.y
}
operator fun plus(other: Point2i): Point2i {
return Point2i(this.x + other.x, this.y + other.y)
}
operator fun minus(other: Point2i): Point2i {
return Point2i(other.x - this.x, other.y - this.y)
}
}