public BattlesTrophy(string title, TrophyType type) : base(5020) { m_Title = title; m_Type = type; m_Date = DateTime.UtcNow; LootType = LootType.Blessed; UpdateStyle(); }
public BattlesTrophy(string title, TrophyType type) : base(5020) { m_Title = title; m_Type = type; m_Date = DateTime.UtcNow; LootType = LootType.Blessed; UpdateStyle(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_Title = reader.ReadString(); m_Type = (TrophyType)reader.ReadInt(); m_Owner = reader.ReadMobile(); m_Date = reader.ReadDateTime(); if ( version == 0 ) LootType = LootType.Blessed; }
public void TestTrophyConstructor() { string Name = "test"; string Description = "hello world"; TrophyType TrophyType = TrophyType.Gold; List <Activity> Requirements = new List <Activity>(); Requirements.Add(new Activity("John Doe", "Complete me", 3, 4, null)); Trophy Trophy = new Trophy(Name, Description, TrophyType, Requirements); Assert.AreEqual(Name, Trophy.Name); Assert.AreEqual(Description, Trophy.Description); Assert.AreEqual(TrophyType, Trophy.Type); Assert.AreEqual(Requirements, Trophy.Requirements); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Title = reader.ReadString(); m_Type = (TrophyType)reader.ReadInt(); m_Owner = reader.ReadMobile(); m_Date = reader.ReadDateTime(); if (version == 0) { LootType = LootType.Blessed; } }
/// <summary> /// Get trophy texture /// </summary> /// <param name="trophyType">Trophy type</param> /// <returns>Texture</returns> public Texture GetTrophyTexture(TrophyType trophyType) { return trophies[(int)trophyType]; }
/// <summary> /// Get trophy texture /// </summary> /// <param name="trophyType">Trophy type</param> /// <returns>Texture</returns> public Texture GetTrophyTexture(TrophyType trophyType) { return(trophies[(int)trophyType]); }