Пример #1
0
    public AnimStateExtension PushState(int id)
    {
        AnimStateExtension st = GetAnimStateById(id);

        Cmds.Push(st);
        return(st);
    }
Пример #2
0
 public void Init()
 {
     foreach (var kv in DataManager.Instance.WeaponFrames[Data.ID])
     {
         AnimStateExtension aset = new AnimStateExtension(Owner, kv.Key, kv.Value[0], kv.Value[1], kv.Value[2]);
         Owner.SetAnimStateDict(aset);
     }
 }
Пример #3
0
    public AssaultExtension InitStunt(int id)
    {
        AssaultExtension stunt = InitAssault(id);

        stunt.StuntPath = Data.Stunts[id];
        TimeLineFrameData frameData = DataManager.Instance.TimeLineFrames[id];

        foreach (int st in stunt.Actions)
        {
            if (st == 0)
            {
                continue;
            }

            AnimStateExtension aset = new AnimStateExtension(this, st, frameData.FrameCount, frameData.FrameStart, frameData.FrameEnd);
            SetAnimStateDict(aset);
        }

        return(stunt);
    }
Пример #4
0
 public void SetAnimStateDict(AnimStateExtension ase)
 {
     States[ase.ID] = ase;
 }