feat: primitive styling
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user