Exemplo n.º 1
0
 public PopJob(TJobInterface Interface)
 {
     //	gr: strings aren't converting
     mInterface = Interface;
     Command    = Marshal.PtrToStringAuto(Interface.sCommand);
     Error      = Marshal.PtrToStringAuto(Interface.sError);
 }
Exemplo n.º 2
0
    static void OnJob(ref TJobInterface JobInterface)
    {
        //	turn into the more clever c# class
        PopJob Job = new PopJob(JobInterface);

        UnityEngine.Debug.Log("job! " + Job.Command);
        if (Job.Error != null)
        {
            UnityEngine.Debug.Log("(error: " + Job.Error);
        }

        //	send job to handler
        try
        {
            TJobHandler Handler = mJobHandlers[Job.Command];
            Handler(Job);
        }
        catch (KeyNotFoundException)
        {
            UnityEngine.Debug.Log("Unhandled job " + Job.Command);
        }
    }
Exemplo n.º 3
0
 public static extern int GetJobParam_Array(ref TJobInterface JobInterface, string Param, string ElementTypeName, System.IntPtr Array, int ArraySize);
Exemplo n.º 4
0
 public static extern bool GetJobParam_PixelsWidthHeight(ref TJobInterface JobInterface, string Param, ref int Width, ref int Height);
Exemplo n.º 5
0
 public static extern bool GetJobParam_texture(ref TJobInterface JobInterface, string Param, int Texture, int ConvertToFormat, bool Stretch);
Exemplo n.º 6
0
 public static extern System.IntPtr GetJobParam_string(ref TJobInterface JobInterface, string Param, string DefaultValue);
Exemplo n.º 7
0
 public static extern float GetJobParam_float(ref TJobInterface JobInterface, string Param, float DefaultValue);
Exemplo n.º 8
0
 public static extern int GetJobParam_int(ref TJobInterface JobInterface, string Param, int DefaultValue);