Skip to content

Commit

Permalink
fix: add IsValid() method to ItemLocationMixin (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnylam88 authored Jul 23, 2021
1 parent 026ef73 commit a969353
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface ItemLocationMixin {
IsEqualToBagAndSlot(otherBagID: number, otherSlotIndex: number): boolean;
IsEqualToEquipmentSlot(otherEquipmentSlotIndex: number): boolean;
IsEqualTo(otherItemLocation: ItemLocationMixin): boolean;
IsValid(): boolean;
}
export interface PlayerLocationMixin {}
export interface Vector2DMixin {}
Expand Down Expand Up @@ -103,6 +104,9 @@ export class FakeItemLocation {
IsEquipmentSlot() {
return true;
},
IsValid() {
return true;
},
SetBagAndSlot(bagID: number, slotIndex: number) {},
SetEquipmentSlot(equipmentSlotIndex: number) {},
};
Expand Down

0 comments on commit a969353

Please sign in to comment.