public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("Play", Play),
			new LuaMethod("Pause", Pause),
			new LuaMethod("Stop", Stop),
			new LuaMethod("GetPixel", GetPixel),
			new LuaMethod("GetPixels", GetPixels),
			new LuaMethod("GetPixels32", GetPixels32),
			new LuaMethod("New", _CreateWebCamTexture),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("isPlaying", get_isPlaying, null),
			new LuaField("deviceName", get_deviceName, set_deviceName),
			new LuaField("requestedFPS", get_requestedFPS, set_requestedFPS),
			new LuaField("requestedWidth", get_requestedWidth, set_requestedWidth),
			new LuaField("requestedHeight", get_requestedHeight, set_requestedHeight),
			new LuaField("devices", get_devices, null),
			new LuaField("videoRotationAngle", get_videoRotationAngle, null),
			new LuaField("videoVerticallyMirrored", get_videoVerticallyMirrored, null),
			new LuaField("didUpdateThisFrame", get_didUpdateThisFrame, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.WebCamTexture", typeof(WebCamTexture), regs, fields, typeof(Texture));
	}
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("onCustomerHandle", onCustomerHandle),
            new LuaMethod("onPressHandle", onPressHandle),
            new LuaMethod("onClickHandle", onClickHandle),
            new LuaMethod("onDragHandle", onDragHandle),
            new LuaMethod("onDropHandle", onDropHandle),
            new LuaMethod("onSelectHandle", onSelectHandle),
            new LuaMethod("onCancelHandle", onCancelHandle),
            new LuaMethod("New", _CreateUGUIEvent),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("onCustomerFn", get_onCustomerFn, set_onCustomerFn),
            new LuaField("onPressFn", get_onPressFn, set_onPressFn),
            new LuaField("onClickFn", get_onClickFn, set_onClickFn),
            new LuaField("onDragFn", get_onDragFn, set_onDragFn),
            new LuaField("onDropFn", get_onDropFn, set_onDropFn),
            new LuaField("onSelectFn", get_onSelectFn, set_onSelectFn),
            new LuaField("onCancelFn", get_onCancelFn, set_onCancelFn),
        };

        LuaScriptMgr.RegisterLib(L, "UGUIEvent", typeof(UGUIEvent), regs, fields, null);
    }
Example #3
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("DoUnity3dLua", DoUnity3dLua),
            new LuaMethod("DoMain", DoMain),
            new LuaMethod("LoadBundle", LoadBundle),
            new LuaMethod("RegisterFunc", RegisterFunc),
            new LuaMethod("Loader", Loader),
            new LuaMethod("Log", Log),
            new LuaMethod("Delay", Delay),
            new LuaMethod("StopDelay", StopDelay),
            new LuaMethod("New", _CreatePLua),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("enterLua", get_enterLua, set_enterLua),
            new LuaField("onDestroyFn", get_onDestroyFn, set_onDestroyFn),
            new LuaField("isDebug", get_isDebug, set_isDebug),
            new LuaField("lua", get_lua, set_lua),
            new LuaField("net", get_net, set_net),
            new LuaField("ChatNet", get_ChatNet, set_ChatNet),
            new LuaField("luacache", get_luacache, set_luacache),
            new LuaField("updateFn", get_updateFn, set_updateFn),
            new LuaField("instance", get_instance, null),
        };

        LuaScriptMgr.RegisterLib(L, "PLua", typeof(PLua), regs, fields, typeof(MonoBehaviour));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("OverlapPoint", OverlapPoint),
            new LuaMethod("IsTouching", IsTouching),
            new LuaMethod("IsTouchingLayers", IsTouchingLayers),
            new LuaMethod("New", _CreateCollider2D),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("isTrigger", get_isTrigger, set_isTrigger),
            new LuaField("usedByEffector", get_usedByEffector, set_usedByEffector),
            new LuaField("offset", get_offset, set_offset),
            new LuaField("attachedRigidbody", get_attachedRigidbody, null),
            new LuaField("shapeCount", get_shapeCount, null),
            new LuaField("bounds", get_bounds, null),
            new LuaField("sharedMaterial", get_sharedMaterial, set_sharedMaterial),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Collider2D", typeof(Collider2D), regs, fields, typeof(Behaviour));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("Close", Close),
			new LuaMethod("WriteByte", WriteByte),
			new LuaMethod("WriteInt", WriteInt),
			new LuaMethod("WriteShort", WriteShort),
			new LuaMethod("WriteLong", WriteLong),
			new LuaMethod("WriteFloat", WriteFloat),
			new LuaMethod("WriteDouble", WriteDouble),
			new LuaMethod("WriteString", WriteString),
			new LuaMethod("WriteBytes", WriteBytes),
			new LuaMethod("WriteBuffer", WriteBuffer),
			new LuaMethod("ReadByte", ReadByte),
			new LuaMethod("ReadInt", ReadInt),
			new LuaMethod("ReadShort", ReadShort),
			new LuaMethod("ReadLong", ReadLong),
			new LuaMethod("ReadFloat", ReadFloat),
			new LuaMethod("ReadDouble", ReadDouble),
			new LuaMethod("ReadString", ReadString),
			new LuaMethod("ReadBytes", ReadBytes),
			new LuaMethod("ReadBuffer", ReadBuffer),
			new LuaMethod("ToBytes", ToBytes),
			new LuaMethod("Flush", Flush),
			new LuaMethod("New", _CreateSimpleFramework_ByteBuffer),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
		};

		LuaScriptMgr.RegisterLib(L, "SimpleFramework.ByteBuffer", typeof(SimpleFramework.ByteBuffer), regs, fields, typeof(object));
	}
Example #6
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateParticleRenderer),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("particleRenderMode", get_particleRenderMode, set_particleRenderMode),
            new LuaField("lengthScale", get_lengthScale, set_lengthScale),
            new LuaField("velocityScale", get_velocityScale, set_velocityScale),
            new LuaField("cameraVelocityScale", get_cameraVelocityScale, set_cameraVelocityScale),
            new LuaField("maxParticleSize", get_maxParticleSize, set_maxParticleSize),
            new LuaField("uvAnimationXTile", get_uvAnimationXTile, set_uvAnimationXTile),
            new LuaField("uvAnimationYTile", get_uvAnimationYTile, set_uvAnimationYTile),
            new LuaField("uvAnimationCycles", get_uvAnimationCycles, set_uvAnimationCycles),
            new LuaField("maxPartileSize", get_maxPartileSize, set_maxPartileSize),
            new LuaField("uvTiles", get_uvTiles, set_uvTiles),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.ParticleRenderer", typeof(ParticleRenderer), regs, fields, typeof(Renderer));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Rebuild", Rebuild),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("OnDrag", OnDrag),
            new LuaMethod("OnMove", OnMove),
            new LuaMethod("FindSelectableOnLeft", FindSelectableOnLeft),
            new LuaMethod("FindSelectableOnRight", FindSelectableOnRight),
            new LuaMethod("FindSelectableOnUp", FindSelectableOnUp),
            new LuaMethod("FindSelectableOnDown", FindSelectableOnDown),
            new LuaMethod("OnInitializePotentialDrag", OnInitializePotentialDrag),
            new LuaMethod("SetDirection", SetDirection),
            new LuaMethod("New", _CreateUnityEngine_UI_Slider),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("fillRect", get_fillRect, set_fillRect),
            new LuaField("handleRect", get_handleRect, set_handleRect),
            new LuaField("direction", get_direction, set_direction),
            new LuaField("minValue", get_minValue, set_minValue),
            new LuaField("maxValue", get_maxValue, set_maxValue),
            new LuaField("wholeNumbers", get_wholeNumbers, set_wholeNumbers),
            new LuaField("value", get_value, set_value),
            new LuaField("normalizedValue", get_normalizedValue, set_normalizedValue),
            new LuaField("onValueChanged", get_onValueChanged, set_onValueChanged),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.Slider", typeof(UnityEngine.UI.Slider), regs, fields, typeof(UnityEngine.UI.Selectable));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("SimpleMove", SimpleMove),
			new LuaMethod("Move", Move),
			new LuaMethod("New", _CreateCharacterController),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("isGrounded", get_isGrounded, null),
			new LuaField("velocity", get_velocity, null),
			new LuaField("collisionFlags", get_collisionFlags, null),
			new LuaField("radius", get_radius, set_radius),
			new LuaField("height", get_height, set_height),
			new LuaField("center", get_center, set_center),
			new LuaField("slopeLimit", get_slopeLimit, set_slopeLimit),
			new LuaField("stepOffset", get_stepOffset, set_stepOffset),
			new LuaField("detectCollisions", get_detectCollisions, set_detectCollisions),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.CharacterController", typeof(CharacterController), regs, fields, typeof(Collider));
	}
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Dispose", Dispose),
            new LuaMethod("Release", Release),
            new LuaMethod("Clear", Clear),
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawRenderer", DrawRenderer),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("Blit", Blit),
            new LuaMethod("GetTemporaryRT", GetTemporaryRT),
            new LuaMethod("ReleaseTemporaryRT", ReleaseTemporaryRT),
            new LuaMethod("ClearRenderTarget", ClearRenderTarget),
            new LuaMethod("SetGlobalFloat", SetGlobalFloat),
            new LuaMethod("SetGlobalVector", SetGlobalVector),
            new LuaMethod("SetGlobalColor", SetGlobalColor),
            new LuaMethod("SetGlobalMatrix", SetGlobalMatrix),
            new LuaMethod("SetGlobalTexture", SetGlobalTexture),
            new LuaMethod("New", _CreateUnityEngine_Rendering_CommandBuffer),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("sizeInBytes", get_sizeInBytes, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Rendering.CommandBuffer", typeof(UnityEngine.Rendering.CommandBuffer), regs, fields, typeof(object));
    }
