//示例方式,正常导出无需手写下面代码
 void BindMap(LuaState L)
 {
     L.BeginModule(null);
     TestAccountWrap.Register(L);
     L.BeginModule("System");
     L.BeginModule("Collections");
     L.BeginModule("Generic");
     System_Collections_Generic_Dictionary_int_TestAccountWrap.Register(L);
     System_Collections_Generic_KeyValuePair_int_TestAccountWrap.Register(L);
     L.EndModule();
     L.EndModule();
     L.EndModule();
     L.EndModule();
 }
예제 #2
0
 //示例方式,方便删除,正常导出无需手写下面代码
 void BindMap(LuaState L)
 {
     L.BeginModule(null);
     TestAccountWrap.Register(L);
     L.BeginModule("System");
     L.BeginModule("Collections");
     L.BeginModule("Generic");
     System_Collections_Generic_Dictionary_int_TestAccountWrap.Register(L);
     System_Collections_Generic_KeyValuePair_int_TestAccountWrap.Register(L);
     L.BeginModule("Dictionary");
     System_Collections_Generic_Dictionary_int_TestAccount_KeyCollectionWrap.Register(L);
     System_Collections_Generic_Dictionary_int_TestAccount_ValueCollectionWrap.Register(L);
     //after registed, no gc
     System_Collections_Generic_Dictionary_int_TestAccount_EnumeratorWrap.Register(L);
     System_Collections_Generic_Dictionary_int_TestAccount_KeyCollection_EnumeratorWrap.Register(L);
     System_Collections_Generic_Dictionary_int_TestAccount_ValueCollection_EnumeratorWrap.Register(L);
     L.EndModule();
     L.EndModule();
     L.EndModule();
     L.EndModule();
     L.EndModule();
 }