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); }
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; }
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 } }
private void cboMeasuredBy_SelectedIndexChanged(object sender, EventArgs e) { MeasuredBy measuredBy; Enum.TryParse <MeasuredBy>(cboMeasuredBy.SelectedValue.ToString(), out measuredBy); _measuredBy = measuredBy; SetThresholdLabelValue(); }
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; }
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; }
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; }
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...."; }
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; }
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; }
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(); }
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; } }
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; }
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) { }
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) { }