Example #10
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawMeshNow", DrawMeshNow),
            new LuaMethod("DrawProcedural", DrawProcedural),
            new LuaMethod("DrawProceduralIndirect", DrawProceduralIndirect),
            new LuaMethod("DrawTexture", DrawTexture),
            new LuaMethod("ExecuteCommandBuffer", ExecuteCommandBuffer),
            new LuaMethod("Blit", Blit),
            new LuaMethod("BlitMultiTap", BlitMultiTap),
            new LuaMethod("SetRandomWriteTarget", SetRandomWriteTarget),
            new LuaMethod("ClearRandomWriteTargets", ClearRandomWriteTargets),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("New", _CreateGraphics),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("activeColorBuffer", get_activeColorBuffer, null),
            new LuaField("activeDepthBuffer", get_activeDepthBuffer, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Graphics", typeof(Graphics), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("SetResolution", SetResolution),
            new LuaMethod("New", _CreateScreen),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("resolutions", get_resolutions, null),
            new LuaField("currentResolution", get_currentResolution, null),
            new LuaField("width", get_width, null),
            new LuaField("height", get_height, null),
            new LuaField("dpi", get_dpi, null),
            new LuaField("fullScreen", get_fullScreen, set_fullScreen),
            new LuaField("autorotateToPortrait", get_autorotateToPortrait, set_autorotateToPortrait),
            new LuaField("autorotateToPortraitUpsideDown", get_autorotateToPortraitUpsideDown, set_autorotateToPortraitUpsideDown),
            new LuaField("autorotateToLandscapeLeft", get_autorotateToLandscapeLeft, set_autorotateToLandscapeLeft),
            new LuaField("autorotateToLandscapeRight", get_autorotateToLandscapeRight, set_autorotateToLandscapeRight),
            new LuaField("orientation", get_orientation, set_orientation),
            new LuaField("sleepTimeout", get_sleepTimeout, set_sleepTimeout),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Screen", typeof(Screen), regs, fields, typeof(object));
    }
Example #12
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("DrawLine", DrawLine),
			new LuaMethod("DrawRay", DrawRay),
			new LuaMethod("Break", Break),
			new LuaMethod("DebugBreak", DebugBreak),
			new LuaMethod("Log", Log),
			new LuaMethod("LogFormat", LogFormat),
			new LuaMethod("LogError", LogError),
			new LuaMethod("LogErrorFormat", LogErrorFormat),
			new LuaMethod("ClearDeveloperConsole", ClearDeveloperConsole),
			new LuaMethod("LogException", LogException),
			new LuaMethod("LogWarning", LogWarning),
			new LuaMethod("LogWarningFormat", LogWarningFormat),
			new LuaMethod("Assert", Assert),
			new LuaMethod("AssertFormat", AssertFormat),
			new LuaMethod("LogAssertion", LogAssertion),
			new LuaMethod("LogAssertionFormat", LogAssertionFormat),
			new LuaMethod("New", _CreateDebug),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("logger", get_logger, null),
			new LuaField("developerConsoleVisible", get_developerConsoleVisible, set_developerConsoleVisible),
			new LuaField("isDebugBuild", get_isDebugBuild, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Debug", typeof(Debug), regs, fields, typeof(object));
	}
Example #13
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("SetGlobalAnisotropicFilteringLimits", SetGlobalAnisotropicFilteringLimits),
            new LuaMethod("GetNativeTexturePtr", GetNativeTexturePtr),
            new LuaMethod("New", _CreateTexture),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("masterTextureLimit", get_masterTextureLimit, set_masterTextureLimit),
            new LuaField("anisotropicFiltering", get_anisotropicFiltering, set_anisotropicFiltering),
            new LuaField("width", get_width, set_width),
            new LuaField("height", get_height, set_height),
            new LuaField("filterMode", get_filterMode, set_filterMode),
            new LuaField("anisoLevel", get_anisoLevel, set_anisoLevel),
            new LuaField("wrapMode", get_wrapMode, set_wrapMode),
            new LuaField("mipMapBias", get_mipMapBias, set_mipMapBias),
            new LuaField("texelSize", get_texelSize, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Texture", typeof(Texture), regs, fields, typeof(Object));
    }
Example #14
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Invoke", Invoke),
            new LuaMethod("InvokeRepeating", InvokeRepeating),
            new LuaMethod("CancelInvoke", CancelInvoke),
            new LuaMethod("IsInvoking", IsInvoking),
            new LuaMethod("StartCoroutine", StartCoroutine),
            new LuaMethod("StartCoroutine_Auto", StartCoroutine_Auto),
            new LuaMethod("StopCoroutine", StopCoroutine),
            new LuaMethod("StopAllCoroutines", StopAllCoroutines),
            new LuaMethod("print", print),
            new LuaMethod("New", _CreateMonoBehaviour),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("useGUILayout", get_useGUILayout, set_useGUILayout),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.MonoBehaviour", typeof(MonoBehaviour), regs, fields, typeof(Behaviour));
    }
Example #15
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("CreateDelegate", CreateDelegate),
            new LuaMethod("DynamicInvoke", DynamicInvoke),
            new LuaMethod("Clone", Clone),
            new LuaMethod("GetObjectData", GetObjectData),
            new LuaMethod("GetInvocationList", GetInvocationList),
            new LuaMethod("Combine", Combine),
            new LuaMethod("Remove", Remove),
            new LuaMethod("RemoveAll", RemoveAll),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateDelegate),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__add", Lua_Add),
            new LuaMethod("__sub", Lua_Sub),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("unbind", Lua_UnBind),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("Method", get_Method, null),
            new LuaField("Target", get_Target, null),
        };

        LuaScriptMgr.RegisterLib(L, "System.Delegate", typeof(Delegate), regs, fields, typeof(object));
    }
Example #16
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetComponentInParent", GetComponentInParent),
            new LuaMethod("GetComponentsInParent", GetComponentsInParent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("CompareTag", CompareTag),
            new LuaMethod("SendMessageUpwards", SendMessageUpwards),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("BroadcastMessage", BroadcastMessage),
            new LuaMethod("New", _CreateComponent),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("unbind", Lua_UnBind),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("transform", get_transform, null),
            new LuaField("gameObject", get_gameObject, null),
            new LuaField("tag", get_tag, set_tag),
            new LuaField("isNil", get_isNil, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Component", typeof(Component), regs, fields, typeof(Object));
    }
Example #17
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetTypeCode", GetTypeCode),
			new LuaMethod("GetValues", GetValues),
			new LuaMethod("GetNames", GetNames),
			new LuaMethod("GetName", GetName),
			new LuaMethod("IsDefined", IsDefined),
			new LuaMethod("GetUnderlyingType", GetUnderlyingType),
			new LuaMethod("Parse", Parse),
			new LuaMethod("CompareTo", CompareTo),
			new LuaMethod("ToString", ToString),
			new LuaMethod("ToObject", ToObject),
			new LuaMethod("Format", Format),
			new LuaMethod("GetHashCode", GetHashCode),
			new LuaMethod("Equals", Equals),
			new LuaMethod("New", _CreateEnum),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__tostring", Lua_ToString),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
		};

		LuaScriptMgr.RegisterLib(L, "System.Enum", typeof(Enum), regs, fields, null);
	}
