public SCUMM1Chunk(SRFile file, Chunk parent, string name, ulong offset, uint size) : base(file, parent) { Offset = offset; Size = size; Name = name; spec = SCUMM1ChunkSpecs.GetSpec(name, parent); }
static SCUMM1ChunkSpecs() { Unknown = new SCUMM1ChunkSpec("????v1", "Unknown Block", false, ImageIndex.Unknown); specs = new Dictionary <string, SCUMM1ChunkSpec>(); Add(RoomName, "Room", true, ImageIndex.Room); Add("EXCDv1", "Exit Script", false, ImageIndex.RoomExit); Add("ENCDv1", "Entry Script", false, ImageIndex.RoomEntry); Add("RMHDv1", "Room Header", false, ImageIndex.RoomInfo); Add("RMCHv1", "Room Image Characters", false, ImageIndex.RoomImageInfo); Add("RMIMv1", "Room Image", false, ImageIndex.RoomImage); Add("ZPLNv1", "Z-Plane", false, ImageIndex.ZBuffer); Add("ZPCHv1", "Z-Plane Characters", false, ImageIndex.ZBuffer); Add("BOXDv1", "Walking Boxes Definition", false, ImageIndex.Box); Add("BOXMv1", "Walking Boxes Matrix", false, ImageIndex.BoxMatrix); Add("CLUTv1", "Palette", false, ImageIndex.Palette); Add("OBIMv1", "Object Image", false, ImageIndex.ObjectImage); Add(SoundName, "Sound", false, ImageIndex.DigitalSound); Add("OBCDv1", "Object", false, ImageIndex.DirectoryObjects); Add(ScriptName, "Script", false, ImageIndex.Script); Add(CostumeName, "Costume", false, ImageIndex.Costume); }