public void BroadcastInteractedWith(IFocusArea focus)
 {
     InteractedWithItemObject.BroadcastEvent(this, new ItemObjectEventArgs
     {
         InteractedWith = this,
         AtFocusArea    = focus
     });
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
    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);
    }
Пример #4
0
 public static void BeginCraftingSequence(IFocusArea focusArea, ItemObjectBehaviour itemObject)
 {
     activeSequence.AddToCraftingSequence(focusArea, itemObject);
 }