Example #18
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("LoadAudioData", LoadAudioData),
            new LuaMethod("UnloadAudioData", UnloadAudioData),
            new LuaMethod("GetData", GetData),
            new LuaMethod("SetData", SetData),
            new LuaMethod("Create", Create),
            new LuaMethod("New", _CreateAudioClip),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("length", get_length, null),
            new LuaField("samples", get_samples, null),
            new LuaField("channels", get_channels, null),
            new LuaField("frequency", get_frequency, null),
            new LuaField("loadType", get_loadType, null),
            new LuaField("preloadAudioData", get_preloadAudioData, null),
            new LuaField("loadState", get_loadState, null),
            new LuaField("loadInBackground", get_loadInBackground, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AudioClip", typeof(AudioClip), regs, fields, typeof(Object));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("CreateFromMemory", CreateFromMemory),
			new LuaMethod("CreateFromMemoryImmediate", CreateFromMemoryImmediate),
			new LuaMethod("CreateFromFile", CreateFromFile),
			new LuaMethod("Contains", Contains),
			new LuaMethod("LoadAsset", LoadAsset),
			new LuaMethod("LoadAssetAsync", LoadAssetAsync),
			new LuaMethod("LoadAssetWithSubAssets", LoadAssetWithSubAssets),
			new LuaMethod("LoadAssetWithSubAssetsAsync", LoadAssetWithSubAssetsAsync),
			new LuaMethod("LoadAllAssets", LoadAllAssets),
			new LuaMethod("LoadAllAssetsAsync", LoadAllAssetsAsync),
			new LuaMethod("Unload", Unload),
			new LuaMethod("GetAllAssetNames", GetAllAssetNames),
			new LuaMethod("GetAllScenePaths", GetAllScenePaths),
			new LuaMethod("New", _CreateAssetBundle),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("mainAsset", get_mainAsset, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.AssetBundle", typeof(AssetBundle), regs, fields, typeof(Object));
	}
Example #20
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Equals", Equals),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("GetInstanceID", GetInstanceID),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("FindObjectsOfType", FindObjectsOfType),
            new LuaMethod("FindObjectOfType", FindObjectOfType),
            new LuaMethod("DontDestroyOnLoad", DontDestroyOnLoad),
            new LuaMethod("ToString", ToString),
            new LuaMethod("DestroyObject", DestroyObject),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("New", _CreateObject),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("hideFlags", get_hideFlags, set_hideFlags),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Object", typeof(Object), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateAnimationEvent),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("stringParameter", get_stringParameter, set_stringParameter),
            new LuaField("floatParameter", get_floatParameter, set_floatParameter),
            new LuaField("intParameter", get_intParameter, set_intParameter),
            new LuaField("objectReferenceParameter", get_objectReferenceParameter, set_objectReferenceParameter),
            new LuaField("functionName", get_functionName, set_functionName),
            new LuaField("time", get_time, set_time),
            new LuaField("messageOptions", get_messageOptions, set_messageOptions),
            new LuaField("isFiredByLegacy", get_isFiredByLegacy, null),
            new LuaField("isFiredByAnimator", get_isFiredByAnimator, null),
            new LuaField("animationState", get_animationState, null),
            new LuaField("animatorStateInfo", get_animatorStateInfo, null),
            new LuaField("animatorClipInfo", get_animatorClipInfo, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AnimationEvent", typeof(AnimationEvent), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateBoneWeight),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("weight0", get_weight0, set_weight0),
            new LuaField("weight1", get_weight1, set_weight1),
            new LuaField("weight2", get_weight2, set_weight2),
            new LuaField("weight3", get_weight3, set_weight3),
            new LuaField("boneIndex0", get_boneIndex0, set_boneIndex0),
            new LuaField("boneIndex1", get_boneIndex1, set_boneIndex1),
            new LuaField("boneIndex2", get_boneIndex2, set_boneIndex2),
            new LuaField("boneIndex3", get_boneIndex3, set_boneIndex3),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.BoneWeight", typeof(BoneWeight), regs, fields, null);
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateSimpleFramework_AppConst),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("DebugMode", get_DebugMode, set_DebugMode),
            new LuaField("UpdateMode", get_UpdateMode, set_UpdateMode),
            new LuaField("TimerInterval", get_TimerInterval, set_TimerInterval),
            new LuaField("GameFrameRate", get_GameFrameRate, set_GameFrameRate),
            new LuaField("UsePbc", get_UsePbc, set_UsePbc),
            new LuaField("UseLpeg", get_UseLpeg, set_UseLpeg),
            new LuaField("UsePbLua", get_UsePbLua, set_UsePbLua),
            new LuaField("UseCJson", get_UseCJson, set_UseCJson),
            new LuaField("LuaEncode", get_LuaEncode, set_LuaEncode),
            new LuaField("UserId", get_UserId, set_UserId),
            new LuaField("AppName", get_AppName, set_AppName),
            new LuaField("AppPrefix", get_AppPrefix, set_AppPrefix),
            new LuaField("ExtName", get_ExtName, set_ExtName),
            new LuaField("AssetDirname", get_AssetDirname, set_AssetDirname),
            new LuaField("WebUrl", get_WebUrl, set_WebUrl),
            new LuaField("SocketPort", get_SocketPort, set_SocketPort),
            new LuaField("SocketAddress", get_SocketAddress, set_SocketAddress),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.AppConst", typeof(SimpleFramework.AppConst), regs, fields, typeof(object));
    }
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLocalCorners", GetLocalCorners),
			new LuaMethod("GetWorldCorners", GetWorldCorners),
			new LuaMethod("SetInsetAndSizeFromParentEdge", SetInsetAndSizeFromParentEdge),
			new LuaMethod("SetSizeWithCurrentAnchors", SetSizeWithCurrentAnchors),
			new LuaMethod("New", _CreateRectTransform),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("rect", get_rect, null),
			new LuaField("anchorMin", get_anchorMin, set_anchorMin),
			new LuaField("anchorMax", get_anchorMax, set_anchorMax),
			new LuaField("anchoredPosition3D", get_anchoredPosition3D, set_anchoredPosition3D),
			new LuaField("anchoredPosition", get_anchoredPosition, set_anchoredPosition),
			new LuaField("sizeDelta", get_sizeDelta, set_sizeDelta),
			new LuaField("pivot", get_pivot, set_pivot),
			new LuaField("offsetMin", get_offsetMin, set_offsetMin),
			new LuaField("offsetMax", get_offsetMax, set_offsetMax),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.RectTransform", typeof(RectTransform), regs, fields, typeof(Transform));
	}
Example #25
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLights", GetLights),
			new LuaMethod("New", _CreateLight),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("type", get_type, set_type),
			new LuaField("color", get_color, set_color),
			new LuaField("intensity", get_intensity, set_intensity),
			new LuaField("bounceIntensity", get_bounceIntensity, set_bounceIntensity),
			new LuaField("shadows", get_shadows, set_shadows),
			new LuaField("shadowStrength", get_shadowStrength, set_shadowStrength),
			new LuaField("shadowBias", get_shadowBias, set_shadowBias),
			new LuaField("shadowNormalBias", get_shadowNormalBias, set_shadowNormalBias),
			new LuaField("range", get_range, set_range),
			new LuaField("spotAngle", get_spotAngle, set_spotAngle),
			new LuaField("cookieSize", get_cookieSize, set_cookieSize),
			new LuaField("cookie", get_cookie, set_cookie),
			new LuaField("flare", get_flare, set_flare),
			new LuaField("renderMode", get_renderMode, set_renderMode),
			new LuaField("alreadyLightmapped", get_alreadyLightmapped, set_alreadyLightmapped),
			new LuaField("cullingMask", get_cullingMask, set_cullingMask),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Light", typeof(Light), regs, fields, typeof(Behaviour));
	}
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("BeginLoad", BeginLoad),
            new LuaMethod("RemapVariantName", RemapVariantName),
            new LuaMethod("New", _CreateCTransport),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("key", get_key, set_key),
            new LuaField("m_AssetBundleManifest", get_m_AssetBundleManifest, set_m_AssetBundleManifest),
            new LuaField("OnProcess", get_OnProcess, set_OnProcess),
            new LuaField("OnComplete", get_OnComplete, set_OnComplete),
            new LuaField("OnError", get_OnError, set_OnError),
            new LuaField("isFree", get_isFree, null),
            new LuaField("req", get_req, null),
            new LuaField("Variants", get_Variants, set_Variants),
        };

        LuaScriptMgr.RegisterLib(L, "CTransport", typeof(CTransport), regs, fields, typeof(MonoBehaviour));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("InstantiateLocal", InstantiateLocal),
            new LuaMethod("InstantiateGlobal", InstantiateGlobal),
            new LuaMethod("SetParent", SetParent),
            new LuaMethod("GetType", GetType),
            new LuaMethod("Find", Find),
            new LuaMethod("FindWithTag", FindWithTag),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetAllChild", GetAllChild),
            new LuaMethod("ForeachChild", ForeachChild),
            new LuaMethod("Raycast", Raycast),
            new LuaMethod("RefreshShader", RefreshShader),
            new LuaMethod("GetAngle", GetAngle),
            new LuaMethod("GetUTF8String", GetUTF8String),
            new LuaMethod("GetBytes", GetBytes),
            new LuaMethod("GCCollect", GCCollect),
            new LuaMethod("New", _CreateLuaHelper),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
        };

        LuaScriptMgr.RegisterLib(L, "LuaHelper", typeof(LuaHelper), regs, fields, typeof(object));
    }
