123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import { SGraphItem } from "@persagy-web/graph"
- import { SGraphScene } from "@persagy-web/graph/lib";
- import { SMouseEvent } from "@persagy-web/base";
- export class FloorScene extends SGraphScene {
- zoonItemList: SGraphItem[] = [];
- equipItemList: SGraphItem[] = [];
-
- constructor() {
- super();
-
- this.selectContainer.showSelect = false;
- this.selectContainer.connect("listChange", this, this.listChange);
- }
-
- clearSpace() {
- this.zoonItemList.forEach((item) => {
- this.removeItem(item)
- });
- this.zoonItemList = []
- }
-
- clearEquip() {
- this.equipItemList.forEach((item) => {
- this.removeItem(item)
- });
- this.equipItemList = []
- }
-
- listChange(list: any): void {
- this.emitChoice(list.itemList);
- }
-
- emitChoice(list: any) {
- }
-
- onMouseDown(e: SMouseEvent): boolean {
- this.vueOnMouseDown(e)
- return super.onMouseDown(e);
- }
-
- vueOnMouseDown(e: SMouseEvent) { }
- }
|