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

Method PushByType

Assets/XLua/Src/ObjectTranslator.cs:906–917  ·  view source on GitHub ↗
(RealStatePtr L,  T v)

Source from the content-addressed store, hash-verified

904 }
905
906 public void PushByType<T>(RealStatePtr L, T v)
907 {
908 Action<RealStatePtr, T> push_func;
909 if (tryGetPushFuncByType(typeof(T), out push_func))
910 {
911 push_func(L, v);
912 }
913 else
914 {
915 PushAny(L, v);
916 }
917 }
918
919#if GENERIC_SHARING
920 public T GetByType<T>(RealStatePtr L, int index)

Callers 5

InParamMethod · 0.80
LuaFunction.csFile · 0.80
LuaTable.csFile · 0.80
SetInPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected