예제 #1
0
        public static void AddCommonEffect(
            TaskList tl,
            bool topMode,
            int picId,
            double x, double y, double r, double z, double a,
            double x_add, double y_add, double r_add, double z_add, double a_add,
            double x_add2, double y_add2, double r_add2, double z_add2, double a_add2
            )
        {
            GameCommonEffect i = new GameCommonEffect();

            i.Frame = 0;
            i.PicId = picId;
            i.Extra = CEE;

            i.X = x;
            i.Y = y;
            i.R = r;
            i.Z = z;
            i.A = a;

            i.XAdd = x_add;
            i.YAdd = y_add;
            i.RAdd = r_add;
            i.ZAdd = z_add;
            i.AAdd = a_add;

            i.XAdd2 = x_add2;
            i.YAdd2 = y_add2;
            i.RAdd2 = r_add2;
            i.ZAdd2 = z_add2;
            i.AAdd2 = a_add2;

            i.OutOfScreenFrame = 0;

            TaskList.AddTask_NT(tl, topMode, CommonEffectFunc, i, CommonEffectReleaseParam);
        }
예제 #2
0
 public static void AddTask <T>(TaskList tl, bool topMode, Func <T, bool> tf, T tp = null, Action <T> tr = null) where T : class
 {
     AddTask_NT(tl, topMode, p => tf((T)p), tp, p => tr((T)p));
 }