Beispiel #1
0
 public static void Register(UniLua.ILuaState L)
 {
     L.BeginClass(typeof(TestUniToLua.TestClasses.MyClass), null);
     L.RegFunction("New", _CreateMyClass);
     L.RegVar("memberField", get_memberField, set_memberField);
     L.RegVar("staticField", get_staticField, set_staticField);
     L.RegVar("staticProperty", get_staticProperty, set_staticProperty);
     L.RegVar("memberProperty", get_memberProperty, set_memberProperty);
     L.RegFunction("StaticFunction", StaticFunction);
     L.RegFunction("MemberFunction", MemberFunction);
     L.RegFunction("ToString", ToString);
     L.RegFunction("Equals", Equals);
     L.RegFunction("GetHashCode", GetHashCode);
     L.RegFunction("GetType", GetType);
     L.EndClass();
 }