예제 #1
0
		public HuntTrophyAddon(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
        {
            m_SouthID = id;
            m_Owner = name;
            m_Species = species;
            m_Location = location;
            m_DateKilled = killed;
            m_MeasuredBy = measuredBy;
            m_Measurement = measurement;

            //TODO: CHeck this
            switch (measuredBy)
            {
                case MeasuredBy.Weight:
                    Weight = measurement;
                    break;
                case MeasuredBy.Length:
                case MeasuredBy.Wingspan:
                    Weight = 5.0;
                    break;
            }

            AddComponent(new HuntTrophyComponent(SouthID), 0, 0, 0);
            AddComponent(new HuntTrophyComponent(SouthID + 1), 0, -1, 0);
		}
예제 #2
0
        public HuntTrophy(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
        {
            m_SouthID = id;
            //ItemID = id;
            m_Owner       = name;
            m_Species     = species;
            m_Location    = location;
            m_DateKilled  = killed;
            m_MeasuredBy  = measuredBy;
            m_Measurement = measurement;

            switch (measuredBy)
            {
            case MeasuredBy.Weight:
                Weight = measurement;
                break;

            case MeasuredBy.Length:
            case MeasuredBy.Wingspan:
                Weight = 5.0;
                break;
            }

            Movable = false;
        }
예제 #3
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1155708, m_Owner != null ? m_Owner : "Unknown"); // Hunter: ~1_NAME~
            list.Add(1155709, DateKilled);                            // Date of Kill: ~1_DATE~

            if (m_Location != null)
            {
                list.Add(1061114, m_Location); // Location: ~1_val~
            }
            list.Add(1155718, Species.ToString());

            if (MeasuredBy == MeasuredBy.Length)
            {
                list.Add(1155711, MeasuredBy.ToString()); // Length: ~1_VAL~
            }
            else if (MeasuredBy == MeasuredBy.Wingspan)
            {
                list.Add(1155710, MeasuredBy.ToString());       // Wingspan: ~1_VAL~
            }
            else
            {
                list.Add(1072225, MeasuredBy.ToString()); // Weight: ~1_WEIGHT~ stones
            }
        }
예제 #4
0
        public HuntTrophyAddon(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
        {
            m_SouthID     = id;
            m_Owner       = name;
            m_Species     = species;
            m_Location    = location;
            m_DateKilled  = killed;
            m_MeasuredBy  = measuredBy;
            m_Measurement = measurement;

            //TODO: CHeck this
            switch (measuredBy)
            {
            case MeasuredBy.Weight:
                Weight = measurement;
                break;

            case MeasuredBy.Length:
            case MeasuredBy.Wingspan:
                Weight = 5.0;
                break;
            }

            AddComponent(new HuntTrophyComponent(SouthID), 0, 0, 0);
            AddComponent(new HuntTrophyComponent(SouthID + 1), 0, -1, 0);
        }
예제 #5
0
        private void cboMeasuredBy_SelectedIndexChanged(object sender, EventArgs e)
        {
            MeasuredBy measuredBy;

            Enum.TryParse <MeasuredBy>(cboMeasuredBy.SelectedValue.ToString(), out measuredBy);

            _measuredBy = measuredBy;
            SetThresholdLabelValue();
        }
예제 #6
0
 public HuntTrophyAddonDeed(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
 {
     m_SouthID     = id;
     m_Owner       = name;
     m_Species     = species;
     m_Location    = location;
     m_DateKilled  = killed;
     m_MeasuredBy  = measuredBy;
     m_Measurement = measurement;
 }
예제 #7
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int id, TextDefinition species, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex = false)
 {
     m_HuntType = type;
     m_CreatureType = creatureType;
     m_MeasuredBy = measuredBy;
     m_SouthID = id;
     m_Species = species;
     m_MinMeasurement = minMeasurement;
     m_MaxMeasurement = maxMeasurement;
     m_Complex = complex;
 }
예제 #8
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int id, TextDefinition species, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex = false)
 {
     m_HuntType       = type;
     m_CreatureType   = creatureType;
     m_MeasuredBy     = measuredBy;
     m_SouthID        = id;
     m_Species        = species;
     m_MinMeasurement = minMeasurement;
     m_MaxMeasurement = maxMeasurement;
     m_Complex        = complex;
 }
