void InitializeStates(IEqpIITAStateConstArg arg)
 {
     this.pickableState    = new EqpIIPickableState(arg);
     this.unpickableState  = new EqpIIUnpickableState(arg);
     this.pickedState      = new EqpIIPickedState(arg);
     this.hoverableState   = new EqpIIHoverableState(arg);
     this.unhoverableState = new EqpIIUnhoverableState(arg);
     this.hoveredState     = new EqpIIHoveredState(arg);
     this.droppedState     = new EqpIIDroppedState(arg);
     thisStates.Add(pickableState);
     thisStates.Add(unpickableState);
     thisStates.Add(pickedState);
     thisStates.Add(hoverableState);
     thisStates.Add(unhoverableState);
     thisStates.Add(hoveredState);
     thisStates.Add(droppedState);
 }
    public EqpIIHoveredState CreateEqpIIHoveredState(out IEqpIITAStateConstArg arg, out IEquippableItemIcon eqpII)
    {
        IEqpIITAStateConstArg  thisArg      = Substitute.For <IEqpIITAStateConstArg>();
        IEquippableIITAManager thisEqpIITAM = Substitute.For <IEquippableIITAManager>();

        thisArg.iiTAM.Returns(thisEqpIITAM);
        thisArg.eqpIITAM.Returns(thisEqpIITAM);
        thisArg.eqpTool.Returns(Substitute.For <IEquipTool>());

        EqpIIHoveredState   hoveredState = new EqpIIHoveredState(thisArg);
        IEquippableItemIcon thisEqpII    = Substitute.For <IEquippableItemIcon>();

        hoveredState.SetItemIcon(thisEqpII);
        arg   = thisArg;
        eqpII = thisEqpII;
        return(hoveredState);
    }
Exemplo n.º 3
0
 public EqpIIPickableState(IEqpIITAStateConstArg arg) : base(arg)
 {
 }
Exemplo n.º 4
0
 public EqpIIPickedState(IEqpIITAStateConstArg arg) : base(arg)
 {
     thisEqpTool = arg.eqpTool;
 }
Exemplo n.º 5
0
 public EqpIIDroppedState(IEqpIITAStateConstArg arg) : base(arg)
 {
 }
Exemplo n.º 6
0
 public EqpIIUnhoverableState(IEqpIITAStateConstArg arg) : base(arg)
 {
 }