Пример #1
0
        internal static void handlerMeta_Attach(IntPtr a, MetaFunctions *pFunctionTable, MetaGlobals *pMetaGlobals, IntPtr pGamedllFuncs)
        {
                        #if DEBUG
            Console.WriteLine(" -- MONO: handlerMeta_Attach");
                        #endif

            pFunctionTable->GetEntityAPI           = IntPtr.Zero;
            pFunctionTable->GetEntityAPIPost       = IntPtr.Zero;
            pFunctionTable->GetEntityAPI2          = IntPtr.Zero;
            pFunctionTable->GetEntityAPI2Post      = Marshal.GetFunctionPointerForDelegate(new GetEntityApiDelegate(GetEntityAPI2Post));
            pFunctionTable->GetNewDllFunctions     = IntPtr.Zero;
            pFunctionTable->GetNewDllFunctionsPost = IntPtr.Zero;
            pFunctionTable->GetEngineFunctions     = IntPtr.Zero;
            pFunctionTable->GetEngineFunctionsPost = Marshal.GetFunctionPointerForDelegate(new GetEngineFunctionsDelegate(GetEngineFunctionsPost));

            globals = pMetaGlobals;

            dllapiFunctions = (EntityAPI)Marshal.PtrToStructure(pGamedllFuncs, typeof(EntityAPI));
        }
Пример #2
0
		internal static void handlerMeta_Attach(IntPtr a, MetaFunctions *pFunctionTable, MetaGlobals* pMetaGlobals, IntPtr pGamedllFuncs)
		{
			#if DEBUG
			Console.WriteLine(" -- MONO: handlerMeta_Attach");
			#endif

			pFunctionTable->GetEntityAPI            = IntPtr.Zero;
			pFunctionTable->GetEntityAPIPost        = IntPtr.Zero;
			pFunctionTable->GetEntityAPI2           = IntPtr.Zero;
			pFunctionTable->GetEntityAPI2Post       = Marshal.GetFunctionPointerForDelegate(new GetEntityApiDelegate(GetEntityAPI2Post));
			pFunctionTable->GetNewDllFunctions      = IntPtr.Zero;
			pFunctionTable->GetNewDllFunctionsPost  = IntPtr.Zero;
			pFunctionTable->GetEngineFunctions      = IntPtr.Zero;
			pFunctionTable->GetEngineFunctionsPost  = Marshal.GetFunctionPointerForDelegate(new GetEngineFunctionsDelegate(GetEngineFunctionsPost));

			globals = pMetaGlobals;

			dllapiFunctions = (EntityAPI)Marshal.PtrToStructure(pGamedllFuncs, typeof(EntityAPI));
		}