Пример #1
0
 public EmployeeGump(PlayerMobile viewer, Employee e) :base(0,0)
 {
     m_Viewer = viewer;
     m_Emp = e;
     InitialSetup();
 }
Пример #2
0
 public EmployeeWorkTarget(Employee e) : base(16, true, TargetFlags.None)
 {
     m_Emp = e;
 }
Пример #3
0
        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);
        }
Пример #4
0
 public EmployeeGatherTimer(Employee e)
     : base(TimeSpan.FromSeconds(300), TimeSpan.FromHours(6))
 {
     m_Employee = e;
     Priority = TimerPriority.OneMinute;
 }
Пример #5
0
 public WithdrawResourcePrompt(Employee e)
     : base()
 {
     m_Emp = e;
 }