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