예제 #9
0
 public HuntTrophyDeed(string from, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
     : base(5359)
 {
     m_SouthID     = id;
     m_Owner       = from;
     m_Species     = species;
     m_Location    = location;
     m_DateKilled  = killed;
     m_MeasuredBy  = measuredBy;
     m_Measurement = measurement;
 }
예제 #10
0
 private void ClearFields()
 {
     txtItemDesc.Text            = string.Empty;
     txtThreshold.Text           = string.Empty;
     txtCost.Text                = string.Empty;
     _measuredBy                 = MeasuredBy.pcs;
     cboMeasuredBy.SelectedIndex = 0;
     cboCategory.SelectedIndex   = 0;
     _selectedSupplier           = null;
     lblSupplier.Text            = "Click here to provide supplier....";
 }
예제 #11
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int southID, int eastID, TextDefinition species, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex, bool requiresWall = false)
 {
     m_HuntType       = type;
     m_CreatureType   = creatureType;
     m_MeasuredBy     = measuredBy;
     m_SouthID        = southID;
     m_EastID         = eastID;
     m_Species        = species;
     m_MinMeasurement = minMeasurement;
     m_MaxMeasurement = maxMeasurement;
     m_Complex        = complex;
     m_RequiresWall   = requiresWall;
 }
예제 #12
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int southID, int eastID, TextDefinition species, TextDefinition trophyName, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex)
 {
     m_HuntType       = type;
     m_CreatureType   = creatureType;
     m_MeasuredBy     = measuredBy;
     m_SouthID        = southID;
     m_EastID         = eastID;
     m_Species        = species;
     m_TrophyName     = trophyName;
     m_MinMeasurement = minMeasurement;
     m_MaxMeasurement = maxMeasurement;
     m_Complex        = complex;
 }
예제 #13
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int v = reader.ReadInt();

            m_Owner       = reader.ReadString();
            m_Measurement = reader.ReadInt();
            m_DateKilled  = reader.ReadString();
            m_Location    = reader.ReadString();
            m_Species     = TextDefinition.Deserialize(reader);
            m_MeasuredBy  = (MeasuredBy)reader.ReadInt();
            m_SouthID     = reader.ReadInt();
        }
예제 #14
0
파일: HuntTrophy.cs 프로젝트: UODOC/MyShard
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int v = reader.ReadInt();

            switch (v)
            {
            case 1:
                m_FlippedIDs = reader.ReadBool();
                goto case 0;

            case 0:
                m_Owner       = reader.ReadString();
                m_Measurement = reader.ReadInt();
                m_DateKilled  = reader.ReadString();
                m_Location    = reader.ReadString();
                m_Species     = TextDefinition.Deserialize(reader);
                m_MeasuredBy  = (MeasuredBy)reader.ReadInt();
                m_SouthID     = reader.ReadInt();
                break;
            }
        }
예제 #15
0
		public HuntTrophy(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
		{
            m_SouthID = id;
            //ItemID = id;
            m_Owner = name;
			m_Species = species;
			m_Location = location;
			m_DateKilled = killed;
			m_MeasuredBy = measuredBy;
            m_Measurement = measurement;

			switch(measuredBy)
			{
				case MeasuredBy.Weight:
					Weight = measurement;
					break;
				case MeasuredBy.Length:
				case MeasuredBy.Wingspan:
					Weight = 5.0;
					break;
			}

            Movable = false;
		}
예제 #16
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int southID, TextDefinition species, TextDefinition trophyName, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex)
     : this(type, creatureType, southID, southID + 1, species, trophyName, minMeasurement, maxMeasurement, measuredBy, complex)
 {
 }
예제 #17
0
 public HuntingTrophyInfo(HuntType type, Type creatureType, int southID, TextDefinition species, int minMeasurement, int maxMeasurement, MeasuredBy measuredBy, bool complex, bool requiresWall = false)
     : this(type, creatureType, southID, southID + 1, species, minMeasurement, maxMeasurement, measuredBy, complex, requiresWall)
 {
 }
예제 #18
0
 public HuntTrophyDeed(string from, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
     : base(5359)
 {
     m_SouthID = id;
     m_Owner = from;
     m_Species = species;
     m_Location = location;
     m_DateKilled = killed;
     m_MeasuredBy = measuredBy;
     m_Measurement = measurement;
 }
예제 #19
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int v = reader.ReadInt();

            m_Owner = reader.ReadString();
            m_Measurement = reader.ReadInt();
            m_DateKilled = reader.ReadString();
            m_Location = reader.ReadString();
            m_Species = TextDefinition.Deserialize(reader);
            m_MeasuredBy = (MeasuredBy)reader.ReadInt();
            m_SouthID = reader.ReadInt();
        }
예제 #20
0
 public HuntTrophyAddonDeed(string name, MeasuredBy measuredBy, int measurement, int id, string killed, string location, TextDefinition species)
 {
     m_SouthID = id;
     m_Owner = name;
     m_Species = species;
     m_Location = location;
     m_DateKilled = killed;
     m_MeasuredBy = measuredBy;
     m_Measurement = measurement;
 }