Documentation ¶
Overview ¶
Package ids contains constants for all necessary identifier used in the world. This package contains resource identifier, filenames and other constants necessary for storage.
Index ¶
Constants ¶
const ( IconTextures resource.ID = 0x004C SmallTextures resource.ID = 0x004D MediumTextures resource.ID = 0x02C3 LargeTextures resource.ID = 0x03E8 TextureNames resource.ID = 0x086A TextureUsages resource.ID = 0x086B )
Textures
const ( ObjectBitmaps resource.ID = 0x0546 ObjectTextureBitmaps resource.ID = 0x01DB ObjectMaterialBitmaps resource.ID = 0x0884 IconBitmaps resource.ID = 0x004E GraffitiBitmaps resource.ID = 0x004F MfdDataBitmaps resource.ID = 0x0028 )
Bitmaps
const ( VideoMailBitmapsStart resource.ID = 0x0A40 VideoMailAnimationsStart resource.ID = 0x0A4C )
Animations and videos
const ( MovieIntro resource.ID = 0x0BD6 MovieDeath resource.ID = 0x0BD7 MovieEnd resource.ID = 0x0BD8 )
Movies
const ( PaperTextsStart resource.ID = 0x003C TrapMessageTexts resource.ID = 0x0867 WordTexts resource.ID = 0x0868 PanelNameTexts resource.ID = 0x0869 LogCategoryTexts resource.ID = 0x0870 VariousMessageTexts resource.ID = 0x0871 ScreenMessageTexts resource.ID = 0x0877 InfoNodeMessageTexts resource.ID = 0x0878 AccessCardNameTexts resource.ID = 0x0879 DataletMessageTexts resource.ID = 0x087A ObjectLongNames resource.ID = 0x0024 ObjectShortNames resource.ID = 0x086D )
Texts
const ( MailsStart resource.ID = 0x0989 LogsStart resource.ID = 0x09B8 FragmentsStart resource.ID = 0x0A98 MailsAudioStart resource.ID = 0x0989 + 300 LogsAudioStart resource.ID = 0x09B8 + 300 )
Messages
const ( TrapMessagesAudioStart resource.ID = 0x0C1C SoundEffectsAudioStart resource.ID = 0x00C9 )
Sounds
const ( ArchiveName resource.ID = 0x0FA0 GameState resource.ID = 0x0FA1 LevelResourcesStart resource.ID = 4000 )
Archives
const (
GamePalettesStart resource.ID = 0x02BC
)
Palettes
Variables ¶
var Archive = resource.AnyLanguage("archive.dat")
Archive contains the game world.
var CitALog = resource.I18nFile([resource.LanguageCount]string{"citalog.res", "frnalog.res", "geralog.res"})
CitALog contains all log audio.
var CitBark = resource.I18nFile([resource.LanguageCount]string{"citbark.res", "frnbark.res", "gerbark.res"})
CitBark contains all bark audio.
var CitMat = resource.AnyLanguage("citmat.res")
CitMat contains materials for 3D objects.
var CutsPal = resource.AnyLanguage("cutspal.res")
CutsPal contains palettes for the cutscenes.
var CybStrng = resource.I18nFile([resource.LanguageCount]string{"cybstrng.res", "frnstrng.res", "gerstrng.res"})
CybStrng contains all strings.
var Death = resource.AnyLanguage("death.res")
Death contains another death video.
var DigiFX = resource.AnyLanguage("digifx.res")
DigiFX contains all the effect sounds.
var GamePal = resource.AnyLanguage("gamepal.res")
GamePal contains the game palettes.
var GameScr = resource.AnyLanguage("gamescr.res")
GameScr contains big bitmaps.
var HandArt = resource.AnyLanguage("handart.res")
HandArt contains bitmaps for grabbed things.
var Intro = resource.AnyLanguage("intro.res")
Intro contains another intro video.
var LowDeth = resource.AnyLanguage("lowdeth.res")
LowDeth contains the low-res death video.
var LowEnd = resource.AnyLanguage("lowend.res")
LowEnd contains the low-res end video.
var LowIntr = resource.I18nFile([resource.LanguageCount]string{"lowintr.res", "lofrintr.res", "logeintr.res"})
LowIntr contains the low-res intro video.
var MfdArt = resource.I18nFile([resource.LanguageCount]string{"mfdart.res", "mfdfrn.res", "mfdger.res"})
MfdArt contains all MFD graphics.
var Obj3D = resource.AnyLanguage("obj3D.res")
Obj3D contains 3D objects.
var ObjArt = resource.AnyLanguage("objart.res")
ObjArt contains object art.
var ObjArt2 = resource.AnyLanguage("objart2.res")
ObjArt2 contains further object art.
var ObjArt3 = resource.AnyLanguage("objart3.res")
ObjArt3 contains further object art.
var SideArt = resource.AnyLanguage("sideart.res")
SideArt contains bitmaps for the side buttons.
var Splash = resource.AnyLanguage("splash.res")
Splash contains the splash screens.
var SplshPal = resource.AnyLanguage("splspal.res")
SplshPal contains the splash screen palettes.
var Start1 = resource.AnyLanguage("start1.res")
Start1 contains ... ?.
var SvgaDeth = resource.AnyLanguage("svgadeth.res")
SvgaDeth contains the high-res death video.
var SvgaEnd = resource.AnyLanguage("svgaend.res")
SvgaEnd contains the high-res end video.
var SvgaIntr = resource.I18nFile([resource.LanguageCount]string{"svgaintr.res", "svfrintr.res", "svgeintr.res"})
SvgaIntr contains the high-res intro video.
var Texture = resource.AnyLanguage("texture.res")
Texture contains all textures.
var VidMail = resource.AnyLanguage("vidmail.res")
VidMail contains all video mails.
var Win1 = resource.AnyLanguage("win1.res")
Win1 contains ... ?.
Functions ¶
func HighResVideos ¶
func HighResVideos() resource.FilenameList
HighResVideos returns the filename descriptors of all high-res videos.
func LocalizeFilename ¶
LocalizeFilename returns the language that the resource file would typically contain.
func LocalizedFiles ¶
LocalizedFiles returns the filename descriptors of all files that are localized.
func LowResVideos ¶
func LowResVideos() resource.FilenameList
LowResVideos returns the filename descriptors of all low-res videos.
Types ¶
type ResourceInfo ¶
type ResourceInfo struct { // StartID is the first ID of the resource block (inclusive). StartID resource.ID // EndID is the last ID of the resource block (exclusive). EndID resource.ID // ContentType describes how to interpret resource data. ContentType resource.ContentType // Compound indicates whether the resource has a variable amount of blocks. Simple resources always have one block. Compound bool // Compressed indicates that the resource data shall be stored in compressed form. Compressed bool // List is set for compound resources that have an atomic resource per block. List bool // MaxCount describes how many resources can be stored at maximum. Zero for unlimited / defined somewhere else. MaxCount int // ResFile specifies the .res file in which this resource should be stored. ResFile resource.Filename }
ResourceInfo describes a group of resources with their default serialization properties.
type SoundEffectInfo ¶ added in v1.4.0
type SoundEffectInfo struct { // Name is the unique identifier for the effect source. Name string // Index refers to the audio index. Multiple effects may use the same audio. -1 indicates no audio mapped. AudioIndex int }
SoundEffectInfo describes one sound effect in the game.
func SoundEffectsForAudio ¶ added in v1.4.0
func SoundEffectsForAudio(index int) []SoundEffectInfo
SoundEffectsForAudio returns the effect information that share the same audio.