コード例 #1
0
    static bool PhysicMaterial_PhysicMaterial2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.String arg0 = (System.String)JSApi.getStringS((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.PhysicMaterial(arg0));
        }

        return(true);
    }
////////////////////// Regex ///////////////////////////////////////
// constructors

    static bool Regex_Regex1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.String arg0 = (System.String)JSApi.getStringS((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new System.Text.RegularExpressions.Regex(arg0));
        }

        return(true);
    }
コード例 #3
0
////////////////////// WaitForSeconds ///////////////////////////////////////
// constructors

    static bool WaitForSeconds_WaitForSeconds1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.WaitForSeconds(arg0));
        }

        return(true);
    }
コード例 #4
0
    static bool Bounds_IntersectRay__Ray__Single(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 2)
        {
            UnityEngine.Ray    arg0   = (UnityEngine.Ray)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            int                r_arg1 = JSApi.incArgIndex();
            System.Single      arg1;
            UnityEngine.Bounds argThis = (UnityEngine.Bounds)vc.csObj;                JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.IntersectRay(arg0, out arg1)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
            JSApi.setArgIndex(r_arg1);
            JSApi.setSingle((int)JSApi.SetType.ArgRef, arg1);
        }

        return(true);
    }
////////////////////// PlayerPrefsException ///////////////////////////////////////
// constructors

    static bool PlayerPrefsException_PlayerPrefsException1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.String arg0 = (System.String)JSApi.getStringS((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.PlayerPrefsException(arg0));
        }

        return(true);
    }
コード例 #6
0
////////////////////// AreaScope ///////////////////////////////////////
// constructors

    static bool AreaScope_AreaScope1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            UnityEngine.Rect arg0 = (UnityEngine.Rect)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.GUILayout.AreaScope(arg0));
        }

        return(true);
    }
コード例 #7
0
    static bool MinMaxCurve_MinMaxCurve2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.ParticleSystem.MinMaxCurve(arg0));
        }

        return(true);
    }
コード例 #8
0
    public void InitScript()
    {
        if (!JSEngine.inited)
        {
            return;
        }

        go = JSApi.JSh_NewObjectAsClass(JSMgr.cx, JSMgr.glob, "GameObject", JSMgr.mjsFinalizer);
        if (go == IntPtr.Zero)
        {
            return;
        }

        JSApi.JSh_AddObjectRoot(JSMgr.cx, ref go);


        JSMgr.addJSCSRelation(go, gameObject);

        IntPtr ptrScript = JSMgr.GetScript(jsScriptName);

        if (ptrScript == IntPtr.Zero)
        {
            Debug.Log("ptrScript is null)");
            enabled = false;
            return;
        }
        if (!JSMgr.ExecuteScript(ptrScript, go))
        {
            Debug.Log("---------- ExecuteScript fail");
            enabled = false;
            return;
        }


        funAwake   = JSApi.JSh_GetFunction(JSMgr.cx, go, "Awake");
        funStart   = JSApi.JSh_GetFunction(JSMgr.cx, go, "Start");
        funUpdate  = JSApi.JSh_GetFunction(JSMgr.cx, go, "Update");
        funDestroy = JSApi.JSh_GetFunction(JSMgr.cx, go, "Destroy");
        funOnGUI   = JSApi.JSh_GetFunction(JSMgr.cx, go, "OnGUI");

        if (funAwake != IntPtr.Zero)
        {
            JSMgr.vCall.CallJSFunction(go, funAwake, null);
        }
        inited = true;
    }
コード例 #9
0
    static bool Event_Event3(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            UnityEngine.Event arg0 = (UnityEngine.Event)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.Event(arg0));
        }

        return(true);
    }
コード例 #10
0
 static void Color_Item_Int32(JSVCall vc)
 {
     System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
     if (vc.bGet)
     {
         UnityEngine.Color _this = (UnityEngine.Color)vc.csObj;
         var result = _this[arg0];
         JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
     }
     else
     {
         System.Single     arg1  = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
         UnityEngine.Color _this = (UnityEngine.Color)vc.csObj;
         _this[arg0] = arg1;
         JSMgr.changeJSObj(vc.jsObjID, _this);
     }
 }
コード例 #11
0
    static bool Hashtable_Hashtable5(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.Collections.IDictionary arg0 = (System.Collections.IDictionary)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new System.Collections.Hashtable(arg0));
        }

        return(true);
    }
コード例 #12
0
    static bool Random_Random2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 1)
        {
            System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new System.Random(arg0));
        }

        return(true);
    }
コード例 #13
0
    public static TweenCallback <System.Int32> TweenParams_OnWaypointChange_GetDelegate_member8_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <TweenCallback <System.Int32> >(objFunction.jsObjID);

        if (action == null)
        {
            action = (value) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, value);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #14
0
    static bool GradientColorKey_GradientColorKey2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            UnityEngine.Color arg0 = (UnityEngine.Color)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            System.Single     arg1 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.GradientColorKey(arg0, arg1));
        }

        return(true);
    }
