当前位置: 首页>>代码示例>>C#>>正文


C# LuaField类代码示例

本文整理汇总了C#中LuaField的典型用法代码示例。如果您正苦于以下问题:C# LuaField类的具体用法?C# LuaField怎么用?C# LuaField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LuaField类属于命名空间,在下文中一共展示了LuaField类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:32,代码来源:PLuaWrap.cs

示例2: Register

    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));
    }
开发者ID:amadabarney,项目名称:Bead,代码行数:25,代码来源:ParticleRendererWrap.cs

示例3: Register

	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));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:28,代码来源:TimeWrap.cs

示例4: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:34,代码来源:UnityEngine_UI_SliderWrap.cs

示例5: Register

	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));
	}
开发者ID:zhangf911,项目名称:ulua_debugger_demo,代码行数:32,代码来源:LightWrap.cs

示例6: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:27,代码来源:GraphicsWrap.cs

示例7: Register

	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));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:26,代码来源:CharacterControllerWrap.cs

示例8: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:26,代码来源:AnimationEventWrap.cs

示例9: Register

    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));
    }
开发者ID:amadabarney,项目名称:Bead,代码行数:29,代码来源:ObjectWrap.cs

示例10: Register

    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);
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:25,代码来源:BoneWeightWrap.cs

示例11: Register

    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));
    }
开发者ID:fancybit,项目名称:VoxelPrototype,代码行数:31,代码来源:SimpleFramework_AppConstWrap.cs

示例12: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:25,代码来源:Collider2DWrap.cs

示例13: Register

	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));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:28,代码来源:RectTransformWrap.cs

示例14: Register

    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));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:25,代码来源:CTransportWrap.cs

示例15: Register

	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));
	}
开发者ID:karl4711,项目名称:unitytest,代码行数:33,代码来源:DebugWrap.cs


注:本文中的LuaField类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。