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

Method CreateDelegateMetatable

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

Source from the content-addressed store, hash-verified

609
610 int common_delegate_meta = -1;
611 public void CreateDelegateMetatable(RealStatePtr L)
612 {
613 Utils.BeginObjectRegister(null, L, this, 3, 0, 0, 0, common_delegate_meta);
614 Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__call", StaticLuaCallbacks.DelegateCall);
615 Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", StaticLuaCallbacks.DelegateCombine);
616 Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", StaticLuaCallbacks.DelegateRemove);
617 Utils.EndObjectRegister(null, L, this, null, null,
618 typeof(System.MulticastDelegate), null, null);
619 }
620
621 int enumerable_pairs_func = -1;
622

Callers 1

LuaEnv.csFile · 0.80

Calls 3

BeginObjectRegisterMethod · 0.80
RegisterFuncMethod · 0.80
EndObjectRegisterMethod · 0.80

Tested by

no test coverage detected