C# Класс FSO.Files.Formats.IFF.Chunks.STR

This chunk type holds text strings. The first two bytes correspond to the format code, of which there are four types. Some chunks in the game do not specify any data after the version number, so be sure to implement bounds checking.
Наследование: IffChunk
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultLangCode STRLangCode
LanguageSetNames string[]
LanguageSets FSO.Files.Formats.IFF.Chunks.STRLanguageSet[]

Открытые методы

Метод Описание
GetLanguageSet ( STRLangCode set ) : STRLanguageSet
GetString ( int index ) : string

Gets a string from this chunk.

GetString ( int index, STRLangCode language ) : string
GetStringEntry ( int index ) : STRItem

Gets a STRItem instance from this STR chunk.

GetStringEntry ( int index, STRLangCode language ) : STRItem
InitLanguageSet ( STRLangCode set ) : void
InsertString ( int index, STRItem item ) : void
IsSetInit ( STRLangCode set ) : bool
Read ( IffFile iff, Stream stream ) : void

Reads a STR chunk from a stream.

RemoveString ( int index ) : void
STR ( ) : System
SetString ( int index, string value ) : void
SetString ( int index, string value, STRLangCode language ) : void
SwapString ( int srcindex, int dstindex ) : void
Write ( IffFile iff, Stream stream ) : bool

Описание методов

GetLanguageSet() публичный метод

public GetLanguageSet ( STRLangCode set ) : STRLanguageSet
set STRLangCode
Результат STRLanguageSet

GetString() публичный метод

Gets a string from this chunk.
public GetString ( int index ) : string
index int Index of string.
Результат string

GetString() публичный метод

public GetString ( int index, STRLangCode language ) : string
index int
language STRLangCode
Результат string

GetStringEntry() публичный метод

Gets a STRItem instance from this STR chunk.
public GetStringEntry ( int index ) : STRItem
index int Index of STRItem.
Результат STRItem

GetStringEntry() публичный метод

public GetStringEntry ( int index, STRLangCode language ) : STRItem
index int
language STRLangCode
Результат STRItem

InitLanguageSet() публичный метод

public InitLanguageSet ( STRLangCode set ) : void
set STRLangCode
Результат void

InsertString() публичный метод

public InsertString ( int index, STRItem item ) : void
index int
item STRItem
Результат void

IsSetInit() публичный метод

public IsSetInit ( STRLangCode set ) : bool
set STRLangCode
Результат bool

Read() публичный метод

Reads a STR chunk from a stream.
public Read ( IffFile iff, Stream stream ) : void
iff IffFile An Iff instance.
stream Stream A Stream object holding a STR chunk.
Результат void

RemoveString() публичный метод

public RemoveString ( int index ) : void
index int
Результат void

STR() публичный метод

public STR ( ) : System
Результат System

SetString() публичный метод

public SetString ( int index, string value ) : void
index int
value string
Результат void

SetString() публичный метод

public SetString ( int index, string value, STRLangCode language ) : void
index int
value string
language STRLangCode
Результат void

SwapString() публичный метод

public SwapString ( int srcindex, int dstindex ) : void
srcindex int
dstindex int
Результат void

Write() публичный метод

public Write ( IffFile iff, Stream stream ) : bool
iff IffFile
stream Stream
Результат bool

Описание свойств

DefaultLangCode публичное статическое свойство

public static STRLangCode DefaultLangCode
Результат STRLangCode

LanguageSetNames публичное статическое свойство

public static string[] LanguageSetNames
Результат string[]

LanguageSets публичное свойство

public STRLanguageSet[],FSO.Files.Formats.IFF.Chunks LanguageSets
Результат FSO.Files.Formats.IFF.Chunks.STRLanguageSet[]