C# 클래스 ToLuaExport, tolua

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

공개 프로퍼티들

프로퍼티 타입 설명
allTypes List
baseType Type
className string
eventSet HashSet
extendList List
extendMethod List
extendName string
extendType Type
isStaticClass bool
libClassName string
memberFilter List
type Type
wrapClassName string

공개 메소드들

메소드 설명
Clear ( ) : void
CombineTypeStr ( string space, string name ) : string
ConvertToLibSign ( string str ) : string
GenDelegates ( DelegateType, list ) : void
GenEventFunction ( Type t, StringBuilder sb ) : void
GenOverrideFunc ( string name ) : MethodInfo
GenOverrideFuncBody ( MethodInfo md, bool beIf ) : void
Generate ( string dir ) : void
GetBaseTypeStr ( Type t ) : string
GetNameSpace ( Type t, string &libName ) : string
GetTypeStr ( Type t ) : string
HasAttribute ( MemberInfo mb, Type atrtype ) : bool
IsByteBuffer ( MemberInfo mb ) : bool
IsByteBuffer ( Type type ) : bool
IsDelegateType ( Type t ) : bool
IsMemberFilter ( MemberInfo mi ) : bool
IsMemberFilter ( Type t ) : bool
IsObsolete ( MemberInfo mb ) : bool

비공개 메소드들

메소드 설명
BeDropMethodType ( MethodInfo md ) : bool
BeginCodeGen ( ) : void
BeginTry ( ) : void
CallOpFunction ( string name, int count, string ret ) : void
CheckObject ( string head, Type type, string className, int pos ) : void
CheckObjectNull ( ) : void
Compare ( MethodBase lhs, MethodBase rhs ) : int
CompareMethod ( MethodBase l, MethodBase r ) : int
CompareParmsCount ( MethodBase l, MethodBase r ) : bool
DefaultConstruct ( ) : void
EndCodeGen ( string dir ) : void
EndTry ( ) : void
GenBaseOpFunction ( List list ) : void
GenConstructFunction ( ) : void
GenDelegateBody ( StringBuilder sb, Type t, string head, bool hasSelf = false ) : void
GenEnum ( ) : void
GenEventFunctions ( ) : void
GenFunction ( MethodInfo m ) : void
GenFunctions ( ) : void
GenGetEventStr ( string varName, Type varType ) : void
GenGetFieldStr ( string varName, Type varType, bool isStatic, bool isByteBuffer, bool beOverride = false ) : void
GenIndexFunc ( ) : void
GenItemPropertyFunction ( ) : void
GenLuaFunctionRetValue ( StringBuilder sb, Type t, string head, string name, bool beDefined = false ) : void
GenNewIndexFunc ( ) : void
GenOutFunction ( ) : void
GenParamTypes ( ParameterInfo p, MethodBase mb ) : string
GenPushStr ( Type t, string arg, string head, bool isByteBuffer = false ) : void
GenRegisterEventTypes ( ) : void
GenRegisterFuncItems ( ) : void
GenRegisterFunction ( ) : void
GenRegisterOpItems ( ) : void
GenRegisterVariables ( ) : void
GenSetEventStr ( string varName, Type varType, bool isStatic ) : void
GenSetFieldStr ( string varName, Type varType, bool isStatic, bool beOverride = false ) : void
GetCountStr ( int count ) : string
GetDefaultDelegateBody ( MethodInfo md ) : string
GetDelegateParams ( MethodInfo mi ) : string
GetDelegateTypeFromMethodParams ( MethodInfo m ) : void
GetGenericBaseType ( MethodBase md, Type t ) : Type
GetGenericNameSpace ( Type t, string &libName ) : string
GetMethodName ( MethodInfo md ) : string
GetMethodType ( MethodBase md, PropertyInfo &pi ) : int
GetOp ( string name ) : MetaOp
GetOptionalParamPos ( ParameterInfo infos ) : int
GetPushFunction ( Type t, bool isByteBuffer = false ) : string
GetRefBaseType ( Type argType ) : Type
GetReturnValue ( Type t ) : string
GetTypeOf ( Type t, string sep ) : string
HasDecimal ( ParameterInfo pi ) : bool
HasOptionalParam ( ParameterInfo infos ) : bool
InitCtorList ( ) : void
InitMethods ( ) : void
InitPropertyList ( ) : void
IsExtendFunction ( MethodBase mb ) : bool
IsGenericConstraintType ( Type t ) : bool
IsGenericConstraints ( Type constraints ) : bool
IsGenericMethod ( MethodInfo md ) : bool
IsGenericType ( MethodInfo md, Type t ) : bool
IsItemThis ( PropertyInfo info ) : bool
IsNeedOp ( string name ) : bool
IsNumberEnum ( Type t ) : bool
IsParams ( ParameterInfo param ) : bool
IsThisArray ( MethodInfo md, int count ) : bool
ProcessArg ( Type varType, string head, string arg, int stackPos, bool beCheckTypes = false, bool beParams = false, bool beOutArg = false ) : void
ProcessEditorExtend ( Type extendType, List list ) : void
ProcessExtendType ( Type extendType, List list, List extendList ) : void
ProcessExtends ( List list ) : void
ProcessParams ( MethodBase md, int tab, bool beConstruct, bool beCheckTypes = false ) : int
Push ( List list, MethodInfo r ) : void
RemoveChar ( string str, char c ) : string
SaveFile ( string file ) : void
ToLuaExport ( ) : System
ToObject ( string head, Type type, string className, int pos ) : void

