public EmployeeGump(PlayerMobile viewer, Employee e) :base(0,0) { m_Viewer = viewer; m_Emp = e; InitialSetup(); }
public EmployeeWorkTarget(Employee e) : base(16, true, TargetFlags.None) { m_Emp = e; }
public override void OnDoubleClick(Mobile from) { if (m_Government == null || m_Government.Deleted) return; int empCount = 0; foreach (Mobile m in m_Government.Employees) { if (m is Employee) empCount++; } if (m_IsSlave) { if (empCount >= m_Government.TradeInformation.MaxSlaves) { from.SendMessage("This would exceed the maximum number of slaves " + m_Government.Name + " current allows."); return; } } else { if (empCount >= m_Government.TradeInformation.MaxWageEarners) { from.SendMessage("This would exceed the maximum number of wage-earners " + m_Government.Name + " current allows."); return; } } Employee e = new Employee(from as PlayerMobile, this); e.MoveToWorld(from.Location, from.Map); this.Delete(); base.OnDoubleClick(from); }
public EmployeeGatherTimer(Employee e) : base(TimeSpan.FromSeconds(300), TimeSpan.FromHours(6)) { m_Employee = e; Priority = TimerPriority.OneMinute; }
public WithdrawResourcePrompt(Employee e) : base() { m_Emp = e; }