Пример #1
0
        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);
        }
Пример #2
0
 static public int SetParams(IntPtr l)
 {
     try {
         FastAction.FastMove self = (FastAction.FastMove)checkSelf(l);
         System.Int32        a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         System.Boolean a3;
         checkType(l, 4, out a3);
         System.Boolean a4;
         checkType(l, 5, out a4);
         self.SetParams(a1, a2, a3, a4);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }