Discover Packages
github.com/mokiat/space-insomnia
data
package
Version:
v0.0.0-...-e8131eb
Opens a new window with list of versions in this module.
Published: Mar 6, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Extrusion struct {
Top float32 `json:"t"`
Bottom float32 `json:"b"`
OuterTexture int `json:"ot"`
FaceTexture int `json:"ft"`
InnerTexture int `json:"it"`
}
type Level struct {
Textures []string `json:"textures"`
Walls []Wall `json:"walls"`
}
type Texture struct {
Width int
Height int
Texels []byte
}
type Wall struct {
LeftEdgeX float32 `json:"lx"`
LeftEdgeZ float32 `json:"lz"`
RightEdgeX float32 `json:"rx"`
RightEdgeZ float32 `json:"rz"`
Ceiling *Extrusion `json:"c,omitempty"`
Floor *Extrusion `json:"f,omitempty"`
FrontWall int `json:"fw"`
BackWall int `json:"bw"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.