Example #28
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Raycast", Raycast),
            new LuaMethod("CalculatePath", CalculatePath),
            new LuaMethod("FindClosestEdge", FindClosestEdge),
            new LuaMethod("SamplePosition", SamplePosition),
            new LuaMethod("SetAreaCost", SetAreaCost),
            new LuaMethod("GetAreaCost", GetAreaCost),
            new LuaMethod("GetAreaFromName", GetAreaFromName),
            new LuaMethod("CalculateTriangulation", CalculateTriangulation),
            new LuaMethod("New", _CreateNavMesh),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("AllAreas", get_AllAreas, null),
            new LuaField("avoidancePredictionTime", get_avoidancePredictionTime, set_avoidancePredictionTime),
            new LuaField("pathfindingIterationsPerFrame", get_pathfindingIterationsPerFrame, set_pathfindingIterationsPerFrame),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.NavMesh", typeof(NavMesh), regs, fields, typeof(object));
    }
Example #29
0
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("New", _CreateTime),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("time", get_time, null),
			new LuaField("timeSinceLevelLoad", get_timeSinceLevelLoad, null),
			new LuaField("deltaTime", get_deltaTime, null),
			new LuaField("fixedTime", get_fixedTime, null),
			new LuaField("unscaledTime", get_unscaledTime, null),
			new LuaField("unscaledDeltaTime", get_unscaledDeltaTime, null),
			new LuaField("fixedDeltaTime", get_fixedDeltaTime, set_fixedDeltaTime),
			new LuaField("maximumDeltaTime", get_maximumDeltaTime, set_maximumDeltaTime),
			new LuaField("smoothDeltaTime", get_smoothDeltaTime, null),
			new LuaField("timeScale", get_timeScale, set_timeScale),
			new LuaField("frameCount", get_frameCount, null),
			new LuaField("renderedFrameCount", get_renderedFrameCount, null),
			new LuaField("realtimeSinceStartup", get_realtimeSinceStartup, null),
			new LuaField("captureFramerate", get_captureFramerate, set_captureFramerate),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Time", typeof(Time), regs, fields, typeof(object));
	}
	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetActiveScene", GetActiveScene),
			new LuaMethod("SetActiveScene", SetActiveScene),
			new LuaMethod("GetSceneByPath", GetSceneByPath),
			new LuaMethod("GetSceneByName", GetSceneByName),
			new LuaMethod("GetSceneAt", GetSceneAt),
			new LuaMethod("LoadScene", LoadScene),
			new LuaMethod("LoadSceneAsync", LoadSceneAsync),
			new LuaMethod("CreateScene", CreateScene),
			new LuaMethod("UnloadScene", UnloadScene),
			new LuaMethod("MergeScenes", MergeScenes),
			new LuaMethod("MoveGameObjectToScene", MoveGameObjectToScene),
			new LuaMethod("New", _CreateUnityEngine_SceneManagement_SceneManager),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("sceneCount", get_sceneCount, null),
			new LuaField("sceneCountInBuildSettings", get_sceneCountInBuildSettings, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.SceneManagement.SceneManager", typeof(UnityEngine.SceneManagement.SceneManager), regs, fields, typeof(object));
	}
Example #31
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetComponentInParent", GetComponentInParent),
            new LuaMethod("GetComponentsInParent", GetComponentsInParent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("CompareTag", CompareTag),
            new LuaMethod("SendMessageUpwards", SendMessageUpwards),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("BroadcastMessage", BroadcastMessage),
            new LuaMethod("DOTogglePause", DOTogglePause),
            new LuaMethod("DORewind", DORewind),
            new LuaMethod("DORestart", DORestart),
            new LuaMethod("DOPlayForward", DOPlayForward),
            new LuaMethod("DOPlayBackwards", DOPlayBackwards),
            new LuaMethod("DOPlay", DOPlay),
            new LuaMethod("DOPause", DOPause),
            new LuaMethod("DOGoto", DOGoto),
            new LuaMethod("DOFlip", DOFlip),
            new LuaMethod("DOKill", DOKill),
            new LuaMethod("DOComplete", DOComplete),
            new LuaMethod("New", _CreateComponent),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("transform", get_transform, null),
            new LuaField("gameObject", get_gameObject, null),
            new LuaField("tag", get_tag, set_tag),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Component", typeof(Component), regs, fields, typeof(Object));
    }
Example #32
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("OnWeChatPay", OnWeChatPay),
            new LuaMethod("OnWeChatSendAuth", OnWeChatSendAuth),
            new LuaMethod("OnWeChatSendWeb", OnWeChatSendWeb),
            new LuaMethod("OnClick_WebActivity", OnClick_WebActivity),
            new LuaMethod("StartIOSStartRecharge", StartIOSStartRecharge),
            new LuaMethod("OpenAndroidApp", OpenAndroidApp),
            new LuaMethod("OpenIOSApp", OpenIOSApp),
            new LuaMethod("New", _CreateWXPayUtil),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("out_trade_no", get_out_trade_no, set_out_trade_no),
        };

        LuaScriptMgr.RegisterLib(L, "WXPayUtil", typeof(WXPayUtil), regs, fields, typeof(object));
    }
Example #33
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("ClosestPointOnBounds", new LuaCSFunction(ColliderWrap.ClosestPointOnBounds)),
         new LuaMethod("Raycast", new LuaCSFunction(ColliderWrap.Raycast)),
         new LuaMethod("New", new LuaCSFunction(ColliderWrap._CreateCollider)),
         new LuaMethod("GetClassType", new LuaCSFunction(ColliderWrap.GetClassType)),
         new LuaMethod("__eq", new LuaCSFunction(ColliderWrap.Lua_Eq))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("enabled", new LuaCSFunction(ColliderWrap.get_enabled), new LuaCSFunction(ColliderWrap.set_enabled)),
         new LuaField("attachedRigidbody", new LuaCSFunction(ColliderWrap.get_attachedRigidbody), null),
         new LuaField("isTrigger", new LuaCSFunction(ColliderWrap.get_isTrigger), new LuaCSFunction(ColliderWrap.set_isTrigger)),
         new LuaField("contactOffset", new LuaCSFunction(ColliderWrap.get_contactOffset), new LuaCSFunction(ColliderWrap.set_contactOffset)),
         new LuaField("material", new LuaCSFunction(ColliderWrap.get_material), new LuaCSFunction(ColliderWrap.set_material)),
         new LuaField("sharedMaterial", new LuaCSFunction(ColliderWrap.get_sharedMaterial), new LuaCSFunction(ColliderWrap.set_sharedMaterial)),
         new LuaField("bounds", new LuaCSFunction(ColliderWrap.get_bounds), null)
     };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.Collider", typeof(Collider), regs, fields, typeof(Component));
 }
Example #34
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("AddNativeFunctionCallback", AddNativeFunctionCallback),
            new LuaMethod("SetAppInfo", SetAppInfo),
            new LuaMethod("InitCenter", InitCenter),
            new LuaMethod("LoginCenter", LoginCenter),
            new LuaMethod("AppendQQGroup", AppendQQGroup),
            new LuaMethod("GetUserInfo", GetUserInfo),
            new LuaMethod("New", _CreateNativeCodeManager),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("Instance", get_Instance, null),
        };

        LuaScriptMgr.RegisterLib(L, "NativeCodeManager", typeof(NativeCodeManager), regs, fields, typeof(MonoBehaviour));
    }
