C# 클래스 Zazzles.Settings

파일 보기 프로젝트 열기: FOGProject/zazzles

Private Properties

프로퍼티 타입 설명
Save bool
SaveSession bool
Settings System

공개 메소드들

메소드 설명
Get ( string key ) : string

IsCompatible ( OSType type ) : bool

Check if the current OS is compatible with the given type

Reload ( ) : void

Reparse the settings.json file

Set ( string key, JToken value, bool session = true ) : void

Set the value of a setting. Will automatically save.

SetPath ( string filePath ) : void

Set the filePath of the settings.json file. Will automatically reload.

비공개 메소드들

메소드 설명
Save ( ) : bool

Save the current data to settings.json

SaveSession ( ) : bool
Settings ( ) : System

메소드 상세

Get() 공개 정적인 메소드

public static Get ( string key ) : string
key string The setting to retrieve
리턴 string

IsCompatible() 공개 정적인 메소드

Check if the current OS is compatible with the given type
public static IsCompatible ( OSType type ) : bool
type OSType The type of OS to check for compatibility with
리턴 bool

Reload() 공개 정적인 메소드

Reparse the settings.json file
public static Reload ( ) : void
리턴 void

Set() 공개 정적인 메소드

Set the value of a setting. Will automatically save.
public static Set ( string key, JToken value, bool session = true ) : void
key string The name of the setting
value JToken The new value of the setting
session bool
리턴 void

SetPath() 공개 정적인 메소드

Set the filePath of the settings.json file. Will automatically reload.
public static SetPath ( string filePath ) : void
filePath string The path of the file
리턴 void