C# Class KEngine.AppEngine

Cosmos Engine - Unity3D Game Develop Framework
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
IsRootUser bool
ShowFps bool

Private Properties

Property Type Description
Awake void
DoInit IEnumerator
DoInitModules IEnumerator
Init void
New AppEngine
Start void

Public Methods

Method Description
GetConfig ( KEngineDefaultConfigs cfg ) : string
GetConfig ( string section, string key, bool showLog = true ) : string

Get config from ini config file or the default ini string

New ( GameObject gameObjectToAttach, IAppEntry entry, IList modules ) : AppEngine

Engine entry.... all begins from here

PreloadConfigs ( bool forceReload = false ) : EngineConfigs

Ensure Configs load

Protected Methods

Method Description
OnGUI ( ) : void
Update ( ) : void

Private Methods

Method Description
Awake ( ) : void
DoInit ( ) : IEnumerator

Use Coroutine to initialize the two base modules: Resource & UI

DoInitModules ( IList modules ) : IEnumerator
Init ( ) : void
New ( GameObject gameObjectToAttach, IModuleInitable modules ) : AppEngine
Start ( ) : void

Method Details

GetConfig() public static method

public static GetConfig ( KEngineDefaultConfigs cfg ) : string
cfg KEngineDefaultConfigs
return string

GetConfig() public static method

Get config from ini config file or the default ini string
public static GetConfig ( string section, string key, bool showLog = true ) : string
section string
key string
showLog bool
return string

New() public static method

Engine entry.... all begins from here
public static New ( GameObject gameObjectToAttach, IAppEntry entry, IList modules ) : AppEngine
gameObjectToAttach UnityEngine.GameObject
entry IAppEntry
modules IList
return AppEngine

OnGUI() protected method

protected OnGUI ( ) : void
return void

PreloadConfigs() public static method

Ensure Configs load
public static PreloadConfigs ( bool forceReload = false ) : EngineConfigs
forceReload bool
return EngineConfigs

Update() protected method

protected Update ( ) : void
return void

Property Details

IsRootUser public_oe static_oe property

In Init func has a check if the user has the write privillige
public static bool IsRootUser
return bool

ShowFps public_oe property

public bool ShowFps
return bool