Example #35
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("GetTemporary", new LuaCSFunction(RenderTextureWrap.GetTemporary)),
         new LuaMethod("ReleaseTemporary", new LuaCSFunction(RenderTextureWrap.ReleaseTemporary)),
         new LuaMethod("Create", new LuaCSFunction(RenderTextureWrap.Create)),
         new LuaMethod("Release", new LuaCSFunction(RenderTextureWrap.Release)),
         new LuaMethod("IsCreated", new LuaCSFunction(RenderTextureWrap.IsCreated)),
         new LuaMethod("DiscardContents", new LuaCSFunction(RenderTextureWrap.DiscardContents)),
         new LuaMethod("MarkRestoreExpected", new LuaCSFunction(RenderTextureWrap.MarkRestoreExpected)),
         new LuaMethod("SetGlobalShaderProperty", new LuaCSFunction(RenderTextureWrap.SetGlobalShaderProperty)),
         new LuaMethod("GetTexelOffset", new LuaCSFunction(RenderTextureWrap.GetTexelOffset)),
         new LuaMethod("SupportsStencil", new LuaCSFunction(RenderTextureWrap.SupportsStencil)),
         new LuaMethod("New", new LuaCSFunction(RenderTextureWrap._CreateRenderTexture)),
         new LuaMethod("GetClassType", new LuaCSFunction(RenderTextureWrap.GetClassType)),
         new LuaMethod("__eq", new LuaCSFunction(RenderTextureWrap.Lua_Eq))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("width", new LuaCSFunction(RenderTextureWrap.get_width), new LuaCSFunction(RenderTextureWrap.set_width)),
         new LuaField("height", new LuaCSFunction(RenderTextureWrap.get_height), new LuaCSFunction(RenderTextureWrap.set_height)),
         new LuaField("depth", new LuaCSFunction(RenderTextureWrap.get_depth), new LuaCSFunction(RenderTextureWrap.set_depth)),
         new LuaField("isPowerOfTwo", new LuaCSFunction(RenderTextureWrap.get_isPowerOfTwo), new LuaCSFunction(RenderTextureWrap.set_isPowerOfTwo)),
         new LuaField("sRGB", new LuaCSFunction(RenderTextureWrap.get_sRGB), null),
         new LuaField("format", new LuaCSFunction(RenderTextureWrap.get_format), new LuaCSFunction(RenderTextureWrap.set_format)),
         new LuaField("useMipMap", new LuaCSFunction(RenderTextureWrap.get_useMipMap), new LuaCSFunction(RenderTextureWrap.set_useMipMap)),
         new LuaField("generateMips", new LuaCSFunction(RenderTextureWrap.get_generateMips), new LuaCSFunction(RenderTextureWrap.set_generateMips)),
         new LuaField("isCubemap", new LuaCSFunction(RenderTextureWrap.get_isCubemap), new LuaCSFunction(RenderTextureWrap.set_isCubemap)),
         new LuaField("isVolume", new LuaCSFunction(RenderTextureWrap.get_isVolume), new LuaCSFunction(RenderTextureWrap.set_isVolume)),
         new LuaField("volumeDepth", new LuaCSFunction(RenderTextureWrap.get_volumeDepth), new LuaCSFunction(RenderTextureWrap.set_volumeDepth)),
         new LuaField("antiAliasing", new LuaCSFunction(RenderTextureWrap.get_antiAliasing), new LuaCSFunction(RenderTextureWrap.set_antiAliasing)),
         new LuaField("enableRandomWrite", new LuaCSFunction(RenderTextureWrap.get_enableRandomWrite), new LuaCSFunction(RenderTextureWrap.set_enableRandomWrite)),
         new LuaField("colorBuffer", new LuaCSFunction(RenderTextureWrap.get_colorBuffer), null),
         new LuaField("depthBuffer", new LuaCSFunction(RenderTextureWrap.get_depthBuffer), null),
         new LuaField("active", new LuaCSFunction(RenderTextureWrap.get_active), new LuaCSFunction(RenderTextureWrap.set_active))
     };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.RenderTexture", typeof(RenderTexture), regs, fields, typeof(Texture));
 }
Example #36
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateRoleShape),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("roleShapeId", get_roleShapeId, set_roleShapeId),
            new LuaField("height", get_height, set_height),
            new LuaField("body_id", get_body_id, set_body_id),
            new LuaField("hair_id", get_hair_id, set_hair_id),
            new LuaField("upper_id", get_upper_id, set_upper_id),
            new LuaField("lower_id", get_lower_id, set_lower_id),
            new LuaField("shoes_id", get_shoes_id, set_shoes_id),
            new LuaField("back_id", get_back_id, set_back_id),
        };

        LuaScriptMgr.RegisterLib(L, "RoleShape", typeof(RoleShape), regs, fields, typeof(object));
    }
Example #37
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Begin", Begin),
            new LuaMethod("SetStartToCurrentValue", SetStartToCurrentValue),
            new LuaMethod("SetEndToCurrentValue", SetEndToCurrentValue),
            new LuaMethod("New", _CreateTweenRotation),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("from", get_from, set_from),
            new LuaField("to", get_to, set_to),
            new LuaField("cachedTransform", get_cachedTransform, null),
            new LuaField("value", get_value, set_value),
        };

        LuaScriptMgr.RegisterLib(L, "TweenRotation", typeof(TweenRotation), regs, fields, typeof(UITweener));
    }
Example #38
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("InitDoTween", InitDoTween),
            new LuaMethod("DoMove", DoMove),
            new LuaMethod("DoLocalMove", DoLocalMove),
            new LuaMethod("DoLocalRotate", DoLocalRotate),
            new LuaMethod("DoScale", DoScale),
            new LuaMethod("DoFade", DoFade),
            new LuaMethod("DoValue", DoValue),
            new LuaMethod("New", _CreateDoTweenManager),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("self", get_self, set_self),
        };

        LuaScriptMgr.RegisterLib(L, "DoTweenManager", typeof(DoTweenManager), regs, fields, typeof(object));
    }
Example #39
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("IsInteractable", IsInteractable),
            new LuaMethod("FindSelectable", FindSelectable),
            new LuaMethod("FindSelectableOnLeft", FindSelectableOnLeft),
            new LuaMethod("FindSelectableOnRight", FindSelectableOnRight),
            new LuaMethod("FindSelectableOnUp", FindSelectableOnUp),
            new LuaMethod("FindSelectableOnDown", FindSelectableOnDown),
            new LuaMethod("OnMove", OnMove),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("OnPointerUp", OnPointerUp),
            new LuaMethod("OnPointerEnter", OnPointerEnter),
            new LuaMethod("OnPointerExit", OnPointerExit),
            new LuaMethod("OnSelect", OnSelect),
            new LuaMethod("OnDeselect", OnDeselect),
            new LuaMethod("Select", Select),
            new LuaMethod("New", _CreateSelectable),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("allSelectables", get_allSelectables, null),
            new LuaField("navigation", get_navigation, set_navigation),
            new LuaField("transition", get_transition, set_transition),
            new LuaField("colors", get_colors, set_colors),
            new LuaField("spriteState", get_spriteState, set_spriteState),
            new LuaField("animationTriggers", get_animationTriggers, set_animationTriggers),
            new LuaField("targetGraphic", get_targetGraphic, set_targetGraphic),
            new LuaField("interactable", get_interactable, set_interactable),
            new LuaField("image", get_image, set_image),
            new LuaField("animator", get_animator, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.Selectable", typeof(Selectable), regs, fields, typeof(UIBehaviour));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetModifiedMaterial", GetModifiedMaterial),
            new LuaMethod("Cull", Cull),
            new LuaMethod("SetClipRect", SetClipRect),
            new LuaMethod("RecalculateClipping", RecalculateClipping),
            new LuaMethod("RecalculateMasking", RecalculateMasking),
            new LuaMethod("New", _CreateUnityEngine_UI_MaskableGraphic),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("onCullStateChanged", get_onCullStateChanged, set_onCullStateChanged),
            new LuaField("maskable", get_maskable, set_maskable),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.MaskableGraphic", typeof(UnityEngine.UI.MaskableGraphic), regs, fields, typeof(UnityEngine.UI.Graphic));
    }
Example #41
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("CreateFromMemory", new LuaCSFunction(AssetBundleWrap.CreateFromMemory)),
         new LuaMethod("CreateFromMemoryImmediate", new LuaCSFunction(AssetBundleWrap.CreateFromMemoryImmediate)),
         new LuaMethod("CreateFromFile", new LuaCSFunction(AssetBundleWrap.CreateFromFile)),
         new LuaMethod("Contains", new LuaCSFunction(AssetBundleWrap.Contains)),
         new LuaMethod("Load", new LuaCSFunction(AssetBundleWrap.Load)),
         new LuaMethod("LoadAsync", new LuaCSFunction(AssetBundleWrap.LoadAsync)),
         new LuaMethod("LoadAll", new LuaCSFunction(AssetBundleWrap.LoadAll)),
         new LuaMethod("Unload", new LuaCSFunction(AssetBundleWrap.Unload)),
         new LuaMethod("New", new LuaCSFunction(AssetBundleWrap._CreateAssetBundle)),
         new LuaMethod("GetClassType", new LuaCSFunction(AssetBundleWrap.GetClassType)),
         new LuaMethod("__eq", new LuaCSFunction(AssetBundleWrap.Lua_Eq))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("mainAsset", new LuaCSFunction(AssetBundleWrap.get_mainAsset), null)
     };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.AssetBundle", typeof(AssetBundle), regs, fields, typeof(UnityEngine.Object));
 }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateAttrNameData),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("id", get_id, set_id),
            new LuaField("type", get_type, set_type),
            new LuaField("symbol", get_symbol, set_symbol),
            new LuaField("name", get_name, set_name),
            new LuaField("display", get_display, set_display),
            new LuaField("recommend", get_recommend, set_recommend),
            new LuaField("is_factor", get_is_factor, set_is_factor),
            new LuaField("fc_weight", get_fc_weight, set_fc_weight),
        };

        LuaScriptMgr.RegisterLib(L, "AttrNameData", typeof(AttrNameData), regs, fields, typeof(object));
    }
