C# Class Webgame.Utility.ConfigOperator

Afficher le fichier Open project: kofight/CapsUnity Class Usage Examples

Méthodes publiques

Méthode Description
ConfigOperator ( ) : System
ConfigOperator ( string path ) : System
Dispose ( ) : void
GetBoolValue ( string key ) : bool
GetBoolValue ( string key, bool &value ) : bool
GetFloatValue ( string key, float &value ) : bool
GetFloatValue ( string key ) : float
GetIntValue ( string key, int &value ) : bool
GetIntValue ( string key ) : int
GetStringValue ( string key, string &value ) : bool
GetStringValue ( string key ) : string
Read ( ) : bool
Read ( string content, bool clearExist = true ) : void
ReadTextTable ( string content, string split ) : List

将列表格式的文本文件读到内存中.

Save ( ) : void
Write ( string key, object values, string description = "" ) : void

向配置文件中写入一条记录.

Method Details

ConfigOperator() public méthode

public ConfigOperator ( ) : System
Résultat System

ConfigOperator() public méthode

public ConfigOperator ( string path ) : System
path string
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetBoolValue() public méthode

public GetBoolValue ( string key ) : bool
key string
Résultat bool

GetBoolValue() public méthode

public GetBoolValue ( string key, bool &value ) : bool
key string
value bool
Résultat bool

GetFloatValue() public méthode

public GetFloatValue ( string key, float &value ) : bool
key string
value float
Résultat bool

GetFloatValue() public méthode

public GetFloatValue ( string key ) : float
key string
Résultat float

GetIntValue() public méthode

public GetIntValue ( string key, int &value ) : bool
key string
value int
Résultat bool

GetIntValue() public méthode

public GetIntValue ( string key ) : int
key string
Résultat int

GetStringValue() public méthode

public GetStringValue ( string key, string &value ) : bool
key string
value string
Résultat bool

GetStringValue() public méthode

public GetStringValue ( string key ) : string
key string
Résultat string

Read() public méthode

public Read ( ) : bool
Résultat bool

Read() public méthode

public Read ( string content, bool clearExist = true ) : void
content string
clearExist bool
Résultat void

ReadTextTable() public méthode

将列表格式的文本文件读到内存中.
public ReadTextTable ( string content, string split ) : List
content string
split string 分隔符:制表符 空格
Résultat List

Save() public méthode

public Save ( ) : void
Résultat void

Write() public méthode

向配置文件中写入一条记录.
public Write ( string key, object values, string description = "" ) : void
key string
values object
description string 注释.
Résultat void