상속: Component
예제 #1
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.OcclusionPortal o;
     o = new UnityEngine.OcclusionPortal();
     pushObject(l, o);
     return(1);
 }
예제 #2
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.OcclusionPortal occlusionPortal = (UnityEngine.OcclusionPortal)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "open":
                    occlusionPortal.open = reader.ReadProperty <System.Boolean> ();
                    break;

                case "tag":
                    occlusionPortal.tag = reader.ReadProperty <System.String> ();
                    break;

                case "name":
                    occlusionPortal.name = reader.ReadProperty <System.String> ();
                    break;

                case "hideFlags":
                    occlusionPortal.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> ();
                    break;
                }
            }
        }
예제 #3
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.OcclusionPortal occlusionPortal = (UnityEngine.OcclusionPortal)value;
     writer.WriteProperty("open", occlusionPortal.open);
     writer.WriteProperty("tag", occlusionPortal.tag);
     writer.WriteProperty("name", occlusionPortal.name);
     writer.WriteProperty("hideFlags", occlusionPortal.hideFlags);
 }
예제 #4
0
    static public int set_open(IntPtr l)
    {
        UnityEngine.OcclusionPortal o = (UnityEngine.OcclusionPortal)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.open = v;
        return(0);
    }
 static public int get_open(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal self = (UnityEngine.OcclusionPortal)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.open);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.OcclusionPortal o;
			o=new UnityEngine.OcclusionPortal();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
 static public int get_open(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal self = (UnityEngine.OcclusionPortal)checkSelf(l);
         pushValue(l, self.open);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.OcclusionPortal o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.OcclusionPortal();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal o;
         o = new UnityEngine.OcclusionPortal();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal o;
         o = new UnityEngine.OcclusionPortal();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal o;
         o=new UnityEngine.OcclusionPortal();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 static public int set_open(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal self = (UnityEngine.OcclusionPortal)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.open = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_open(IntPtr l)
 {
     try {
         UnityEngine.OcclusionPortal self = (UnityEngine.OcclusionPortal)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.open = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
// fields

// properties
    static void OcclusionPortal_open(JSVCall vc)
    {
        if (vc.bGet)
        {
            UnityEngine.OcclusionPortal _this = (UnityEngine.OcclusionPortal)vc.csObj;
            var result = _this.open;
            JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
        }
        else
        {
            System.Boolean arg0 = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
            UnityEngine.OcclusionPortal _this = (UnityEngine.OcclusionPortal)vc.csObj;
            _this.open = arg0;
        }
    }
    static int _CreateOcclusionPortal(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            OcclusionPortal obj = new OcclusionPortal();
            LuaScriptMgr.Push(L, obj);
            return 1;
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: OcclusionPortal.New");
        }

        return 0;
    }
예제 #16
0
 static public int get_open(IntPtr l)
 {
     UnityEngine.OcclusionPortal o = (UnityEngine.OcclusionPortal)checkSelf(l);
     pushValue(l, o.open);
     return(1);
 }
예제 #17
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.OcclusionPortal occlusionPortal = SaveGameType.CreateComponent <UnityEngine.OcclusionPortal> ();
     ReadInto(occlusionPortal, reader);
     return(occlusionPortal);
 }