C# 클래스 Webgame.Utility.ConfigOperator

파일 보기 프로젝트 열기: kofight/CapsUnity 1 사용 예제들

공개 메소드들

메소드 설명
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

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

메소드 상세

ConfigOperator() 공개 메소드

public ConfigOperator ( ) : System
리턴 System

ConfigOperator() 공개 메소드

public ConfigOperator ( string path ) : System
path string
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetBoolValue() 공개 메소드

public GetBoolValue ( string key ) : bool
key string
리턴 bool

GetBoolValue() 공개 메소드

public GetBoolValue ( string key, bool &value ) : bool
key string
value bool
리턴 bool

GetFloatValue() 공개 메소드

public GetFloatValue ( string key, float &value ) : bool
key string
value float
리턴 bool

GetFloatValue() 공개 메소드

public GetFloatValue ( string key ) : float
key string
리턴 float

GetIntValue() 공개 메소드

public GetIntValue ( string key, int &value ) : bool
key string
value int
리턴 bool

GetIntValue() 공개 메소드

public GetIntValue ( string key ) : int
key string
리턴 int

GetStringValue() 공개 메소드

public GetStringValue ( string key, string &value ) : bool
key string
value string
리턴 bool

GetStringValue() 공개 메소드

public GetStringValue ( string key ) : string
key string
리턴 string

Read() 공개 메소드

public Read ( ) : bool
리턴 bool

Read() 공개 메소드

public Read ( string content, bool clearExist = true ) : void
content string
clearExist bool
리턴 void

ReadTextTable() 공개 메소드

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

Save() 공개 메소드

public Save ( ) : void
리턴 void

Write() 공개 메소드

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