Example #43
0
        private static void generateColumns()
        {
            int colCount = GUI.Instance.rCore.FieldCount;

            DataGridViewTextBoxColumn[] columns = new DataGridViewTextBoxColumn[colCount];

            for (int i = 0; i < colCount; i++)
            {
                LuaField field = GUI.Instance.rCore.GetField(i);

                columns[i] = new DataGridViewTextBoxColumn()
                {
                    Name       = field.Name,
                    HeaderText = field.Name,
                    Width      = 100,
                    Resizable  = DataGridViewTriState.True,
                    Visible    = field.Show
                };
            }

            GUI.Instance.TabControls.AddGridColumns(columns);
        }
    public static System.Type Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("IsRaycastLocationValid", IsRaycastLocationValid),
            new LuaMethod("new", _CreateCanvasGroup),
            new LuaMethod("GetType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("alpha", get_alpha, set_alpha),
            new LuaField("interactable", get_interactable, set_interactable),
            new LuaField("blocksRaycasts", get_blocksRaycasts, set_blocksRaycasts),
            new LuaField("ignoreParentGroups", get_ignoreParentGroups, set_ignoreParentGroups),
        };

        var type = typeof(CanvasGroup);

        L.WrapCSharpObject(type, regs, fields);
        return(type);
    }
Example #45
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("NotifyToggleOn", NotifyToggleOn),
            new LuaMethod("UnregisterToggle", UnregisterToggle),
            new LuaMethod("RegisterToggle", RegisterToggle),
            new LuaMethod("AnyTogglesOn", AnyTogglesOn),
            new LuaMethod("ActiveToggles", ActiveToggles),
            new LuaMethod("SetAllTogglesOff", SetAllTogglesOff),
            new LuaMethod("New", _CreateUnityEngine_UI_ToggleGroup),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("allowSwitchOff", get_allowSwitchOff, set_allowSwitchOff),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.ToggleGroup", typeof(UnityEngine.UI.ToggleGroup), regs, fields, typeof(UnityEngine.EventSystems.UIBehaviour));
    }
Example #46
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateBadgeSlotBaseConfig),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("id", get_id, set_id),
            new LuaField("name", get_name, set_name),
            new LuaField("category", get_category, set_category),
            new LuaField("requireLevel", get_requireLevel, set_requireLevel),
            new LuaField("layoutPosx", get_layoutPosx, set_layoutPosx),
            new LuaField("layoutPosy", get_layoutPosy, set_layoutPosy),
            new LuaField("unlockCostGoodsId", get_unlockCostGoodsId, set_unlockCostGoodsId),
            new LuaField("unlockCostGoodsNum", get_unlockCostGoodsNum, set_unlockCostGoodsNum),
        };

        LuaScriptMgr.RegisterLib(L, "BadgeSlotBaseConfig", typeof(BadgeSlotBaseConfig), regs, fields, typeof(object));
    }
Example #47
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("StartTimer", StartTimer),
            new LuaMethod("StopTimer", StopTimer),
            new LuaMethod("AddTimerEvent", AddTimerEvent),
            new LuaMethod("RemoveTimerEvent", RemoveTimerEvent),
            new LuaMethod("StopTimerEvent", StopTimerEvent),
            new LuaMethod("ResumeTimerEvent", ResumeTimerEvent),
            new LuaMethod("New", _CreateTeacher_Manager_TimerManager),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("Interval", get_Interval, set_Interval),
        };

        LuaScriptMgr.RegisterLib(L, "Teacher.Manager.TimerManager", typeof(Teacher.Manager.TimerManager), regs, fields, typeof(View));
    }
Example #48
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("New", new LuaCSFunction(ParticleAnimatorWrap._CreateParticleAnimator)),
         new LuaMethod("GetClassType", new LuaCSFunction(ParticleAnimatorWrap.GetClassType)),
         new LuaMethod("__eq", new LuaCSFunction(ParticleAnimatorWrap.Lua_Eq))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("doesAnimateColor", new LuaCSFunction(ParticleAnimatorWrap.get_doesAnimateColor), new LuaCSFunction(ParticleAnimatorWrap.set_doesAnimateColor)),
         new LuaField("worldRotationAxis", new LuaCSFunction(ParticleAnimatorWrap.get_worldRotationAxis), new LuaCSFunction(ParticleAnimatorWrap.set_worldRotationAxis)),
         new LuaField("localRotationAxis", new LuaCSFunction(ParticleAnimatorWrap.get_localRotationAxis), new LuaCSFunction(ParticleAnimatorWrap.set_localRotationAxis)),
         new LuaField("sizeGrow", new LuaCSFunction(ParticleAnimatorWrap.get_sizeGrow), new LuaCSFunction(ParticleAnimatorWrap.set_sizeGrow)),
         new LuaField("rndForce", new LuaCSFunction(ParticleAnimatorWrap.get_rndForce), new LuaCSFunction(ParticleAnimatorWrap.set_rndForce)),
         new LuaField("force", new LuaCSFunction(ParticleAnimatorWrap.get_force), new LuaCSFunction(ParticleAnimatorWrap.set_force)),
         new LuaField("damping", new LuaCSFunction(ParticleAnimatorWrap.get_damping), new LuaCSFunction(ParticleAnimatorWrap.set_damping)),
         new LuaField("autodestruct", new LuaCSFunction(ParticleAnimatorWrap.get_autodestruct), new LuaCSFunction(ParticleAnimatorWrap.set_autodestruct)),
         new LuaField("colorAnimation", new LuaCSFunction(ParticleAnimatorWrap.get_colorAnimation), new LuaCSFunction(ParticleAnimatorWrap.set_colorAnimation))
     };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.ParticleAnimator", typeof(ParticleAnimator), regs, fields, typeof(Component));
 }
Example #49
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateGames_Module_Wars_WarOverData),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("isRecord", get_isRecord, set_isRecord),
            new LuaField("enterData", get_enterData, set_enterData),
            new LuaField("overType", get_overType, set_overType),
            new LuaField("stageId", get_stageId, set_stageId),
            new LuaField("vsmode", get_vsmode, set_vsmode),
            new LuaField("time", get_time, set_time),
            new LuaField("isOverTime", get_isOverTime, set_isOverTime),
            new LuaField("legionDatas", get_legionDatas, set_legionDatas),
        };

        LuaScriptMgr.RegisterLib(L, "Games.Module.Wars.WarOverData", typeof(Games.Module.Wars.WarOverData), regs, fields, typeof(object));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("OnInit", OnInit),
            new LuaMethod("Unload", Unload),
            new LuaMethod("CallMethod", CallMethod),
            new LuaMethod("AddEvent", AddEvent),
            new LuaMethod("SendConnect", SendConnect),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("New", _CreateSimpleFramework_Manager_NetworkManager),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("Instance", get_Instance, null),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.Manager.NetworkManager", typeof(SimpleFramework.Manager.NetworkManager), regs, fields, typeof(View));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("PropToProtoPropInfoList", PropToProtoPropInfoList),
            new LuaMethod("ProtoPropInfoToPropList", ProtoPropInfoToPropList),
            new LuaMethod("To__S_SyncSkill_0x822", To__S_SyncSkill_0x822),
            new LuaMethod("AddStoC", AddStoC),
            new LuaMethod("S_BattleStart_0x812", S_BattleStart_0x812),
            new LuaMethod("C_RecordSubGuideStep_0x119", C_RecordSubGuideStep_0x119),
            new LuaMethod("C_BattleLeave_0x813", C_BattleLeave_0x813),
            new LuaMethod("C_BattleEnd_0x830", C_BattleEnd_0x830),
            new LuaMethod("C_UploadBattleVideo_0x550", C_UploadBattleVideo_0x550),
            new LuaMethod("C_LoadProgress", C_LoadProgress),
            new LuaMethod("C_BattleLoad_0x811", C_BattleLoad_0x811),
            new LuaMethod("C_SyncSendArm_0x820", C_SyncSendArm_0x820),
            new LuaMethod("C_SyncSkill_0x822", C_SyncSkill_0x822),
            new LuaMethod("C_SyncUplevel_0x825", C_SyncUplevel_0x825),
            new LuaMethod("C_SyncTurret_0x826", C_SyncTurret_0x826),
            new LuaMethod("C_SyncBuild_0x827", C_SyncBuild_0x827),
            new LuaMethod("C_SyncHeroBackstage_0x828", C_SyncHeroBackstage_0x828),
            new LuaMethod("Clear", Clear),
            new LuaMethod("New", _CreateGames_Module_Wars_WarService),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("PROP_FLOAT_MULTIPLIER", get_PROP_FLOAT_MULTIPLIER, set_PROP_FLOAT_MULTIPLIER),
            new LuaField("backMenuId", get_backMenuId, set_backMenuId),
            new LuaField("stageId", get_stageId, set_stageId),
            new LuaField("roomId", get_roomId, set_roomId),
            new LuaField("roleId", get_roleId, set_roleId),
            new LuaField("ownLegionId", get_ownLegionId, set_ownLegionId),
            new LuaField("sendArmUid", get_sendArmUid, set_sendArmUid),
        };

        LuaScriptMgr.RegisterLib(L, "Games.Module.Wars.WarService", typeof(Games.Module.Wars.WarService), regs, fields, typeof(CC.Runtime.Service));
    }
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("CreatePrimitive", CreatePrimitive),
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponentInParent", GetComponentInParent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetComponentsInParent", GetComponentsInParent),
            new LuaMethod("SetActive", SetActive),
            new LuaMethod("CompareTag", CompareTag),
            new LuaMethod("FindGameObjectWithTag", FindGameObjectWithTag),
            new LuaMethod("FindWithTag", FindWithTag),
            new LuaMethod("FindGameObjectsWithTag", FindGameObjectsWithTag),
            new LuaMethod("SendMessageUpwards", SendMessageUpwards),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("BroadcastMessage", BroadcastMessage),
            new LuaMethod("AddComponent", AddComponent),
            new LuaMethod("Find", Find),
            new LuaMethod("New", _CreateGameObject),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("transform", get_transform, null),
            new LuaField("layer", get_layer, set_layer),
            new LuaField("activeSelf", get_activeSelf, null),
            new LuaField("activeInHierarchy", get_activeInHierarchy, null),
            new LuaField("isStatic", get_isStatic, set_isStatic),
            new LuaField("tag", get_tag, set_tag),
            new LuaField("gameObject", get_gameObject, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.GameObject", typeof(GameObject), regs, fields, typeof(Object));
    }
