77 lines
1.2 KiB
Go
77 lines
1.2 KiB
Go
package db
|
|
|
|
type Token struct {
|
|
ID uint
|
|
|
|
Name string
|
|
ActorLink bool
|
|
AppendNumber bool
|
|
PrependAdjective bool
|
|
LockRotation bool
|
|
RandomImg bool
|
|
DisplayName int
|
|
DisplayBars int
|
|
Disposition int
|
|
Rotation int
|
|
Alpha int
|
|
Width float64
|
|
Height float64
|
|
Ring Ring
|
|
Sight TokenSight
|
|
Texture TokenTexture
|
|
Bar1 TokenBar
|
|
Bar2 TokenBar
|
|
Light Light
|
|
Occludable TokenOccludable
|
|
TurnMarker TokenTurnMarker
|
|
}
|
|
|
|
type TokenTexture struct {
|
|
ID uint
|
|
|
|
Src string
|
|
Fit string
|
|
Tint string
|
|
ScaleX float64
|
|
ScaleY float64
|
|
OffsetX float64
|
|
OffsetY float64
|
|
Rotation float64
|
|
AnchorX float64
|
|
AnchorY float64
|
|
AlphaThreshold float64
|
|
}
|
|
|
|
type TokenSight struct {
|
|
ID uint
|
|
|
|
Color string
|
|
VisionMode string
|
|
Range int
|
|
Angle int
|
|
Attenuation float64
|
|
Brightness float64
|
|
Enabled bool
|
|
}
|
|
|
|
type TokenBar struct {
|
|
ID uint
|
|
|
|
Attribute string
|
|
}
|
|
|
|
type TokenOccludable struct {
|
|
ID uint
|
|
|
|
Radius int
|
|
}
|
|
|
|
type TokenTurnMarker struct {
|
|
ID uint
|
|
|
|
Mode int
|
|
Animation string
|
|
Src string
|
|
Disposition bool
|
|
}
|