IsQuestFish() public méthode

public IsQuestFish ( ) : bool
Résultat bool
Exemple #1
0
        public void AddItem(string name, ModItem item, string texture)
        {
            int id = ItemLoader.ReserveItemID();

            item.item.name = name;
            item.item.ResetStats(id);
            items[name]          = item;
            ItemLoader.items[id] = item;
            item.texture         = texture;
            item.mod             = this;
            if (item.IsQuestFish())
            {
                ItemLoader.questFish.Add(id);
            }
        }
Exemple #2
0
        public void AddItem(string name, ModItem item, string texture)
        {
            Type type = item.GetType();

            if (type.GetMethod("UpdateAccessory", new Type[] { typeof(Player) }) != null)
            {
                throw new Exception("Item " + name + " uses an old UpdateAccessory hook");
            }
            int id = ItemLoader.ReserveItemID();

            item.item.name = name;
            item.item.ResetStats(id);
            items[name]          = item;
            ItemLoader.items[id] = item;
            item.texture         = texture;
            item.mod             = this;
            if (item.IsQuestFish())
            {
                ItemLoader.questFish.Add(id);
            }
        }
Exemple #3
0
		public void AddItem(string name, ModItem item, string texture)
		{
			Type type = item.GetType();
			if (type.GetMethod("UpdateAccessory", new Type[] { typeof(Player) }) != null)
			{
				throw new Exception("Item " + name + " uses an old UpdateAccessory hook");
			}
			int id = ItemLoader.ReserveItemID();
			item.item.name = name;
			item.item.ResetStats(id);
			items[name] = item;
			ItemLoader.items[id] = item;
			item.texture = texture;
			item.mod = this;
			if (item.IsQuestFish())
			{
				ItemLoader.questFish.Add(id);
			}
		}
Exemple #4
0
		public void AddItem(string name, ModItem item, string texture)
		{
			Type colorClass = typeof(Microsoft.Xna.Framework.Color);
			Type floatClass = typeof(float);
			Type floatRefClass = floatClass.MakeByRefType();
			if (item.GetType().GetMethod("PreDrawInWorld", new Type[] {
				typeof(SpriteBatch), colorClass, colorClass, floatRefClass, floatRefClass,
				}) != null)
			{
				throw new OldHookException("ModItem.PreDrawInWorld");
			}
			if (item.GetType().GetMethod("PostDrawInWorld", new Type[] {
				typeof(SpriteBatch), colorClass, colorClass, floatClass, floatClass
				}) != null)
			{
				throw new OldHookException("ModItem.PostDrawInWorld");
			}
			int id = ItemLoader.ReserveItemID();
			item.item.name = name;
			item.item.ResetStats(id);
			item.item.modItem = item;
			items[name] = item;
			ItemLoader.items.Add(item);
			item.texture = texture;
			item.mod = this;
			if (item.IsQuestFish())
			{
				ItemLoader.questFish.Add(id);
			}
		}