Example #53
0
 public static void Register(IntPtr L)
 {
     LuaMethod[] regs = new LuaMethod[]
     {
         new LuaMethod("Raycast", new LuaCSFunction(PhysicsWrap.Raycast)),
         new LuaMethod("RaycastAll", new LuaCSFunction(PhysicsWrap.RaycastAll)),
         new LuaMethod("Linecast", new LuaCSFunction(PhysicsWrap.Linecast)),
         new LuaMethod("OverlapSphere", new LuaCSFunction(PhysicsWrap.OverlapSphere)),
         new LuaMethod("CapsuleCast", new LuaCSFunction(PhysicsWrap.CapsuleCast)),
         new LuaMethod("SphereCast", new LuaCSFunction(PhysicsWrap.SphereCast)),
         new LuaMethod("CapsuleCastAll", new LuaCSFunction(PhysicsWrap.CapsuleCastAll)),
         new LuaMethod("SphereCastAll", new LuaCSFunction(PhysicsWrap.SphereCastAll)),
         new LuaMethod("CheckSphere", new LuaCSFunction(PhysicsWrap.CheckSphere)),
         new LuaMethod("CheckCapsule", new LuaCSFunction(PhysicsWrap.CheckCapsule)),
         new LuaMethod("IgnoreCollision", new LuaCSFunction(PhysicsWrap.IgnoreCollision)),
         new LuaMethod("IgnoreLayerCollision", new LuaCSFunction(PhysicsWrap.IgnoreLayerCollision)),
         new LuaMethod("GetIgnoreLayerCollision", new LuaCSFunction(PhysicsWrap.GetIgnoreLayerCollision)),
         new LuaMethod("New", new LuaCSFunction(PhysicsWrap._CreatePhysics)),
         new LuaMethod("GetClassType", new LuaCSFunction(PhysicsWrap.GetClassType))
     };
     LuaField[] fields = new LuaField[]
     {
         new LuaField("kIgnoreRaycastLayer", new LuaCSFunction(PhysicsWrap.get_kIgnoreRaycastLayer), null),
         new LuaField("kDefaultRaycastLayers", new LuaCSFunction(PhysicsWrap.get_kDefaultRaycastLayers), null),
         new LuaField("kAllLayers", new LuaCSFunction(PhysicsWrap.get_kAllLayers), null),
         new LuaField("IgnoreRaycastLayer", new LuaCSFunction(PhysicsWrap.get_IgnoreRaycastLayer), null),
         new LuaField("DefaultRaycastLayers", new LuaCSFunction(PhysicsWrap.get_DefaultRaycastLayers), null),
         new LuaField("AllLayers", new LuaCSFunction(PhysicsWrap.get_AllLayers), null),
         new LuaField("gravity", new LuaCSFunction(PhysicsWrap.get_gravity), new LuaCSFunction(PhysicsWrap.set_gravity)),
         new LuaField("minPenetrationForPenalty", new LuaCSFunction(PhysicsWrap.get_minPenetrationForPenalty), new LuaCSFunction(PhysicsWrap.set_minPenetrationForPenalty)),
         new LuaField("bounceThreshold", new LuaCSFunction(PhysicsWrap.get_bounceThreshold), new LuaCSFunction(PhysicsWrap.set_bounceThreshold)),
         new LuaField("sleepVelocity", new LuaCSFunction(PhysicsWrap.get_sleepVelocity), new LuaCSFunction(PhysicsWrap.set_sleepVelocity)),
         new LuaField("sleepAngularVelocity", new LuaCSFunction(PhysicsWrap.get_sleepAngularVelocity), new LuaCSFunction(PhysicsWrap.set_sleepAngularVelocity)),
         new LuaField("maxAngularVelocity", new LuaCSFunction(PhysicsWrap.get_maxAngularVelocity), new LuaCSFunction(PhysicsWrap.set_maxAngularVelocity)),
         new LuaField("solverIterationCount", new LuaCSFunction(PhysicsWrap.get_solverIterationCount), new LuaCSFunction(PhysicsWrap.set_solverIterationCount))
     };
     LuaScriptMgr.RegisterLib(L, "UnityEngine.Physics", typeof(Physics), regs, fields, typeof(object));
 }
    public static System.Type Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Rebuild", Rebuild),
            new LuaMethod("LayoutComplete", LayoutComplete),
            new LuaMethod("GraphicUpdateComplete", GraphicUpdateComplete),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("OnDrag", OnDrag),
            new LuaMethod("OnMove", OnMove),
            new LuaMethod("FindSelectableOnLeft", FindSelectableOnLeft),
            new LuaMethod("FindSelectableOnRight", FindSelectableOnRight),
            new LuaMethod("FindSelectableOnUp", FindSelectableOnUp),
            new LuaMethod("FindSelectableOnDown", FindSelectableOnDown),
            new LuaMethod("OnInitializePotentialDrag", OnInitializePotentialDrag),
            new LuaMethod("SetDirection", SetDirection),
            new LuaMethod("new", _CreateUnityEngine_UI_Slider),
            new LuaMethod("GetType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("fillRect", get_fillRect, set_fillRect),
            new LuaField("handleRect", get_handleRect, set_handleRect),
            new LuaField("direction", get_direction, set_direction),
            new LuaField("minValue", get_minValue, set_minValue),
            new LuaField("maxValue", get_maxValue, set_maxValue),
            new LuaField("wholeNumbers", get_wholeNumbers, set_wholeNumbers),
            new LuaField("value", get_value, set_value),
            new LuaField("normalizedValue", get_normalizedValue, set_normalizedValue),
            new LuaField("onValueChanged", get_onValueChanged, set_onValueChanged),
        };

        var type = typeof(UnityEngine.UI.Slider);

        L.WrapCSharpObject(type, regs, fields);
        return(type);
    }
Example #55
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("CreateExternalTexture", CreateExternalTexture),
            new LuaMethod("UpdateExternalTexture", UpdateExternalTexture),
            new LuaMethod("SetPixel", SetPixel),
            new LuaMethod("GetPixel", GetPixel),
            new LuaMethod("GetPixelBilinear", GetPixelBilinear),
            new LuaMethod("SetPixels", SetPixels),
            new LuaMethod("SetPixels32", SetPixels32),
            new LuaMethod("LoadImage", LoadImage),
            new LuaMethod("LoadRawTextureData", LoadRawTextureData),
            new LuaMethod("GetRawTextureData", GetRawTextureData),
            new LuaMethod("GetPixels", GetPixels),
            new LuaMethod("GetPixels32", GetPixels32),
            new LuaMethod("Apply", Apply),
            new LuaMethod("Resize", Resize),
            new LuaMethod("Compress", Compress),
            new LuaMethod("PackTextures", PackTextures),
            new LuaMethod("ReadPixels", ReadPixels),
            new LuaMethod("EncodeToPNG", EncodeToPNG),
            new LuaMethod("EncodeToJPG", EncodeToJPG),
            new LuaMethod("New", _CreateTexture2D),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("mipmapCount", get_mipmapCount, null),
            new LuaField("format", get_format, null),
            new LuaField("whiteTexture", get_whiteTexture, null),
            new LuaField("blackTexture", get_blackTexture, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Texture2D", typeof(Texture2D), regs, fields, typeof(Texture));
    }
Example #56
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Stop", Stop),
            new LuaMethod("Rewind", Rewind),
            new LuaMethod("Sample", Sample),
            new LuaMethod("IsPlaying", IsPlaying),
            new LuaMethod("get_Item", get_Item),
            new LuaMethod("Play", Play),
            new LuaMethod("CrossFade", CrossFade),
            new LuaMethod("Blend", Blend),
            new LuaMethod("CrossFadeQueued", CrossFadeQueued),
            new LuaMethod("PlayQueued", PlayQueued),
            new LuaMethod("AddClip", AddClip),
            new LuaMethod("RemoveClip", RemoveClip),
            new LuaMethod("GetClipCount", GetClipCount),
            new LuaMethod("SyncLayer", SyncLayer),
            new LuaMethod("GetEnumerator", GetEnumerator),
            new LuaMethod("GetClip", GetClip),
            new LuaMethod("New", _CreateAnimation),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("clip", get_clip, set_clip),
            new LuaField("playAutomatically", get_playAutomatically, set_playAutomatically),
            new LuaField("wrapMode", get_wrapMode, set_wrapMode),
            new LuaField("isPlaying", get_isPlaying, null),
            new LuaField("animatePhysics", get_animatePhysics, set_animatePhysics),
            new LuaField("cullingType", get_cullingType, set_cullingType),
            new LuaField("localBounds", get_localBounds, set_localBounds),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Animation", typeof(Animation), regs, fields, typeof(Behaviour));
    }
Example #57
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Dispose", Dispose),
            new LuaMethod("InitWWW", InitWWW),
            new LuaMethod("EscapeURL", EscapeURL),
            new LuaMethod("UnEscapeURL", UnEscapeURL),
            new LuaMethod("GetAudioClip", GetAudioClip),
            new LuaMethod("GetAudioClipCompressed", GetAudioClipCompressed),
            new LuaMethod("LoadImageIntoTexture", LoadImageIntoTexture),
            new LuaMethod("LoadUnityWeb", LoadUnityWeb),
            new LuaMethod("LoadFromCacheOrDownload", LoadFromCacheOrDownload),
            new LuaMethod("New", _CreateWWW),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("responseHeaders", get_responseHeaders, null),
            new LuaField("text", get_text, null),
            new LuaField("bytes", get_bytes, null),
            new LuaField("size", get_size, null),
            new LuaField("error", get_error, null),
            new LuaField("texture", get_texture, null),
            new LuaField("textureNonReadable", get_textureNonReadable, null),
            new LuaField("audioClip", get_audioClip, null),
            new LuaField("isDone", get_isDone, null),
            new LuaField("progress", get_progress, null),
            new LuaField("uploadProgress", get_uploadProgress, null),
            new LuaField("bytesDownloaded", get_bytesDownloaded, null),
            new LuaField("url", get_url, null),
            new LuaField("assetBundle", get_assetBundle, null),
            new LuaField("threadPriority", get_threadPriority, set_threadPriority),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.WWW", typeof(WWW), regs, fields, typeof(object));
    }
Example #58
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Raycast", Raycast),
            new LuaMethod("RaycastAll", RaycastAll),
            new LuaMethod("Linecast", Linecast),
            new LuaMethod("OverlapSphere", OverlapSphere),
            new LuaMethod("CapsuleCast", CapsuleCast),
            new LuaMethod("SphereCast", SphereCast),
            new LuaMethod("CapsuleCastAll", CapsuleCastAll),
            new LuaMethod("SphereCastAll", SphereCastAll),
            new LuaMethod("CheckSphere", CheckSphere),
            new LuaMethod("CheckCapsule", CheckCapsule),
            new LuaMethod("IgnoreCollision", IgnoreCollision),
            new LuaMethod("IgnoreLayerCollision", IgnoreLayerCollision),
            new LuaMethod("GetIgnoreLayerCollision", GetIgnoreLayerCollision),
            new LuaMethod("New", _CreatePhysics),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("kIgnoreRaycastLayer", get_kIgnoreRaycastLayer, null),
            new LuaField("kDefaultRaycastLayers", get_kDefaultRaycastLayers, null),
            new LuaField("kAllLayers", get_kAllLayers, null),
            new LuaField("IgnoreRaycastLayer", get_IgnoreRaycastLayer, null),
            new LuaField("DefaultRaycastLayers", get_DefaultRaycastLayers, null),
            new LuaField("AllLayers", get_AllLayers, null),
            new LuaField("gravity", get_gravity, set_gravity),
            new LuaField("bounceThreshold", get_bounceThreshold, set_bounceThreshold),
            new LuaField("sleepVelocity", get_sleepVelocity, set_sleepVelocity),
            new LuaField("sleepAngularVelocity", get_sleepAngularVelocity, set_sleepAngularVelocity),
            new LuaField("solverIterationCount", get_solverIterationCount, set_solverIterationCount),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Physics", typeof(Physics), regs, fields, typeof(object));
    }
Example #59
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("PreEnter", PreEnter),
            new LuaMethod("OnEnter", OnEnter),
            new LuaMethod("OnFaceToBasket", OnFaceToBasket),
            new LuaMethod("Update", Update),
            new LuaMethod("OnLeaveGround", OnLeaveGround),
            new LuaMethod("OnGround", OnGround),
            new LuaMethod("LateUpdate", LateUpdate),
            new LuaMethod("IsCommandValid", IsCommandValid),
            new LuaMethod("OnExit", OnExit),
            new LuaMethod("New", _CreatePlayerState),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("m_rotateTo", get_m_rotateTo, set_m_rotateTo),
            new LuaField("m_rotateFreeDir", get_m_rotateFreeDir, set_m_rotateFreeDir),
            new LuaField("m_relAngle", get_m_relAngle, set_m_relAngle),
            new LuaField("m_rotateType", get_m_rotateType, set_m_rotateType),
            new LuaField("m_lstActionId", get_m_lstActionId, set_m_lstActionId),
            new LuaField("m_speed", get_m_speed, set_m_speed),
            new LuaField("m_accelerate", get_m_accelerate, set_m_accelerate),
            new LuaField("m_turningSpeed", get_m_turningSpeed, set_m_turningSpeed),
            new LuaField("m_onActionDone", get_m_onActionDone, set_m_onActionDone),
            new LuaField("m_curExecSkill", get_m_curExecSkill, set_m_curExecSkill),
            new LuaField("m_animType", get_m_animType, set_m_animType),
            new LuaField("m_eState", get_m_eState, null),
            new LuaField("m_player", get_m_player, null),
            new LuaField("curAction", get_curAction, null),
            new LuaField("time", get_time, null),
        };

        LuaScriptMgr.RegisterLib(L, "PlayerState", typeof(PlayerState), regs, fields, typeof(object));
    }
Example #60
0
    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("MinMaxRect", MinMaxRect),
            new LuaMethod("Set", Set),
            new LuaMethod("ToString", ToString),
            new LuaMethod("Contains", Contains),
            new LuaMethod("Overlaps", Overlaps),
            new LuaMethod("NormalizedToPoint", NormalizedToPoint),
            new LuaMethod("PointToNormalized", PointToNormalized),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateRect),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("x", get_x, set_x),
            new LuaField("y", get_y, set_y),
            new LuaField("position", get_position, set_position),
            new LuaField("center", get_center, set_center),
            new LuaField("min", get_min, set_min),
            new LuaField("max", get_max, set_max),
            new LuaField("width", get_width, set_width),
            new LuaField("height", get_height, set_height),
            new LuaField("size", get_size, set_size),
            new LuaField("xMin", get_xMin, set_xMin),
            new LuaField("yMin", get_yMin, set_yMin),
            new LuaField("xMax", get_xMax, set_xMax),
            new LuaField("yMax", get_yMax, set_yMax),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Rect", typeof(Rect), regs, fields, null);
    }