Пример #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 SetRenderQ(IntPtr l)
 {
     try {
         FastAction.FastMove self = (FastAction.FastMove)checkSelf(l);
         System.Int32        a1;
         checkType(l, 2, out a1);
         self.SetRenderQ(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }