Documentation ¶
Index ¶
- Constants
- Variables
- type AnimDefinition
- type Box
- type BoxMatrix
- type Costume
- type CostumeAnim
- type Exit
- type Game
- type GameMetaData
- type HexMap
- type HexMapSection
- type IndexFile
- type IndexItem
- type Limb
- type MainScummData
- type Object
- type ObjectImage
- type ObjectOwner
- type Point
- type Room
- type RoomIndex
- type RoomName
- type RoomOffset
- type Verb
Constants ¶
View Source
const DEBUG_SAVE_DECODED = true
View Source
const V5_KEY = 0x69
Variables ¶
View Source
var GamesHashes = map[string]GameMetaData{ "2d1e891fe52df707c30185e52c50cd92": GameMetaData{5, "The Secret of Monkey Island", "CD", "en"}, "c0c9de81fb965e6cbe77f6e5631ca705": GameMetaData{5, "The Secret of Monkey Island", "Talkie", "en"}, "3686cf8f89e102ececf4366e1d2c8126": GameMetaData{5, "Monkey Island: Lechuck's Revenge", "Floppy", "en"}, "182344899c2e2998fca0bebcd82aa81a": GameMetaData{5, "Indiana Jones and the Fate of Atlantis", "CD", "en"}, "4167a92a1d46baa4f4127d918d561f88": GameMetaData{6, "The Day of the Tentacle", "CD", "en"}, "d917f311a448e3cc7239c31bddb00dd2": GameMetaData{6, "Sam & Max Hit the Road", "CD", "en"}, "d8323015ecb8b10bf53474f6e6b0ae33": GameMetaData{7, "The Dig", "CD", "en"}, }
Functions ¶
This section is empty.
Types ¶
type AnimDefinition ¶
type AnimDefinition struct {
// contains filtered or unexported fields
}
type Costume ¶
type Costume struct { AnimCount int PaletteSize int Mirrored bool Palette color.Palette Animations []CostumeAnim Limbs []Limb Commands []byte HexMap // contains filtered or unexported fields }
func (*Costume) ProcessCostumeAnim ¶
type CostumeAnim ¶
type CostumeAnim struct { LimbMask []int Definitions []AnimDefinition }
type Game ¶
type Game struct { RoomOffsets []RoomOffset CostumeIndex []IndexItem RoomNames []RoomName RoomIndexes []int Rooms []Room Scripts []s.Script Costumes []Costume GameMetaData // contains filtered or unexported fields }
func (*Game) DumpDecoded ¶
func (*Game) ProcessAllRooms ¶
func (*Game) ProcessSingleRoom ¶
type GameMetaData ¶
type HexMap ¶
type HexMap struct {
// contains filtered or unexported fields
}
func (*HexMap) AddSection ¶
func (HexMap) Sections ¶
func (h HexMap) Sections() []HexMapSection
type HexMapSection ¶
func (HexMapSection) IncludesOffset ¶
func (s HexMapSection) IncludesOffset(offset int) bool
type IndexItem ¶
func ParseIndexBlock ¶
type Limb ¶
type MainScummData ¶
type MainScummData struct {
// contains filtered or unexported fields
}
func NewMainScummData ¶
func NewMainScummData(data []byte) *MainScummData
func (MainScummData) GetCostumes ¶
func (d MainScummData) GetCostumes() (costumes []Costume)
func (*MainScummData) GetRoomsOffset ¶
func (d *MainScummData) GetRoomsOffset() (offsets []RoomOffset)
func (MainScummData) GetScripts ¶
func (d MainScummData) GetScripts() (scripts []s.Script)
type Object ¶
type Object struct { Id int Name string Flags uint8 Parent uint8 Image ObjectImage Width int Height int Verbs []Verb //TODO Direction uint8 Point }
func NewObjectFromOBCD ¶
func (Object) CalledScripts ¶
func (Object) LabelPosition ¶
func (Object) PrintVerbs ¶
func (self Object) PrintVerbs()
type ObjectImage ¶
type ObjectImage struct { Width int Height int States int Planes int Hotspots int Frames []*goimage.RGBA Point }
func NewObjectImageFromOBIM ¶
func NewObjectImageFromOBIM(data []byte, r *Room) (objImg ObjectImage, id int)
func (ObjectImage) FramesIndexes ¶
func (self ObjectImage) FramesIndexes() (out []string)
type ObjectOwner ¶
type Room ¶
type Room struct { Id int Name string Width int Height int ObjCount int TranspIndex uint8 Palette color.Palette Image *image.RGBA Zplanes []*image.RGBA Boxes []Box BoxMatrix BoxMatrix ExitScript s.Script EntryScript s.Script LocalScripts map[int]s.Script Objects map[int]Object // contains filtered or unexported fields }
func (Room) LocalScriptCount ¶
func (Room) PaletteHex ¶
func (Room) PaletteLength ¶
func (Room) TwoDigitNumber ¶
type RoomName ¶
func ParseRoomNames ¶
type RoomOffset ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.