C# 클래스 RoadNamer.Managers.OptionsManager

Manages all ingame options. Handles the interface between ingame options storage and saving/loading from disk.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: PropaneDragon/RoadNamer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_build int
m_hasOpenedPanel bool
m_isIngame bool
m_major int
m_minor int
m_randomNamesLocation string
m_revision int
m_spritesLocation string
m_versionStringFull string
m_workshopId uint

공개 메소드들

메소드 설명
CreateOptions ( UIHelperBase helper ) : void

Creates options on a panel using the helper

GetCheckBoxValue ( string uniqueName, bool &returnValue ) : bool

Gets a bool from an option that was set using a checkbox

GetDropdownValue ( string uniqueName, int &returnValue ) : bool

Gets a string from an option that was set using a dropdown

GetDropdownValue ( string uniqueName, string &returnValue ) : bool

Gets a string from an option that was set using a dropdown

GetSliderValue ( string uniqueName, float &returnValue ) : bool

Gets a float from an option that was set using a slider

LoadOptions ( ) : void

Load options from disk and replace default values with stored ones.

Populate ( ) : void

Populates everything that needs any additional data loading

SaveOptions ( ) : void

Save options to disk

UpdateEverything ( ) : void

Updates everything ingame. Should be used when one of the options has updated and ingame elements need immediately refreshing.

비공개 메소드들

메소드 설명
CheckBox_eventCheckChanged ( UIComponent component, bool value ) : void
Dropdown_eventSelectedIndexChanged ( UIComponent component, int value ) : void
OptionChanged ( bool value ) : void
OptionChanged ( float value ) : void
OptionChanged ( int sel ) : void
SaveButtonClicked ( ) : void
Slider_eventValueChanged ( UIComponent component, float value ) : void

메소드 상세

CreateOptions() 공개 메소드

Creates options on a panel using the helper
public CreateOptions ( UIHelperBase helper ) : void
helper UIHelperBase The UIHelper to put the options on
리턴 void

GetCheckBoxValue() 공개 정적인 메소드

Gets a bool from an option that was set using a checkbox
public static GetCheckBoxValue ( string uniqueName, bool &returnValue ) : bool
uniqueName string The unique name of the checkbox option
returnValue bool The value to replace
리턴 bool

GetDropdownValue() 공개 정적인 메소드

Gets a string from an option that was set using a dropdown
public static GetDropdownValue ( string uniqueName, int &returnValue ) : bool
uniqueName string The unique name of the dropdown option
returnValue int The value to replace
리턴 bool

GetDropdownValue() 공개 정적인 메소드

Gets a string from an option that was set using a dropdown
public static GetDropdownValue ( string uniqueName, string &returnValue ) : bool
uniqueName string The unique name of the dropdown option
returnValue string The value to replace
리턴 bool

GetSliderValue() 공개 정적인 메소드

Gets a float from an option that was set using a slider
public static GetSliderValue ( string uniqueName, float &returnValue ) : bool
uniqueName string The unique name of the slider option
returnValue float The value to replace
리턴 bool

LoadOptions() 공개 정적인 메소드

Load options from disk and replace default values with stored ones.
public static LoadOptions ( ) : void
리턴 void

Populate() 공개 정적인 메소드

Populates everything that needs any additional data loading
public static Populate ( ) : void
리턴 void

SaveOptions() 공개 정적인 메소드

Save options to disk
public static SaveOptions ( ) : void
리턴 void

UpdateEverything() 공개 정적인 메소드

Updates everything ingame. Should be used when one of the options has updated and ingame elements need immediately refreshing.
public static UpdateEverything ( ) : void
리턴 void

프로퍼티 상세

m_build 공개적으로 정적으로 프로퍼티

public static int m_build
리턴 int

m_hasOpenedPanel 공개적으로 정적으로 프로퍼티

public static bool m_hasOpenedPanel
리턴 bool

m_isIngame 공개적으로 정적으로 프로퍼티

public static bool m_isIngame
리턴 bool

m_major 공개적으로 정적으로 프로퍼티

public static int m_major
리턴 int

m_minor 공개적으로 정적으로 프로퍼티

public static int m_minor
리턴 int

m_randomNamesLocation 공개적으로 정적으로 프로퍼티

public static string m_randomNamesLocation
리턴 string

m_revision 공개적으로 정적으로 프로퍼티

public static int m_revision
리턴 int

m_spritesLocation 공개적으로 정적으로 프로퍼티

public static string m_spritesLocation
리턴 string

m_versionStringFull 공개적으로 정적으로 프로퍼티

public static string m_versionStringFull
리턴 string

m_workshopId 공개적으로 정적으로 프로퍼티

public static uint m_workshopId
리턴 uint