exposed DataPack Handle type

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401197
This commit is contained in:
David Anderson
2007-07-27 15:45:15 +00:00
parent 995f0231a8
commit fa07c9d8a2
2 changed files with 13 additions and 9 deletions
+10 -1
View File
@@ -25,7 +25,16 @@ class DataPackNatives :
public:
void OnSourceModAllInitialized()
{
g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, NULL, NULL, g_pCoreIdent, NULL);
HandleAccess hacc;
TypeAccess tacc;
g_HandleSys.InitAccessDefaults(&tacc, &hacc);
tacc.access[HTypeAccess_Create] = true;
tacc.access[HTypeAccess_Inherit] = true;
tacc.ident = g_pCoreIdent;
hacc.access[HandleAccess_Read] = HANDLE_RESTRICT_OWNER;
g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, &tacc, &hacc, g_pCoreIdent, NULL);
}
void OnSourceModShutdown()
{