Show / Hide Table of Contents

Class BssFile

Connects to *.BSS files to extract image data.

Inheritance
Object
BaseImageFile
BssFile
Inherited Members
BaseImageFile.myPalette
BaseImageFile.FilePath
BaseImageFile.FileName
BaseImageFile.Palette
BaseImageFile.LoadPalette(String)
BaseImageFile.GetColor32(Int32, Int32, Int32)
BaseImageFile.GetColor32(DFBitmap, Int32)
BaseImageFile.GetColor32(Int32, Int32, Int32, Int32, DFSize)
BaseImageFile.GetColor32(DFBitmap, Int32, Int32, DFSize, Int32, Int32)
BaseImageFile.GetWindowColors32(DFBitmap, Int32)
BaseImageFile.GetSpectralEmissionColors32(DFBitmap, Color32[], Int32, Int32, Color, Color)
BaseImageFile.GetFireWallColors32(Color32[], Int32, Int32, Color, Single)
Namespace: DaggerfallConnect.Arena2
Assembly: Assembly-CSharp.dll
Syntax
public class BssFile : BaseImageFile

Constructors

| Improve this Doc View Source

BssFile()

Default constructor.

Declaration
public BssFile()
| Improve this Doc View Source

BssFile(String, FileUsage, Boolean)

Load constructor.

Declaration
public BssFile(string filePath, FileUsage usage, bool readOnly)
Parameters
Type Name Description
String filePath

Absolute path to *.BSS file.

FileUsage usage

Specify if file will be accessed from disk, or loaded into RAM.

Boolean readOnly

File will be read-only if true, read-write if false.

Fields

| Improve this Doc View Source

frames

Declaration
public DFBitmap[] frames
Field Value
Type Description
DFBitmap[]

Properties

| Improve this Doc View Source

Description

Description of this file (always "BSS File" as game data contain no text descriptions for this file type).

Declaration
public override string Description { get; }
Property Value
Type Description
String
Overrides
BaseImageFile.Description
| Improve this Doc View Source

PaletteName

Gets palette name for BSS file.

Declaration
public override string PaletteName { get; }
Property Value
Type Description
String
Overrides
BaseImageFile.PaletteName
| Improve this Doc View Source

RecordCount

Number of image records in this BSS file.

Declaration
public override int RecordCount { get; }
Property Value
Type Description
Int32
Overrides
BaseImageFile.RecordCount

Methods

| Improve this Doc View Source

GetDFBitmap(Int32, Int32)

Gets bitmap data as indexed 8-bit byte array for specified record and frame.

Declaration
public override DFBitmap GetDFBitmap(int record, int frame)
Parameters
Type Name Description
Int32 record

Index of record.

Int32 frame

Index of frame.

Returns
Type Description
DFBitmap

DFBitmap object.

Overrides
BaseImageFile.GetDFBitmap(Int32, Int32)
| Improve this Doc View Source

GetFrameCount(Int32)

Gets number of frames.

Declaration
public override int GetFrameCount(int record)
Parameters
Type Name Description
Int32 record

Record index. Only 1 record in Daggerfall BSS files so value should be 0.

Returns
Type Description
Int32

Number of frames.

Overrides
BaseImageFile.GetFrameCount(Int32)
| Improve this Doc View Source

GetSize(Int32)

Gets width and height of specified record. All frames of this record are the same dimensions.

Declaration
public override DFSize GetSize(int record)
Parameters
Type Name Description
Int32 record

Index of record.

Returns
Type Description
DFSize

DFSize object.

Overrides
BaseImageFile.GetSize(Int32)
| Improve this Doc View Source

Load(String, FileUsage, Boolean)

Loads a BSS file.

Declaration
public override bool Load(string filePath, FileUsage usage, bool readOnly)
Parameters
Type Name Description
String filePath

Absolute path to *.BSS file.

FileUsage usage

Specify if file will be accessed from disk, or loaded into RAM.

Boolean readOnly

File will be read-only if true, read-write if false.

Returns
Type Description
Boolean
Overrides
BaseImageFile.Load(String, FileUsage, Boolean)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX