public AnimStateExtension PushState(int id) { AnimStateExtension st = GetAnimStateById(id); Cmds.Push(st); return(st); }
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); } }
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); }
public void SetAnimStateDict(AnimStateExtension ase) { States[ase.ID] = ase; }