示例#1
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.Video.VideoClip();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#2
0
        static int _g_get_audioTrackCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Video.VideoClip __cl_gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.audioTrackCount);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
        static int _g_get_pixelAspectRatioDenominator(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, gen_to_be_invoked.pixelAspectRatioDenominator);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _g_get_originalPath(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.originalPath);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#5
0
文件: Clip.cs 项目: DonatelaNk/qsvr
        protected void Setup(ClipPlayer.PlayerValues values, AvailablePlayerType playerType, RenderType renderType)
        {
            //configure the clip with all the inputs
            _moviePath    = values.moviePath;
            _fileLocation = values.location;
            _videoClip    = values.videoClip;

            _playerType = playerType;
            _renderType = renderType;

            //build the components
            ResetPlayer();
            ResetRenderer();
        }
        /// <summary>
        /// Read the data into the specified value.
        /// </summary>
        /// <param name="value">Value.</param>
        /// <param name="reader">Reader.</param>
        public override void ReadInto(object value, ISaveGameReader reader)
        {
            UnityEngine.Video.VideoClip videoClip = (UnityEngine.Video.VideoClip)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "name":
                    videoClip.name = reader.ReadProperty <System.String>();
                    break;

                case "hideFlags":
                    videoClip.hideFlags = reader.ReadProperty <UnityEngine.HideFlags>();
                    break;
                }
            }
        }
示例#7
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.Video.VideoClip __cl_gen_ret = new UnityEngine.Video.VideoClip();
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoClip constructor!"));
        }
示例#8
0
        static int _m_GetAudioSampleRate(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Video.VideoClip __cl_gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);


            try {
                {
                    ushort audioTrackIdx = (ushort)LuaAPI.xlua_tointeger(L, 2);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioSampleRate(audioTrackIdx);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_GetAudioChannelCount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1);



                {
                    ushort _audioTrackIdx = (ushort)LuaAPI.xlua_tointeger(L, 2);

                    ushort gen_ret = gen_to_be_invoked.GetAudioChannelCount(_audioTrackIdx);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#10
0
 static TutorialParagraph CreateVideoParagraph(UnityEngine.Video.VideoClip video = null) =>
 new TutorialParagraph
 {
     Type = ParagraphType.Video, Video = video
 };
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.Video.VideoClip videoClip = (UnityEngine.Video.VideoClip)value;
     writer.WriteProperty("name", videoClip.name);
     writer.WriteProperty("hideFlags", videoClip.hideFlags);
 }