Exemple #1
0
 public PopJob(TJobInterface Interface)
 {
     //	gr: strings aren't converting
     mInterface = Interface;
     Command    = Marshal.PtrToStringAuto(Interface.sCommand);
     Error      = Marshal.PtrToStringAuto(Interface.sError);
 }
Exemple #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);
        }
    }
Exemple #3
0
 public static extern int GetJobParam_Array(ref TJobInterface JobInterface, string Param, string ElementTypeName, System.IntPtr Array, int ArraySize);
Exemple #4
0
 public static extern bool GetJobParam_PixelsWidthHeight(ref TJobInterface JobInterface, string Param, ref int Width, ref int Height);
Exemple #5
0
 public static extern bool GetJobParam_texture(ref TJobInterface JobInterface, string Param, int Texture, int ConvertToFormat, bool Stretch);
Exemple #6
0
 public static extern System.IntPtr GetJobParam_string(ref TJobInterface JobInterface, string Param, string DefaultValue);
Exemple #7
0
 public static extern float GetJobParam_float(ref TJobInterface JobInterface, string Param, float DefaultValue);
Exemple #8
0
 public static extern int GetJobParam_int(ref TJobInterface JobInterface, string Param, int DefaultValue);