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); }
public EqpIIPickableState(IEqpIITAStateConstArg arg) : base(arg) { }
public EqpIIPickedState(IEqpIITAStateConstArg arg) : base(arg) { thisEqpTool = arg.eqpTool; }
public EqpIIDroppedState(IEqpIITAStateConstArg arg) : base(arg) { }
public EqpIIUnhoverableState(IEqpIITAStateConstArg arg) : base(arg) { }