Пример #1
0
        internal static int GetEngineFunctionsPost(ref EngineFunctions functions, ref int interfaceVersion)
        {
            functions = new EngineFunctions();

            functions.RegUserMsg = RegisterUserMessagePost;

            functions.MessageBegin = MessageBeginPost;
            functions.MessageEnd   = MessageEndPost;

            functions.WriteByte   = WriteBytePost;
            functions.WriteChar   = WriteCharPost;
            functions.WriteShort  = WriteShortPost;
            functions.WriteLong   = WriteLongPost;
            functions.WriteAngle  = WriteAnglePost;
            functions.WriteCoord  = WriteCoordPost;
            functions.WriteString = WriteStringPost;
            functions.WriteEntity = WriteEntityPost;

            functions.Cmd_Args = CmdArgs;
            functions.Cmd_Argc = CmdArgc;
            functions.Cmd_Argv = CmdArgv;

            functions.RemoveEntity = RemoveEntityPost;

            return(0);
        }
Пример #2
0
 //[MethodImplAttribute(MethodImplOptions.InternalCall)]
 internal static void handlerGiveFnptrsToDll(IntPtr engineFunctionsFromEngine, GlobalVariables *globalVariables)
 {
                 #if DEBUG
     Console.WriteLine(" -- MONO: handlerGiveFnptrsToDll");
                 #endif
     engineFunctions = (EngineFunctions)Marshal.PtrToStructure(engineFunctionsFromEngine, typeof(EngineFunctions));
     MetaModEngine.globalVariables = globalVariables;
 }
Пример #3
0
		internal static int GetEngineFunctionsPost(ref EngineFunctions functions, ref int interfaceVersion)
		{
			functions = new EngineFunctions();

			functions.RegUserMsg = RegisterUserMessagePost;

			functions.MessageBegin = MessageBeginPost;
			functions.MessageEnd = MessageEndPost;

			functions.WriteByte   = WriteBytePost;
			functions.WriteChar   = WriteCharPost;
			functions.WriteShort  = WriteShortPost;
			functions.WriteLong   = WriteLongPost;
			functions.WriteAngle  = WriteAnglePost;
			functions.WriteCoord  = WriteCoordPost;
			functions.WriteString = WriteStringPost;
			functions.WriteEntity = WriteEntityPost;

			functions.Cmd_Args = CmdArgs;
			functions.Cmd_Argc = CmdArgc;
			functions.Cmd_Argv = CmdArgv;

			functions.RemoveEntity = RemoveEntityPost;

			return 0;
		}
Пример #4
0
		//[MethodImplAttribute(MethodImplOptions.InternalCall)]
		internal static void handlerGiveFnptrsToDll(IntPtr engineFunctionsFromEngine, GlobalVariables* globalVariables)
		{
			#if DEBUG
			Console.WriteLine(" -- MONO: handlerGiveFnptrsToDll");
			#endif
			engineFunctions = (EngineFunctions)Marshal.PtrToStructure(engineFunctionsFromEngine, typeof(EngineFunctions));
			MetaModEngine.globalVariables = globalVariables;
		}