메소드 상세

Clear() 공개 정적인 메소드

public static Clear ( ) : void
리턴 void

CombineTypeStr() 공개 정적인 메소드

public static CombineTypeStr ( string space, string name ) : string
space string
name string
리턴 string

ConvertToLibSign() 공개 정적인 메소드

public static ConvertToLibSign ( string str ) : string
str string
리턴 string

GenDelegates() 공개 정적인 메소드

public static GenDelegates ( DelegateType, list ) : void
list DelegateType,
리턴 void

GenEventFunction() 공개 정적인 메소드

public static GenEventFunction ( Type t, StringBuilder sb ) : void
t Type
sb StringBuilder
리턴 void

GenOverrideFunc() 공개 정적인 메소드

public static GenOverrideFunc ( string name ) : MethodInfo
name string
리턴 MethodInfo

GenOverrideFuncBody() 공개 정적인 메소드

public static GenOverrideFuncBody ( MethodInfo md, bool beIf ) : void
md MethodInfo
beIf bool
리턴 void

Generate() 공개 정적인 메소드

public static Generate ( string dir ) : void
dir string
리턴 void

GetBaseTypeStr() 공개 정적인 메소드

public static GetBaseTypeStr ( Type t ) : string
t Type
리턴 string

GetNameSpace() 공개 정적인 메소드

public static GetNameSpace ( Type t, string &libName ) : string
t Type
libName string
리턴 string

GetTypeStr() 공개 정적인 메소드

public static GetTypeStr ( Type t ) : string
t Type
리턴 string

HasAttribute() 공개 정적인 메소드

public static HasAttribute ( MemberInfo mb, Type atrtype ) : bool
mb MemberInfo
atrtype Type
리턴 bool

IsByteBuffer() 공개 정적인 메소드

public static IsByteBuffer ( MemberInfo mb ) : bool
mb MemberInfo
리턴 bool

IsByteBuffer() 공개 정적인 메소드

public static IsByteBuffer ( Type type ) : bool
type Type
리턴 bool

IsDelegateType() 공개 정적인 메소드

public static IsDelegateType ( Type t ) : bool
t Type
리턴 bool

IsMemberFilter() 공개 정적인 메소드

public static IsMemberFilter ( MemberInfo mi ) : bool
mi MemberInfo
리턴 bool

IsMemberFilter() 공개 정적인 메소드

public static IsMemberFilter ( Type t ) : bool
t Type
리턴 bool

IsObsolete() 공개 정적인 메소드

public static IsObsolete ( MemberInfo mb ) : bool
mb MemberInfo
리턴 bool

프로퍼티 상세

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

public static List allTypes
리턴 List

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

public static Type baseType
리턴 Type

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

public static string className
리턴 string

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

public static HashSet eventSet
리턴 HashSet

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

public static List extendList
리턴 List

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

public static List extendMethod
리턴 List

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

public static string extendName
리턴 string

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

public static Type extendType
리턴 Type

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

public static bool isStaticClass
리턴 bool

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

public static string libClassName
리턴 string

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

public static List memberFilter
리턴 List

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

public static Type type
리턴 Type

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

public static string wrapClassName
리턴 string