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

Method NewSet

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

Source from the content-addressed store, hash-verified

40 }
41
42 FLuaSet* FContainerRegistry::NewSet(lua_State* L, TSharedPtr<ITypeInterface> ElementType, FLuaSet::FScriptSetFlag Flag)
43 {
44 const FScriptSet* ScriptSet = new FScriptSet;
45 void* Userdata = NewUserdata(L, FScriptContainerDesc::Set);
46 const auto Ret = new(Userdata) FLuaSet(ScriptSet, ElementType, Flag);
47 return Ret;
48 }
49
50 FLuaMap* FContainerRegistry::NewMap(lua_State* L, TSharedPtr<ITypeInterface> KeyType, TSharedPtr<ITypeInterface> ValueType, FLuaMap::FScriptMapFlag Flag)
51 {

Callers 3

PushSetFunction · 0.80
TSet_NewFunction · 0.80
GetValueInternalMethod · 0.80

Calls 1

NewUserdataFunction · 0.85

Tested by

no test coverage detected