Logo
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Yukar.Common.BinaryReaderWrapper Class Reference

A class for hooking into a BinaryReader and replacing strings More...

Inheritance diagram for Yukar.Common.BinaryReaderWrapper:

Public Types

enum  DictionaryType { NOT_USE , SYSTEM , USER }
 Type of dic.txt to use More...
 

Public Member Functions

 BinaryReaderWrapper (Stream stream, Encoding encoding)
 
override string ReadString ()
 

Static Public Member Functions

static string getExecDir (bool withSeparator=false)
 
static Dictionary< string, string > createSystemDict (bool useWarningMessage=false)
 
static void SetToUseDictionary (DictionaryType type, string loadingPath=null)
 
static void SetToUseDictionary (DictionaryType type, Dictionary< Tuple< Guid, string >, string > dict)
 
static void Initialize (string sysResDir, string language)
 

Static Public Attributes

static Guid currentGuid
 
static Guid currentEventGuid
 
static string currentEventName
 

Detailed Description

A class for hooking into a BinaryReader and replacing strings

Member Enumeration Documentation

◆ DictionaryType

Type of dic.txt to use

Enumerator
NOT_USE 
SYSTEM 
USER 

Constructor & Destructor Documentation

◆ BinaryReaderWrapper()

Yukar.Common.BinaryReaderWrapper.BinaryReaderWrapper ( Stream  stream,
Encoding  encoding 
)

Member Function Documentation

◆ createSystemDict()

static Dictionary< string, string > Yukar.Common.BinaryReaderWrapper.createSystemDict ( bool  useWarningMessage = false)
static

◆ getExecDir()

static string Yukar.Common.BinaryReaderWrapper.getExecDir ( bool  withSeparator = false)
static

◆ Initialize()

static void Yukar.Common.BinaryReaderWrapper.Initialize ( string  sysResDir,
string  language 
)
static

◆ ReadString()

override string Yukar.Common.BinaryReaderWrapper.ReadString ( )

◆ SetToUseDictionary() [1/2]

static void Yukar.Common.BinaryReaderWrapper.SetToUseDictionary ( DictionaryType  type,
Dictionary< Tuple< Guid, string >, string >  dict 
)
static

◆ SetToUseDictionary() [2/2]

static void Yukar.Common.BinaryReaderWrapper.SetToUseDictionary ( DictionaryType  type,
string  loadingPath = null 
)
static

Member Data Documentation

◆ currentEventGuid

Guid Yukar.Common.BinaryReaderWrapper.currentEventGuid
static

◆ currentEventName

string Yukar.Common.BinaryReaderWrapper.currentEventName
static

◆ currentGuid

Guid Yukar.Common.BinaryReaderWrapper.currentGuid
static