Documentation
¶
Overview ¶
Package nitro provides functionality for reading Nitro assets.
Index ¶
- type Animation
- type AnimationFrame
- type AnimationLayer
- type Archive
- type Asset
- type Color
- type Dimensions
- type Direction
- type File
- type FrameSequence
- type Furni
- type Layer
- type Logic
- type Meta
- type Model
- type ParticleSystem
- type Pivot
- type Reader
- type Size
- type SpriteFrame
- type Spritesheet
- type Visualization
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct {
Layers map[int]AnimationLayer `json:"layers"`
TransitionTo *int
}
type AnimationFrame ¶
type AnimationFrame struct {
Id int `json:"id"`
}
type AnimationLayer ¶
type AnimationLayer struct {
LoopCount float64 `json:"loopCount"`
FrameRepeat float64 `json:"frameRepeat"`
Random float64 `json:"random"`
FrameSequences map[int]FrameSequence `json:"frameSequences"`
}
type Dimensions ¶
type FrameSequence ¶
type FrameSequence struct {
Frames map[int]AnimationFrame `json:"frames"`
}
type Furni ¶
type Furni struct {
Name string `json:"name"`
LogicType string `json:"logicType"`
VisualizationType string `json:"visualizationType"`
Assets map[string]Asset `json:"assets"`
Logic Logic `json:"logic"`
Visualizations []Visualization `json:"visualizations"`
Spritesheet Spritesheet `json:"spritesheet"`
}
type Logic ¶
type Logic struct {
Model Model `json:"model"`
ParticleSystems []ParticleSystem `json:"particleSystems"`
}
type Meta ¶
type Meta struct {
Image string `json:"image"`
Format string `json:"format"`
Size Size `json:"size"`
Scale float64 `json:"scale"`
}
func (*Meta) UnmarshalJSON ¶
type Model ¶
type Model struct {
Dimensions Dimensions `json:"dimensions"`
Directions []int `json:"directions"`
}
type ParticleSystem ¶
type ParticleSystem struct {
Size int `json:"size"`
}
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) ReadArchive ¶
type SpriteFrame ¶
type Spritesheet ¶
type Spritesheet struct {
Frames map[string]SpriteFrame `json:"frames"`
Meta Meta `json:"meta"`
}
type Visualization ¶
Click to show internal directories.
Click to hide internal directories.