static int Add(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Relations), typeof(FairyGUI.GObject), typeof(FairyGUI.RelationType))) { FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.ToObject(L, 1); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.ToObject(L, 2); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.ToObject(L, 3); obj.Add(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Relations), typeof(FairyGUI.GObject), typeof(FairyGUI.RelationType), typeof(bool))) { FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.ToObject(L, 1); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.ToObject(L, 2); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.ToObject(L, 3); bool arg2 = LuaDLL.lua_toboolean(L, 4); obj.Add(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Relations.Add")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int Dispose(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); self.Dispose(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get_isEmpty(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); pushValue(l, true); pushValue(l, self.isEmpty); return(2); } catch (Exception e) { return(error(l, e)); } }
/// <summary> /// /// </summary> /// <param name="source"></param> public void CopyFrom(Relations source) { ClearAll(); List<RelationItem> arr = source._items; foreach (RelationItem ri in arr) { RelationItem item = new RelationItem(_owner); item.CopyFrom(ri); _items.Add(item); } }
static int ClearAll(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject <FairyGUI.Relations>(L, 1); obj.ClearAll(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int Setup(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.Utils.XML a1; checkType(l, 2, out a1); self.Setup(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); obj.Dispose(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int ClearFor(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); self.ClearFor(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int Setup(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject(L, 2, typeof(FairyGUI.Utils.XML)); obj.Setup(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ClearFor(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); obj.ClearFor(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int constructor(IntPtr l) { try { FairyGUI.Relations o; FairyGUI.GObject a1; checkType(l, 2, out a1); o = new FairyGUI.Relations(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int Contains(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); var ret = self.Contains(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int Remove(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); FairyGUI.RelationType arg1 = (FairyGUI.RelationType)ToLua.CheckObject(L, 3, typeof(FairyGUI.RelationType)); obj.Remove(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnOwnerSizeChanged(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.OnOwnerSizeChanged(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Contains(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject(L, 1, typeof(FairyGUI.Relations)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); bool o = obj.Contains(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Setup(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.Relations obj = (FairyGUI.Relations)ToLua.CheckObject <FairyGUI.Relations>(L, 1); FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject <FairyGUI.Utils.ByteBuffer>(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.Setup(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int OnOwnerSizeChanged(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.OnOwnerSizeChanged(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Remove(IntPtr l) { try { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); FairyGUI.RelationType a2; checkEnum(l, 3, out a2); self.Remove(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int get_handling(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Relations obj = (FairyGUI.Relations)o; FairyGUI.GObject ret = obj.handling; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index handling on a nil value")); } }
static int set_handling(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Relations obj = (FairyGUI.Relations)o; FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject <FairyGUI.GObject>(L, 2); obj.handling = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index handling on a nil value")); } }
static int get_isEmpty(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Relations obj = (FairyGUI.Relations)o; bool ret = obj.isEmpty; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isEmpty on a nil value" : e.Message)); } }
public GObject() { _width = 0; _height = 0; _alpha = 1; _rotation = 0; _visible = true; _touchable = true; _scaleX = 1; _scaleY = 1; _internalVisible = 1; id = "_n" + _gInstanceCounter++; name = string.Empty; CreateDisplayObject(); relations = new Relations(this); gearDisplay = new GearDisplay(this); gearXY = new GearXY(this); gearSize = new GearSize(this); gearLook = new GearLook(this); onClick = new EventListener(this, "onClick"); onRightClick = new EventListener(this, "onRightClick"); onTouchBegin = new EventListener(this, "onTouchBegin"); onTouchEnd = new EventListener(this, "onTouchEnd"); onRollOver = new EventListener(this, "onRollOver"); onRollOut = new EventListener(this, "onRollOut"); onAddedToStage = new EventListener(this, "onAddedToStage"); onRemovedFromStage = new EventListener(this, "onRemovedFromStage"); onKeyDown = new EventListener(this, "onKeyDown"); onClickLink = new EventListener(this, "onClickLink"); onPositionChanged = new EventListener(this, "onPositionChanged"); onSizeChanged = new EventListener(this, "onSizeChanged"); onDragStart = new EventListener(this, "onDragStart"); onDragEnd = new EventListener(this, "onDragEnd"); }
public GObject() { _width = 0; _height = 0; _alpha = 1; _rotation = 0; _visible = true; _touchable = true; _scaleX = 1; _scaleY = 1; _internalVisible = 1; id = "_n" + _gInstanceCounter++; name = string.Empty; CreateDisplayObject(); relations = new Relations(this); gearDisplay = new GearDisplay(this); gearXY = new GearXY(this); gearSize = new GearSize(this); gearLook = new GearLook(this); onClick = new EventListener(this, "onClick"); onRightClick = new EventListener(this, "onRightClick"); onMouseDown = new EventListener(this, "onMouseDown"); onMouseUp = new EventListener(this, "onMouseUp"); onRollOver = new EventListener(this, "onRollOver"); onRollOut = new EventListener(this, "onRollOut"); onAddedToStage = new EventListener(this, "onAddedToStage"); onRemovedFromStage = new EventListener(this, "onRemovedFromStage"); onKeyDown = new EventListener(this, "onKeyDown"); onClickLink = new EventListener(this, "onClickLink"); onXYChanged = new EventListener(this, "onXYChanged"); onSizeChanged = new EventListener(this, "onSizeChanged"); onDragStart = new EventListener(this, "onDragStart"); onDragEnd = new EventListener(this, "onDragEnd"); }
static int _CreateFairyGUI_Relations(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 1, typeof(FairyGUI.GObject)); FairyGUI.Relations obj = new FairyGUI.Relations(arg0); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.Relations.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int Add(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 3) { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); FairyGUI.RelationType a2; checkEnum(l, 3, out a2); self.Add(a1, a2); pushValue(l, true); return(1); } else if (argc == 4) { FairyGUI.Relations self = (FairyGUI.Relations)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); FairyGUI.RelationType a2; checkEnum(l, 3, out a2); System.Boolean a3; checkType(l, 4, out a3); self.Add(a1, a2, a3); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
public GObject() { _width = 0; _height = 0; _alpha = 1; _visible = true; _touchable = true; _scaleX = 1; _scaleY = 1; _internalVisible = 1; id = "_n" + _gInstanceCounter++; name = string.Empty; CreateDisplayObject(); relations = new Relations(this); _gears = new GearBase[8]; onClick = new EventListener(this, "onClick"); onRightClick = new EventListener(this, "onRightClick"); onTouchBegin = new EventListener(this, "onTouchBegin"); onTouchEnd = new EventListener(this, "onTouchEnd"); onRollOver = new EventListener(this, "onRollOver"); onRollOut = new EventListener(this, "onRollOut"); onAddedToStage = new EventListener(this, "onAddedToStage"); onRemovedFromStage = new EventListener(this, "onRemovedFromStage"); onKeyDown = new EventListener(this, "onKeyDown"); onClickLink = new EventListener(this, "onClickLink"); onPositionChanged = new EventListener(this, "onPositionChanged"); onSizeChanged = new EventListener(this, "onSizeChanged"); onDragStart = new EventListener(this, "onDragStart"); onDragMove = new EventListener(this, "onDragMove"); onDragEnd = new EventListener(this, "onDragEnd"); OnGearStop = new EventListener(this, "OnGearStop"); }