feat: primitive styling

This commit is contained in:
IliaDenisov
2026-03-07 17:01:22 +02:00
parent 477e656008
commit e4b956232f
18 changed files with 1264 additions and 175 deletions
+15
View File
@@ -13,6 +13,11 @@ type MapItem interface {
type Point struct {
Id uuid.UUID
X, Y int
// Priority controls per-object draw ordering. Smaller draws earlier.
Priority int
// StyleID references a resolved style in the world's style table.
StyleID StyleID
}
// Line is a line segment primitive in fixed-point world coordinates.
@@ -20,6 +25,11 @@ type Line struct {
Id uuid.UUID
X1, Y1 int
X2, Y2 int
// Priority controls per-object draw ordering. Smaller draws earlier.
Priority int
// StyleID references a resolved style in the world's style table.
StyleID StyleID
}
// Circle is a circle primitive in fixed-point world coordinates.
@@ -27,6 +37,11 @@ type Circle struct {
Id uuid.UUID
X, Y int
Radius int
// Priority controls per-object draw ordering. Smaller draws earlier.
Priority int
// StyleID references a resolved style in the world's style table.
StyleID StyleID
}
// ID returns the point identifier.