MCPcopy Create free account
hub / github.com/Tencent/xLua / CreateArrayMetatable

Method CreateArrayMetatable

Assets/XLua/Src/ObjectTranslator.cs:602–608  ·  view source on GitHub ↗
(RealStatePtr L)

Source from the content-addressed store, hash-verified

600
601 int common_array_meta = -1;
602 public void CreateArrayMetatable(RealStatePtr L)
603 {
604 Utils.BeginObjectRegister(null, L, this, 0, 0, 1, 0, common_array_meta);
605 Utils.RegisterFunc(L, Utils.GETTER_IDX, "Length", StaticLuaCallbacks.ArrayLength);
606 Utils.EndObjectRegister(null, L, this, null, null,
607 typeof(System.Array), StaticLuaCallbacks.ArrayIndexer, StaticLuaCallbacks.ArrayNewIndexer);
608 }
609
610 int common_delegate_meta = -1;
611 public void CreateDelegateMetatable(RealStatePtr L)

Callers 1

LuaEnv.csFile · 0.80

Calls 3

BeginObjectRegisterMethod · 0.80
RegisterFuncMethod · 0.80
EndObjectRegisterMethod · 0.80

Tested by

no test coverage detected