Example #1
0
 public static void SetUngrabFrameData(int index, AnimClipData.UngrabFrameData data) => LuaAnimClipModel.SetUngrabFrameData(index, data);
Example #2
0
        public void SetFieldValueTableValue(string key, object value)
        {
            switch (key)
            {
            case Key_Time:
                time = (float)value;
                return;

            case Key_EndTime:
                endTime = (float)value;
                return;
            }
            FrameType frameType = GetFrameTypeFromKey(key);

            switch (frameType)
            {
            case FrameType.Grab:
                grabFrameData = (GrabFrameData)value;
                return;

            case FrameType.Ungrab:
                ungrabFrameData = (UngrabFrameData)value;
                return;

            case FrameType.Hit:
                hitFrameData = (HitFrameData)value;
                return;

            case FrameType.Track:
                trackFrameData           = (PriorityFrameData)value;
                trackFrameData.frameType = FrameType.Track;
                return;

            case FrameType.PlayEffect:
                effectFrameData = (EffectFrameData)value;
                return;

            case FrameType.CacheBegin:
                cacheFrameData           = (PriorityFrameData)value;
                cacheFrameData.frameType = FrameType.CacheBegin;
                return;

            case FrameType.SectionOver:
                sectionFrameData           = (PriorityFrameData)value;
                sectionFrameData.frameType = FrameType.SectionOver;
                return;

            case FrameType.Camera:
                cameraFrameData = (CameraFrameData)value;
                return;

            case FrameType.Buff:
                buffFrameData = (BuffFrameData)value;
                return;

            case FrameType.OverheadStart:
                airBeginFrameData           = (PriorityFrameData)value;
                airBeginFrameData.frameType = FrameType.OverheadStart;
                return;

            case FrameType.OverheadBreak:
                airEndFrameData           = (PriorityFrameData)value;
                airEndFrameData.frameType = FrameType.OverheadBreak;
                return;

            case FrameType.DodgeBreak:
                dodgeFrameData           = (PriorityFrameData)value;
                dodgeFrameData.frameType = FrameType.DodgeBreak;
                return;

            case FrameType.BlockStart:
                blockStartFrameData           = (PriorityFrameData)value;
                blockStartFrameData.frameType = FrameType.BlockStart;
                return;

            case FrameType.BlockEnd:
                blockEndFrameData           = (PriorityFrameData)value;
                blockEndFrameData.frameType = FrameType.BlockEnd;
                return;

            case FrameType.Block:
                blockFrameData = (BlockFrameData)value;
                return;

            case FrameType.TrackChange:
                trackChangeFrameData = (TrackChangeFrameData)value;
                return;

            case FrameType.AttackContinue:
                atkContinueFrameData           = (PriorityFrameData)value;
                atkContinueFrameData.frameType = FrameType.AttackContinue;
                return;

            case FrameType.BreakPoint:
                breakPointFrameData           = (PriorityFrameData)value;
                breakPointFrameData.frameType = FrameType.BreakPoint;
                return;

            case FrameType.CommandAttack:
                commandAttackFrameData           = (IDFrameData)value;
                commandAttackFrameData.frameType = FrameType.CommandAttack;
                return;

            case FrameType.CommandSkill:
                commandSkillFrameData           = (IDFrameData)value;
                commandSkillFrameData.frameType = FrameType.CommandSkill;
                return;
            }
        }