build(repo): make source comments and build tools self-contained

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 08:46:08 +08:00
1 parent 5b5c59ab08
commit 44190e4544
106 files changed
+152 -183

No files matched your search

@@ -1,4 +1,4 @@
/** Resolving the player a char request is for (the uidhint header, implementation notes). */
/** Resolving the player a char request is for (the uidhint header). */
import type { Account, AccountStore } from '../../accounts/account-store.ts';
import type { CharAnswer } from '../char-answers.ts';
import type { CharActionContext } from '../char-action.ts';
+1 -1
View File
@@ -1,4 +1,4 @@
/** Char action names mapped to their protocol handlers (full list of names: implementation notes). */
/** Maps each supported char action to its protocol handler. */
import type { AccountStore } from '../../accounts/account-store.ts';
import type { ClanStore } from '../../clans/clan-store.ts';
import type { CloudSettingsStore } from '../../cloud-settings/cloud-settings-store.ts';
@@ -1,6 +1,6 @@
/**
* Char action handlers for squadron officer moderation, blacklist, and best-rewards metadata
* (`ano_clan_*`, `cln_set_clan_best_rewards`; implementation notes; aces.exe 0x29d150, 0x29d540).
* (`ano_clan_*`, `cln_set_clan_best_rewards`; aces.exe 0x29d150, 0x29d540).
*/
import type { AccountStore } from '../../accounts/account-store.ts';
import type { ClanStore } from '../../clans/clan-store.ts';
@@ -1,6 +1,5 @@
/**
* Char actions for `online_storage` / `generalBlk` cloud settings sync (implementation notes;
* aces.exe 2.61.0.37: `cln_get_meta_blk` 0x4662b3f, `cln_get_general_blk` 0x46677df,
* Char actions for `online_storage` / `generalBlk` cloud settings sync (aces.exe 2.61.0.37: `cln_get_meta_blk` 0x4662b3f, `cln_get_general_blk` 0x46677df,
* `cln_set_general_blk` 0x4666c51, `cln_bulk_set_gblk` 0x4663cfd).
*/
import { emptyBlock } from '@wto/blk';
@@ -1,6 +1,5 @@
/**
* Char actions for external inventory, item recycling, and classic trophies
*:
* Char actions for external inventory, item recycling, and classic trophies:
* - cln_consume_inventory_item itemId:i quantity:i -> full profile
* - cln_multi_consume_inventory_item_json text BLK items{ item{ itemId:i quantity:i } } -> JSON {"revertedItems":[]}
* - cln_inventory_purchase_item key:t itemDefId:i wpCost:i goldCost:i [amount:i] -> full profile
@@ -1,6 +1,5 @@
/**
* Char actions of the online initialisation after sign-in, up to the profile
*.
* Char actions of the online initialisation after sign-in, up to the profile.
*/
import { emptyBlock, setParam } from '@wto/blk';
import type { AccountStore } from '../../accounts/account-store.ts';
@@ -14,8 +13,7 @@ import { withAccount } from './account-context.ts';
* cln_get_initial_meta: server-side metadata the client reads in GameSaveData's initial-meta
* handling (aces.exe 0xeb5f60). binaryDataMetainfo lists server-side binary files the client
* must fetch and compare by hash; the local server has none, so the list is empty and no
* downloads follow. generalBlkMeta carries the cloud-settings schema and saved versions/hashes
*.
* downloads follow. generalBlkMeta carries the cloud-settings schema and saved versions/hashes.
*/
export function initialMeta(accounts?: AccountStore, cloudSettings?: CloudSettingsStore): CharActionHandler {
return (context) => {
@@ -1,5 +1,5 @@
/**
* cln_get_price_ex: the price table (implementation notes; char/actions/price-table.ts).
* cln_get_price_ex: the price table (char/actions/price-table.ts).
* Sent at sign-in with an empty body and again by the stock scripts when a purchase fails
* (scripts/unit/unitActions.nut impl_buyUnit: PRICE.update). The table only depends on the
* game files and tuning, so it is built once.
+2 -3
View File
@@ -1,6 +1,5 @@
/**
* The price table the char server sends for cln_get_price_ex (implementation notes,
* implementation notes).
* The price table the char server sends for cln_get_price_ex.
*
* The client keeps the answer whole as its price table (aces.exe 2.61.0.37 0xeb7a88, job type
* 0x21; stored in the save-data object at +0x3f5c0, which warpoints::init makes the price
@@ -27,7 +26,7 @@
* skills{ <pack>{ costGold:i } } skill point packs (0x916380)
* unlocks{ <unlock>{ cost:i costGold:i } } unlocks for sale (0x9170c0)
* items{ <item>{ cost:i costGold:i } } classic items for sale, price per piece
* (wp_get_item_cost, 0x10531e0; implementation notes)
* (wp_get_item_cost, 0x10531e0)
* trophy{ <id>{ cost:i costGold:i } } classic trophy prices
* }
* trophy{ <id>{ ... } } classic trophy definitions & drop weights
@@ -5,7 +5,7 @@
* cln_set_researchable (shop_set_researchable_unit, aces.exe 2.61.0.37 0x17a3e80):
* unit:t the vehicle to research
* type:i its vehicle type number
* or, for a modification (shop_set_researchable_unit_module, 0x17a3e00; implementation notes):
* or, for a modification (shop_set_researchable_unit_module, 0x17a3e00):
* unit:t the owned vehicle
* mod:t the modification to research
* cln_reset_researchable (shop_reset_researchable_unit, 0x17a3f00): the player closed the
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* Actions that run one rule on the player's profile and answer the whole updated profile
* (job types the client applies as profile updates, implementation notes). A refused
* (job types the client applies as profile updates). A refused
* rule changes nothing and answers "!ERROR:<refusal>".
*/
import type { BlkBlock } from '@wto/blk';
@@ -1,7 +1,6 @@
/**
* Char action handlers for squadron (clan) vehicle research and Golden-Eagle buyout
* (`cln_set_research_clan_unit`, `cln_flush_clan_exp_to_unit`, `cln_buy_not_researched_clans_unit`;
* implementation notes).
* (`cln_set_research_clan_unit`, `cln_flush_clan_exp_to_unit`, `cln_buy_not_researched_clans_unit`).
*/
import type { AccountStore } from '../../accounts/account-store.ts';
import type { ClanStore } from '../../clans/clan-store.ts';
@@ -1,5 +1,5 @@
/**
* The new player's first choice (implementation notes, step 6).
* The new player's first choice (step 6).
*
* The stock "first choice" window (gui.vromfs.bin scripts/firstChoice/unitTypeChoiceHandler.nut,
* clnSetStartingInfo) sends cln_set_starting_info with: