Files
90CNServer/pvf/frontend/bindings/pvfine/services/fileguiservice.ts
T
hanfuit 645b64fe21 DNF90 服务端与启动器完整源码(含 GM 工具功能增强)
服务端(Go):
- GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面
- GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新
- 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新)
- 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍
- 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0)
- 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算

启动器(Python/JS):
- 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭
- GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐)
- 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
2026-11-04 14:31:55 +08:00

154 lines
5.9 KiB
TypeScript

// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* FileGUIService reads GUI documents and applies validated edits to the overlay.
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as $models from "./models.js";
/**
* ApplyShopEdit stages every touched file before publishing one overlay change.
* The caller sends dirty drafts, but only files touched by this operation are
* consumed. Revision and path checks reject another archive or stale dialog.
*/
export function ApplyShopEdit(req: $models.ShopEditRequest): $CancellablePromise<$models.ShopEditResult | null> {
return $Call.ByID(858128996, req);
}
/**
* ApplyWorldDropEdit publishes one complete validated snapshot to the archive
* overlay. Like shop edits, a stale revision or changed editor draft is rejected.
*/
export function ApplyWorldDropEdit(req: $models.WorldDropEditRequest): $CancellablePromise<$models.WorldDropEditResult | null> {
return $Call.ByID(237649473, req);
}
export function CheckItemCreation(req: $models.ItemCreateRequest): $CancellablePromise<$models.ItemCreationCheck | null> {
return $Call.ByID(597891646, req);
}
/**
* CreateItem stages the script, LST and (where required) indexhash before
* publishing one version operation. No PVF disk write happens here.
*/
export function CreateItem(req: $models.ItemCreateRequest): $CancellablePromise<$models.ItemCreateResult | null> {
return $Call.ByID(3967276739, req);
}
/**
* ListSkillTreeSkills lists registered IDs in the current job, including common skills.
*/
export function ListSkillTreeSkills(job: string): $CancellablePromise<$models.SkillTreeSkill[] | null> {
return $Call.ByID(2588513399, job);
}
export function ListSkillTrees(): $CancellablePromise<$models.SkillTreeRegistration[] | null> {
return $Call.ByID(2559201962);
}
export function ListSkills(): $CancellablePromise<$models.SkillEntry[] | null> {
return $Call.ByID(3606807130);
}
/**
* ListVendingMachines uses the registered LST, including relative and archive-root paths.
*/
export function ListVendingMachines(): $CancellablePromise<$models.SearchHit[] | null> {
return $Call.ByID(1304220627);
}
export function ReadForge(fileIndex: number, text: string): $CancellablePromise<$models.ForgeDocument | null> {
return $Call.ByID(1666123291, fileIndex, text);
}
export function ReadIndependentDrop(fileIndex: number, text: string): $CancellablePromise<$models.IndependentDropDocument | null> {
return $Call.ByID(286472991, fileIndex, text);
}
/**
* ReadItem resolves the same item union used by shop lists and search pickers.
*/
export function ReadItem(id: string, drafts: $models.ShopDraft[] | null): $CancellablePromise<$models.ShopItem | null> {
return $Call.ByID(3301299, id, drafts);
}
/**
* ReadItemAppearances batches presentation metadata without reading item prices.
*/
export function ReadItemAppearances(ids: string[] | null): $CancellablePromise<{ [_ in string]?: $models.ItemAppearance | null } | null> {
return $Call.ByID(3207892534, ids);
}
/**
* ReadItemEffectPreview resolves live LST references, relative paths and editor
* drafts. It reads only PVF resources; sprite decoding remains in ImageService.
*/
export function ReadItemEffectPreview(fileIndex: number, objectID: string, particle: string, drafts: $models.ShopDraft[] | null): $CancellablePromise<$models.ItemEffectPreview | null> {
return $Call.ByID(1037122538, fileIndex, objectID, particle, drafts);
}
/**
* ReadItemIcons reads only display metadata for the currently visible rewards.
*/
export function ReadItemIcons(ids: string[] | null): $CancellablePromise<{ [_ in string]?: $models.ImageReference | null } | null> {
return $Call.ByID(2935306771, ids);
}
/**
* ReadItemNames resolves equipment and stackable names using the same item
* relations and localized text as other archive views. Missing IDs are omitted.
*/
export function ReadItemNames(ids: string[] | null): $CancellablePromise<{ [_ in string]?: string } | null> {
return $Call.ByID(3212344113, ids);
}
/**
* ReadShop reads structure from the caller's draft, and references from the
* current archive overlay. Archive reads can populate caches, requiring Lock.
*/
export function ReadShop(fileIndex: number, text: string): $CancellablePromise<$models.ShopDocument | null> {
return $Call.ByID(603302160, fileIndex, text);
}
export function ReadSkill(fileIndex: number, text: string): $CancellablePromise<$models.SkillDocument | null> {
return $Call.ByID(3027074897, fileIndex, text);
}
/**
* ReadSkillTree resolves only registered trees, using the current archive overlay.
*/
export function ReadSkillTree(job: string, kind: string): $CancellablePromise<$models.SkillTreeDocument | null> {
return $Call.ByID(2818122281, job, kind);
}
/**
* ReadSkillTreeDraft projects the editor draft without changing the archive.
*/
export function ReadSkillTreeDraft(job: string, kind: string, text: string): $CancellablePromise<$models.SkillTreeDocument | null> {
return $Call.ByID(3201412064, job, kind, text);
}
export function ReadUpgrade(fileIndex: number, text: string): $CancellablePromise<$models.UpgradeDocument | null> {
return $Call.ByID(4242154256, fileIndex, text);
}
export function ReadVendingMachine(fileIndex: number, text: string): $CancellablePromise<$models.VendingDocument | null> {
return $Call.ByID(580116406, fileIndex, text);
}
/**
* ReadWorldDrop parses the caller's current editor draft, then resolves names
* against the archive's item relation index. Unknown IDs remain editable.
*/
export function ReadWorldDrop(fileIndex: number, text: string): $CancellablePromise<$models.WorldDropDocument | null> {
return $Call.ByID(3120791685, fileIndex, text);
}