private ItemCraftCondition(short itemId) : base("ITEM_PICKUP_" + (object)itemId) { this._itemIds = new short[1] { itemId }; ItemCraftCondition.ListenForCraft(this); }
public static AchievementCondition[] CreateMany(params short[] items) { AchievementCondition[] itemCraftCondition = new AchievementCondition[(int)items.Length]; for (int i = 0; i < (int)items.Length; i++) { itemCraftCondition[i] = new ItemCraftCondition(items[i]); } return itemCraftCondition; }
public static AchievementCondition[] CreateMany(params short[] items) { AchievementCondition[] array = new AchievementCondition[items.Length]; for (int i = 0; i < items.Length; i++) { array[i] = new ItemCraftCondition(items[i]); } return(array); }
public static AchievementCondition[] CreateMany(params short[] items) { AchievementCondition[] array = new AchievementCondition[items.Length]; for (int i = 0; i < items.Length; i++) { array[i] = new ItemCraftCondition(items[i]); } return array; }
public static AchievementCondition[] CreateMany(params short[] items) { var achievementConditionArray = new AchievementCondition[items.Length]; for (var index = 0; index < items.Length; ++index) { achievementConditionArray[index] = new ItemCraftCondition(items[index]); } return(achievementConditionArray); }
private static void ListenForCraft(ItemCraftCondition condition) { if (!_isListenerHooked) { AchievementsHelper.OnItemCraft += new AchievementsHelper.ItemCraftEvent(ItemCraftListener); _isListenerHooked = true; } for (int index = 0; index < condition._itemIds.Length; ++index) { if (!_listeners.ContainsKey(condition._itemIds[index])) _listeners[condition._itemIds[index]] = new List<ItemCraftCondition>(); _listeners[condition._itemIds[index]].Add(condition); } }
private static void ListenForCraft(ItemCraftCondition condition) { if (!ItemCraftCondition._isListenerHooked) { AchievementsHelper.OnItemCraft += new AchievementsHelper.ItemCraftEvent(ItemCraftCondition.ItemCraftListener); ItemCraftCondition._isListenerHooked = true; } for (int index = 0; index < condition._itemIds.Length; ++index) { if (!ItemCraftCondition._listeners.ContainsKey(condition._itemIds[index])) { ItemCraftCondition._listeners[condition._itemIds[index]] = new List <ItemCraftCondition>(); } ItemCraftCondition._listeners[condition._itemIds[index]].Add(condition); } }
private static void ListenForCraft(ItemCraftCondition condition) { if (!_isListenerHooked) { AchievementsHelper.OnItemCraft += ItemCraftListener; _isListenerHooked = true; } for (int i = 0; i < condition._itemIds.Length; i++) { if (!_listeners.ContainsKey(condition._itemIds[i])) { _listeners[condition._itemIds[i]] = new List <ItemCraftCondition>(); } _listeners[condition._itemIds[i]].Add(condition); } }
private static void ListenForCraft(ItemCraftCondition condition) { if (!ItemCraftCondition._isListenerHooked) { AchievementsHelper.OnItemCraft += new AchievementsHelper.ItemCraftEvent(ItemCraftCondition.ItemCraftListener); ItemCraftCondition._isListenerHooked = true; } for (int i = 0; i < (int)condition._itemIds.Length; i++) { if (!ItemCraftCondition._listeners.ContainsKey(condition._itemIds[i])) { ItemCraftCondition._listeners[condition._itemIds[i]] = new List<ItemCraftCondition>(); } ItemCraftCondition._listeners[condition._itemIds[i]].Add(condition); } }
private ItemCraftCondition(short[] itemIds) : base("ITEM_PICKUP_" + (object)itemIds[0]) { this._itemIds = itemIds; ItemCraftCondition.ListenForCraft(this); }
private ItemCraftCondition(short[] itemIds) : base(string.Concat("ITEM_PICKUP_", itemIds[0])) { this._itemIds = itemIds; ItemCraftCondition.ListenForCraft(this); }
private ItemCraftCondition(short itemId) : base(string.Concat("ITEM_PICKUP_", itemId)) { this._itemIds = new short[] { itemId }; ItemCraftCondition.ListenForCraft(this); }