コード例 #1
0
        static int _s_set_options(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.UI.Dropdown.OptionDataList gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionDataList)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.options = (System.Collections.Generic.List <UnityEngine.UI.Dropdown.OptionData>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.UI.Dropdown.OptionData>));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #2
0
        static int _g_get_options(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.UI.Dropdown.OptionDataList gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionDataList)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.options);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.Dropdown.OptionDataList o;
         o=new UnityEngine.UI.Dropdown.OptionDataList();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
コード例 #4
0
 /// <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.UI.Dropdown.OptionDataList optionDataList = (UnityEngine.UI.Dropdown.OptionDataList)value;
     foreach (string property in reader.Properties)
     {
         switch (property)
         {
         case "options":
             optionDataList.options = reader.ReadProperty <System.Collections.Generic.List <UnityEngine.UI.Dropdown.OptionData> > ();
             break;
         }
     }
 }
コード例 #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.UI.Dropdown.OptionDataList gen_ret = new UnityEngine.UI.Dropdown.OptionDataList();
                    translator.Push(L, 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.UI.Dropdown.OptionDataList constructor!"));
        }
コード例 #6
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.UI.Dropdown.OptionDataList optionDataList = new UnityEngine.UI.Dropdown.OptionDataList();
     ReadInto(optionDataList, reader);
     return(optionDataList);
 }
コード例 #7
0
 /// <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.UI.Dropdown.OptionDataList optionDataList = (UnityEngine.UI.Dropdown.OptionDataList)value;
     writer.WriteProperty("options", optionDataList.options);
 }