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
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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[]