예제 #1
0
    // Token: 0x06001A24 RID: 6692 RVA: 0x000EA598 File Offset: 0x000E8798
    public static void amMotionRegistFile(AppMain.AMS_MOTION motion, int file_id, AppMain.AMS_AMB_HEADER amb)
    {
        int num = 0;

        AppMain.AMS_MOTION_FILE ams_MOTION_FILE = motion.mtnfile[0];
        AppMain.ArrayPointer <AppMain.NNS_MOTION> arrayPointer = ams_MOTION_FILE.motion + ams_MOTION_FILE.motion_num;
        num++;
        int i = 1;

        while (i < 4)
        {
            AppMain.ArrayPointer <AppMain.NNS_MOTION> arrayPointer2 = motion.mtnfile[num].motion + motion.mtnfile[num].motion_num;
            if (arrayPointer < arrayPointer2)
            {
                arrayPointer = arrayPointer2;
            }
            i++;
            num++;
        }
        if (arrayPointer == null)
        {
            arrayPointer = new AppMain.ArrayPointer <AppMain.NNS_MOTION>(motion.mtnbuf, 0);
        }
        ams_MOTION_FILE            = motion.mtnfile[file_id];
        ams_MOTION_FILE.file       = amb;
        ams_MOTION_FILE.motion     = arrayPointer;
        ams_MOTION_FILE.motion_num = AppMain.amMotionSetup(arrayPointer, amb);
    }
예제 #2
0
    // Token: 0x06001A25 RID: 6693 RVA: 0x000EA644 File Offset: 0x000E8844
    public static void amMotionRegistFile(AppMain.AMS_MOTION motion, int file_id, object buf)
    {
        int num = 0;

        AppMain.AMS_MOTION_FILE ams_MOTION_FILE = motion.mtnfile[0];
        AppMain.ArrayPointer <AppMain.NNS_MOTION> arrayPointer = ams_MOTION_FILE.motion + ams_MOTION_FILE.motion_num;
        num++;
        int i = 1;

        while (i < 4)
        {
            AppMain.ArrayPointer <AppMain.NNS_MOTION> arrayPointer2 = motion.mtnfile[num].motion + motion.mtnfile[num].motion_num;
            if (arrayPointer < arrayPointer2)
            {
                arrayPointer = arrayPointer2;
            }
            i++;
            num++;
        }
        if (arrayPointer == null)
        {
            arrayPointer = new AppMain.ArrayPointer <AppMain.NNS_MOTION>(motion.mtnbuf, 0);
        }
        ams_MOTION_FILE        = motion.mtnfile[file_id];
        ams_MOTION_FILE.file   = buf;
        ams_MOTION_FILE.motion = arrayPointer;
        if (buf is AppMain.NNS_MOTION)
        {
            ams_MOTION_FILE.motion_num = 1;
            motion.mtnbuf[0]           = (AppMain.NNS_MOTION)buf;
            return;
        }
        ams_MOTION_FILE.motion_num = AppMain.amMotionSetup(arrayPointer, buf);
    }
예제 #3
0
    public static void amMotionRegistFile(
        AppMain.AMS_MOTION motion,
        int file_id,
        AppMain.AMS_AMB_HEADER amb)
    {
        int num1 = 0;

        AppMain.AMS_MOTION_FILE amsMotionFile1            = motion.mtnfile[0];
        AppMain.ArrayPointer <AppMain.NNS_MOTION> motion1 = (AppMain.ArrayPointer <AppMain.NNS_MOTION>)(amsMotionFile1.motion + amsMotionFile1.motion_num);
        int index = num1 + 1;
        int num2  = 1;

        while (num2 < 4)
        {
            AppMain.ArrayPointer <AppMain.NNS_MOTION> arrayPointer = (AppMain.ArrayPointer <AppMain.NNS_MOTION>)(motion.mtnfile[index].motion + motion.mtnfile[index].motion_num);
            if (motion1 < arrayPointer)
            {
                motion1 = arrayPointer;
            }
            ++num2;
            ++index;
        }
        if (motion1 == (AppMain.ArrayPointer <AppMain.NNS_MOTION>)(AppMain.NNS_MOTION[]) null)
        {
            motion1 = new AppMain.ArrayPointer <AppMain.NNS_MOTION>(motion.mtnbuf, 0);
        }
        AppMain.AMS_MOTION_FILE amsMotionFile2 = motion.mtnfile[file_id];
        amsMotionFile2.file       = (object)amb;
        amsMotionFile2.motion     = motion1;
        amsMotionFile2.motion_num = AppMain.amMotionSetup(motion1, amb);
    }