C# Class CSLightMng, CSLightForUnity

Inheritance: MonoBehaviour
Show file Open project: wpszz/CSLightForUnity

Protected Properties

Property Type Description
m_clsAssetBundle AssetBundle
m_clsContent CLS_Content
m_clsCurEntry SInstance
m_clsEnv CLS_Environment
m_emptyParams BetterList
m_scriptLastUpdateTime float
m_scriptTokenDebug bool
m_scriptUpdateGap float

Public Methods

Method Description
Call ( SInstance scriptInstance, string funName ) : object
CallStatic ( string className, string funName ) : object
ClearGlobalValue ( ) : void
Deserialize ( Stream source, string className ) : object
DumpStack ( System ex ) : string
Eval ( string script ) : object
Execute ( string script ) : object
GetMember ( SInstance scriptInstance, string memName, object val ) : object
GetMemberStatic ( string className, string memName ) : object
InitializeFromAssetBundle ( AssetBundle scriptsAssetBundle ) : void
NewInstance ( string className ) : object
RunScriptEntry ( string clsEntryName ) : Coroutine
Serialize ( Stream destination, object clsObj ) : void
SetGlobalValue ( string name, object val ) : void
SetMember ( SInstance scriptInstance, string memName, object val ) : void
SetMemberStatic ( string className, string memName, object val ) : void

Protected Methods

Method Description
Clear ( ) : void
GetSortMembers ( SInstance sInstance, List &values, List &keywords ) : void
ReadSInstance ( ProtoReader reader, SInstance sInstance, CLS_Environment environment ) : void
RuntimeCompilerClass ( string className, List types = null ) : void
RuntimeCompilerTokens ( IList tokens, List types = null ) : void
ScriptParamConvert ( ) : BetterList
Update ( ) : void
WriteField ( ProtoWriter writer, object memberV, Type memberT, int fieldNumber ) : void
WriteSInstance ( ProtoWriter writer, SInstance sInstance ) : void

Private Methods

Method Description
GetItemType ( Type type ) : Type
ReadField ( ProtoReader reader, Type memberT, string sClassName, CLS_Environment environment ) : object
RunScriptEntryCoroutine ( string clsEntryName, MonoBehaviour behaviour ) : IEnumerator

Method Details

Call() public method

public Call ( SInstance scriptInstance, string funName ) : object
scriptInstance CSLE.SInstance
funName string
return object

CallStatic() public method

public CallStatic ( string className, string funName ) : object
className string
funName string
return object

Clear() protected method

protected Clear ( ) : void
return void

ClearGlobalValue() public method

public ClearGlobalValue ( ) : void
return void

Deserialize() public method

public Deserialize ( Stream source, string className ) : object
source Stream
className string
return object

DumpStack() public method

public DumpStack ( System ex ) : string
ex System
return string

Eval() public method

public Eval ( string script ) : object
script string
return object

Execute() public method

public Execute ( string script ) : object
script string
return object

GetMember() public method

public GetMember ( SInstance scriptInstance, string memName, object val ) : object
scriptInstance CSLE.SInstance
memName string
val object
return object

GetMemberStatic() public method

public GetMemberStatic ( string className, string memName ) : object
className string
memName string
return object

GetSortMembers() protected method

protected GetSortMembers ( SInstance sInstance, List &values, List &keywords ) : void
sInstance CSLE.SInstance
values List
keywords List
return void

InitializeFromAssetBundle() public method

public InitializeFromAssetBundle ( AssetBundle scriptsAssetBundle ) : void
scriptsAssetBundle AssetBundle
return void

NewInstance() public method

public NewInstance ( string className ) : object
className string
return object

ReadSInstance() protected method

protected ReadSInstance ( ProtoReader reader, SInstance sInstance, CLS_Environment environment ) : void
reader ProtoReader
sInstance SInstance
environment CLS_Environment
return void

RunScriptEntry() public method

public RunScriptEntry ( string clsEntryName ) : Coroutine
clsEntryName string
return Coroutine

RuntimeCompilerClass() protected method

protected RuntimeCompilerClass ( string className, List types = null ) : void
className string
types List
return void

RuntimeCompilerTokens() protected method

protected RuntimeCompilerTokens ( IList tokens, List types = null ) : void
tokens IList
types List
return void

ScriptParamConvert() protected method

protected ScriptParamConvert ( ) : BetterList
return BetterList

Serialize() public method

public Serialize ( Stream destination, object clsObj ) : void
destination Stream
clsObj object
return void

SetGlobalValue() public method

public SetGlobalValue ( string name, object val ) : void
name string
val object
return void

SetMember() public method

public SetMember ( SInstance scriptInstance, string memName, object val ) : void
scriptInstance SInstance
memName string
val object
return void

SetMemberStatic() public method

public SetMemberStatic ( string className, string memName, object val ) : void
className string
memName string
val object
return void

Update() protected method

protected Update ( ) : void
return void

WriteField() protected method

protected WriteField ( ProtoWriter writer, object memberV, Type memberT, int fieldNumber ) : void
writer ProtoWriter
memberV object
memberT Type
fieldNumber int
return void

WriteSInstance() protected method

protected WriteSInstance ( ProtoWriter writer, SInstance sInstance ) : void
writer ProtoWriter
sInstance SInstance
return void

Property Details

m_clsAssetBundle protected property

protected AssetBundle m_clsAssetBundle
return AssetBundle

m_clsContent protected property

protected CLS_Content m_clsContent
return CLS_Content

m_clsCurEntry protected property

protected SInstance m_clsCurEntry
return SInstance

m_clsEnv protected property

protected CLS_Environment m_clsEnv
return CLS_Environment

m_emptyParams protected property

protected BetterList m_emptyParams
return BetterList

m_scriptLastUpdateTime protected property

protected float m_scriptLastUpdateTime
return float

m_scriptTokenDebug protected property

protected bool m_scriptTokenDebug
return bool

m_scriptUpdateGap protected property

protected float m_scriptUpdateGap
return float