public void BroadcastInteractedWith(IFocusArea focus) { InteractedWithItemObject.BroadcastEvent(this, new ItemObjectEventArgs { InteractedWith = this, AtFocusArea = focus }); }
public void AddToCraftingSequence(IFocusArea focus, ItemObjectBehaviour obj) { if (actionItemObject == null) { actionItemObject = obj; actionItemAtFocusArea = focus.FocusArea.ToString(); } else if (!actionItemObject.name.Equals(obj.name) && !actionTaken.Equals(CraftingAction.NONE)) { targetItemObject = obj; targetItemAtFocusArea = focus.FocusArea.ToString(); } }
internal void RegisterFocusArea(IFocusArea area) { SetFocusAreaDictionary(); /* int id = area.FocusArea.focusAreaId; * * while (FocusAreaLookup.ContainsKey(id)) * { * id++; * } * * area.FocusArea.focusAreaId = id;*/ FocusAreaLookup.Add(area.FocusArea.focusAreaId, area); }
public static void BeginCraftingSequence(IFocusArea focusArea, ItemObjectBehaviour itemObject) { activeSequence.AddToCraftingSequence(focusArea, itemObject); }