コード例 #15
0
    public static UnityEngine.Display.DisplaysUpdatedDelegate Display_remove_onDisplaysUpdated_GetDelegate_member3_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <UnityEngine.Display.DisplaysUpdatedDelegate>(objFunction.jsObjID);

        if (action == null)
        {
            action = () =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #16
0
    public static UnityEngine.AudioClip.PCMReaderCallback AudioClip_Create_GetDelegate_member3_arg6(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <UnityEngine.AudioClip.PCMReaderCallback>(objFunction.jsObjID);

        if (action == null)
        {
            action = (data) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, data);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #17
0
    public static System.Action APIExportTest_OnDelegateFinish_GetDelegate_member1_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <System.Action>(objFunction.jsObjID);

        if (action == null)
        {
            action = () =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #18
0
    public static Action <UnityEngine.MonoBehaviour> APIExportTest_RemoveEvent_GetDelegate_member5_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <Action <UnityEngine.MonoBehaviour> >(objFunction.jsObjID);

        if (action == null)
        {
            action = (obj) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, obj);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #19
0
////////////////////// ComputeBuffer ///////////////////////////////////////
// constructors

    static bool ComputeBuffer_ComputeBuffer1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            System.Int32 arg1 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.ComputeBuffer(arg0, arg1));
        }

        return(true);
    }
コード例 #20
0
    static bool BoundingSphere_BoundingSphere2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            UnityEngine.Vector3 arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            System.Single       arg1 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.BoundingSphere(arg0, arg1));
        }

        return(true);
    }
コード例 #21
0
    static bool Plane_Plane2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            UnityEngine.Vector3 arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.Plane(arg0, arg1));
        }

        return(true);
    }
コード例 #22
0
    public static DG.Tweening.TweenCallback TweenParams_OnComplete_GetDelegate_member1_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <DG.Tweening.TweenCallback>(objFunction.jsObjID);

        if (action == null)
        {
            action = () =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #23
0
    static bool WeakReference_WeakReference2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            System.Object  arg0 = (System.Object)JSMgr.datax.getWhatever((int)JSApi.GetType.Arg);
            System.Boolean arg1 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new System.WeakReference(arg0, arg1));
        }

        return(true);
    }
    static bool MinMaxGradient_MinMaxGradient5(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            UnityEngine.Gradient arg0 = (UnityEngine.Gradient)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            UnityEngine.Gradient arg1 = (UnityEngine.Gradient)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.ParticleSystem.MinMaxGradient(arg0, arg1));
        }

        return(true);
    }
    static bool UnassignedReferenceException_UnassignedReferenceException3(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            System.String    arg0 = (System.String)JSApi.getStringS((int)JSApi.GetType.Arg);
            System.Exception arg1 = (System.Exception)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.UnassignedReferenceException(arg0, arg1));
        }

        return(true);
    }
コード例 #26
0
    public static UnityEngine.Application.LogCallback Application_remove_logMessageReceivedThreaded_GetDelegate_member15_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <UnityEngine.Application.LogCallback>(objFunction.jsObjID);

        if (action == null)
        {
            action = (condition, stackTrace, type) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, condition, stackTrace, type);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #27
0
    static bool Burst_Burst2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 2)
        {
            System.Single arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            System.Int16  arg1 = (System.Int16)JSApi.getInt16((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.ParticleSystem.Burst(arg0, arg1));
        }

        return(true);
    }
コード例 #28
0
    public static UnityEngine.Application.AdvertisingIdentifierCallback Application_RequestAdvertisingIdentifierAsync_GetDelegate_member16_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <UnityEngine.Application.AdvertisingIdentifierCallback>(objFunction.jsObjID);

        if (action == null)
        {
            action = (advertisingId, trackingEnabled, errorMsg) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, advertisingId, trackingEnabled, errorMsg);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }
コード例 #29
0
    public object getObject(int e)
    {
        int jsObjID = JSApi.getObject(e);

        if (jsObjID == 0)
        {
            // no error
            return(null);
        }

        object csObj = JSMgr.getCSObj(jsObjID);

        if (csObj == null)
        {
            csObj = new CSRepresentedObject(jsObjID);
        }
        return(csObj);
    }
コード例 #30
0
// methods
    public static UnityEngine.AudioSettings.AudioConfigurationChangeHandler AudioSettings_add_OnAudioConfigurationChanged_GetDelegate_member0_arg0(CSRepresentedObject objFunction)
    {
        if (objFunction == null || objFunction.jsObjID == 0)
        {
            return(null);
        }
        var action = JSMgr.getJSFunCSDelegateRel <UnityEngine.AudioSettings.AudioConfigurationChangeHandler>(objFunction.jsObjID);

        if (action == null)
        {
            action = (deviceWasChanged) =>
            {
                JSMgr.vCall.CallJSFunctionValue(0, objFunction.jsObjID, deviceWasChanged);
            };
            JSMgr.addJSFunCSDelegateRel(objFunction.jsObjID, action);
        }
        return(action);
    }