static public int SetEndPos(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 1) { FastAction.FastMove self = (FastAction.FastMove)checkSelf(l); self.SetEndPos(); pushValue(l, true); return(1); } else if (argc == 4) { FastAction.FastMove self = (FastAction.FastMove)checkSelf(l); System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); self.SetEndPos(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 void actionBegin(FastMove fm, int renderQueue, float startX, float startY, float startZ, float endX, float endY, float endZ, int duration, int delay, bool world, bool noEvt) { if (fm == null) { return; } fm.SetParams(duration, delay, world, noEvt); if (renderQueue != 9999) { fm.SetRenderQ(renderQueue); } if (startX != 9999 && startY != 9999 && startZ != 9999) { fm.SetStartPos(startX, startY, startZ); } else { fm.SetStartPos(); } fm.SetEndPos(endX, endY, endZ); Begin(fm); }