MCPcopy Create free account
hub / github.com/Tencent/UnLua / NewMap

Method NewMap

Plugins/UnLua/Source/UnLua/Private/Registries/ContainerRegistry.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 FLuaMap* FContainerRegistry::NewMap(lua_State* L, TSharedPtr<ITypeInterface> KeyType, TSharedPtr<ITypeInterface> ValueType, FLuaMap::FScriptMapFlag Flag)
51 {
52 const FScriptMap* ScriptMap = new FScriptMap;
53 void* Userdata = NewUserdata(L, FScriptContainerDesc::Map);
54 const auto Ret = new(Userdata) FLuaMap(ScriptMap, KeyType, ValueType, Flag);
55 return Ret;
56 }
57
58 void FContainerRegistry::FindOrAdd(lua_State* L, FScriptArray* ContainerPtr, TSharedPtr<ITypeInterface> ElementType)
59 {

Callers 3

PushMapFunction · 0.80
TMap_NewFunction · 0.80
GetValueInternalMethod · 0.80

Calls 1

NewUserdataFunction · 0.85

Tested by

no test coverage detected