public virtual ArmamentPrefab SpawnPrefab(Equipment equipment, Transform setParent, Slot[] usedSlots, Transform[] equipmentTransforms) { ArmamentPrefab prefab = Instantiate(armsPrefab); HoldMethod holdMethod = HoldMethod.none; if (usedSlots.Length == 1) { if (usedSlots[0] == Slot.leftHand) { holdMethod = HoldMethod.leftHand; } else if (usedSlots[0] == Slot.rightHand) { holdMethod = HoldMethod.rightHand; } } else if (usedSlots.Length == 2) { if ((usedSlots[0] == Slot.leftHand && usedSlots[1] == Slot.rightHand) || (usedSlots[1] == Slot.leftHand && usedSlots[0] == Slot.rightHand)) { holdMethod = HoldMethod.bothHands; } } prefab.Setup(equipment.characterComponents, this, usedSlots, holdMethod); prefab.CorrectPosition(setParent, equipmentTransforms); prefab.MapAbilitySet(); return(prefab); }
public void Execute() { var pc = MakeClassification(); var ps = MakeSchedule(); var pm = new HoldMethod(); var e = new Employee(empId, name, address) {Classification = pc, Schedule = ps, Method = pm}; PayrollDatabase.AddEmployee(empId, e); }
public void Setup(CharacterComponents characterComponents, Armament armsScriptable, Slot[] usedSlots, HoldMethod holdMethod) { this.characterComponents = characterComponents; this.armsScriptable = armsScriptable; this.usedSlots = usedSlots; this.holdMethod = holdMethod; foreach (Ability ability in abilitySet) { ability.Setup(characterComponents, holdMethod == HoldMethod.rightHand); } }
public override void Execute() { PaymentClassification pc = MakeClassification(); PaymentSchedule ps = MakeSchedule(); PaymentMethod pm = new HoldMethod(); Employee e = new Employee(empid, name, address); e.Classification = pc; e.Schedule = ps; e.Method = pm; database.AddEmployee(e); }
public override void Execute() { PaymentClassification pc = GetClassification(); PaymentSchedule ps = GetSchedule(); PaymentMethod pm = new HoldMethod(); Employee e = new Employee(EmpId, Name, Address); e.Classification = pc; e.Schedule = ps; e.Method = pm; database.AddEmployee(e); }
public void Execute() { PaymentClassification pc = MakeClassification(); PaymentSchedule ps = MakeSchedule(); PaymentMethod pm = new HoldMethod(); Employee e = new Employee(empid, name, address); e.Classification = pc; e.Schedule = ps; e.Method = pm; PayrollDatabase.AddEmployee(empid, e); }
public void Execute() { var pc = MakeClassification(); var ps = MakeSchedule(); var pm = new HoldMethod(); var e = new Employee(empId, name, address) { Classification = pc, Schedule = ps, Method = pm }; PayrollDatabase.AddEmployee(empId, e); }
public async Task ExecuteAsync() { Classification.PaymentClassification pc = MakeClassification(); IPaymentSchedule ps = MakeSchedule(); IPaymentMethod pm = new HoldMethod(); Employee e = new Employee(EmpId, Name, Address); e.Classification = pc; e.Schedule = ps; e.Method = pm; await PayrollDatabase.AddEmployeeAsync(EmpId, e); }
public void Execute() { PaymentClassification pc = MakeClassification(); PaymentScheduel ps = MakeSchedule(); PaymentMethod pm = new HoldMethod(); Employee emp = new Employee(_empid, _name, _address); emp.Classification = pc; emp.Schedule = ps; emp.Method = pm; PayRollDatabase.AddEmployee(empid, emp); }
public override void Execute() { var pc = MakeClassification(); var ps = MakeSchedule(); PaymentMethod pm = new HoldMethod(); var e = new Employee(empid, name, address); e.Classification = pc; e.Schedule = ps; e.Method = pm; database.AddEmployee(e); }
public void Execute() { IPaymentClassification pc = MakeClassification(); IPaymentSchedule ps = MakeSchedule(); IPaymentMethod pm = new HoldMethod(); IAffiliation af = new NoAffiliation(); Employee e = new Employee(_empId, _name, _address); e.Classification = pc; e.Schedule = ps; e.Method = pm; e.Affiliation = af; PayrollDatabase.AddEmlpoyee(e.EmpId, e); }
public override void Execute() { var pc = MakeClassification(); var ps = MakeSchedule(); var pm = new HoldMethod(); var e = new Employee(_empid, _name, _address) { Classification = pc, Schedule = ps, Method = pm }; Database.AddEmployee(e); }
public int Execute() { IPaymentClassification pc = MakeClassification(); IPaymentSchedule ps = MakeSchedule(); IPayemntMethod pm=new HoldMethod(); Employee employee=new Employee(); employee.Id = _empid; employee.Name = _name; employee.Address = _address; employee.Classification = pc; employee.Schedule = ps; employee.Method = pm; PayrollDatabase.AddEmployee(_empid, employee); return 1; }
public void Execute() { PaymentClassification pc = MakeClassification(); PaymentSchedule ps = MakeSchedule(); PaymentMethod pm = new HoldMethod(); Employee e = new Employee(empId, name, address) { Classification = pc, Schedule = ps, Method = pm, Affiliation = new NoAffiliation() }; PayrollDatabase.AddEmployee(empId, e); }
public virtual void Execute() { PaymentClassification pc = GetClassification(); PaymentSchedule ps = GetSchedule(); PaymentMethod pm = new HoldMethod(); Employee emp = new Employee() { EmployeeId = empId, Name = name, Address = address, PaymentClassification = pc, PaymentSchedule = ps, PaymentMethod = pm }; EmployeeRepository.AddEmployee(emp); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Muted != null) { p.Add(new KeyValuePair <string, string>("Muted", Muted.Value.ToString().ToLower())); } if (Hold != null) { p.Add(new KeyValuePair <string, string>("Hold", Hold.Value.ToString().ToLower())); } if (HoldUrl != null) { p.Add(new KeyValuePair <string, string>("HoldUrl", Serializers.Url(HoldUrl))); } if (HoldMethod != null) { p.Add(new KeyValuePair <string, string>("HoldMethod", HoldMethod.ToString())); } if (AnnounceUrl != null) { p.Add(new KeyValuePair <string, string>("AnnounceUrl", Serializers.Url(AnnounceUrl))); } if (AnnounceMethod != null) { p.Add(new KeyValuePair <string, string>("AnnounceMethod", AnnounceMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Muted != null) { p.Add(new KeyValuePair <string, string>("Muted", Muted.Value.ToString())); } if (Hold != null) { p.Add(new KeyValuePair <string, string>("Hold", Hold.Value.ToString())); } if (HoldUrl != null) { p.Add(new KeyValuePair <string, string>("HoldUrl", HoldUrl.AbsoluteUri)); } if (HoldMethod != null) { p.Add(new KeyValuePair <string, string>("HoldMethod", HoldMethod.ToString())); } if (AnnounceUrl != null) { p.Add(new KeyValuePair <string, string>("AnnounceUrl", AnnounceUrl.AbsoluteUri)); } if (AnnounceUrlMethod != null) { p.Add(new KeyValuePair <string, string>("AnnounceUrlMethod", AnnounceUrlMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Muted != null) { p.Add(new KeyValuePair <string, string>("Muted", Muted.Value.ToString().ToLower())); } if (Hold != null) { p.Add(new KeyValuePair <string, string>("Hold", Hold.Value.ToString().ToLower())); } if (HoldUrl != null) { p.Add(new KeyValuePair <string, string>("HoldUrl", Serializers.Url(HoldUrl))); } if (HoldMethod != null) { p.Add(new KeyValuePair <string, string>("HoldMethod", HoldMethod.ToString())); } if (AnnounceUrl != null) { p.Add(new KeyValuePair <string, string>("AnnounceUrl", Serializers.Url(AnnounceUrl))); } if (AnnounceMethod != null) { p.Add(new KeyValuePair <string, string>("AnnounceMethod", AnnounceMethod.ToString())); } if (WaitUrl != null) { p.Add(new KeyValuePair <string, string>("WaitUrl", Serializers.Url(WaitUrl))); } if (WaitMethod != null) { p.Add(new KeyValuePair <string, string>("WaitMethod", WaitMethod.ToString())); } if (BeepOnExit != null) { p.Add(new KeyValuePair <string, string>("BeepOnExit", BeepOnExit.Value.ToString().ToLower())); } if (EndConferenceOnExit != null) { p.Add(new KeyValuePair <string, string>("EndConferenceOnExit", EndConferenceOnExit.Value.ToString().ToLower())); } if (Coaching != null) { p.Add(new KeyValuePair <string, string>("Coaching", Coaching.Value.ToString().ToLower())); } if (CallSidToCoach != null) { p.Add(new KeyValuePair <string, string>("CallSidToCoach", CallSidToCoach.ToString())); } return(p); }
private void CreateHoldMethod(DataRow row) { Method = new HoldMethod(); }