build(repo): make source comments and build tools self-contained
This commit is contained in:
1 parent
5b5c59ab08
commit
44190e4544
106 files changed
+152
-183
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/** The offline version's game modes (docs/implementation notes; implementation notes J). */
|
||||
/** Offline game-mode declarations used by the matching service. */
|
||||
import type { GameModeDeclaration } from './game-mode-declaration.ts';
|
||||
import { PVE_BATTLES } from './pve-battles.ts';
|
||||
import { RANDOM_BATTLES } from './random-battles.ts';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/**
|
||||
* What the offline game-mode catalogue declares about one mode (docs/implementation notes,
|
||||
* 3.3). Everything else in a mode definition is derived from the game's own files.
|
||||
* What the offline game-mode catalogue declares about one mode (3.3). Everything else in a mode definition is derived from the game's own files.
|
||||
*/
|
||||
|
||||
/** Vehicle classes, named as the stock UI names unit types in event craft rules (scripts/unit/baseUnitTypes.nut). */
|
||||
@@ -29,7 +28,7 @@ export interface MissionSelection {
|
||||
export interface GameModeDeclaration {
|
||||
/** Fixed forever: the client remembers modes by it. */
|
||||
readonly gameModeId: number;
|
||||
/** The stock name where the game has one (docs/implementation notes). */
|
||||
/** The stock name where the game has one. */
|
||||
readonly name: string;
|
||||
/**
|
||||
* Sub-mode tag prefix recognized by `scripts/matching/matchinggamemodes.nut:28-42`
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* missions that say the class is allowed.
|
||||
*
|
||||
* Exclude missions whose names contain "newbie" from the standard offline mission pools.
|
||||
* See docs/implementation notes.
|
||||
*
|
||||
*/
|
||||
import type { MissionSelection } from './game-mode-declaration.ts';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* from the game's own files at start-up. A mode none of whose missions are in the player's
|
||||
* game files is left out (and reported), since it could not be played.
|
||||
*
|
||||
* The same object will serve the battle flow later (docs/implementation notes): which missions
|
||||
* The same object will serve the battle flow later: which missions
|
||||
* and team rules a chosen mode has.
|
||||
*/
|
||||
import type { MissionHeader, MultiplayerMissions } from '../game-data/datasets/multiplayer-missions.ts';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** Choose a mode's missions from the game's multiplayer missions (docs/implementation notes). */
|
||||
/** Choose a mode's missions from the game's multiplayer missions. */
|
||||
import type { MissionHeader, MultiplayerMissions } from '../game-data/datasets/multiplayer-missions.ts';
|
||||
import type { MissionSelection, UnitClass } from './catalogue/game-mode-declaration.ts';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* A game mode in the form the stock UI reads from the matching server
|
||||
* (match.fetch_game_modes_info, docs/implementation notes):
|
||||
* (match.fetch_game_modes_info):
|
||||
*
|
||||
* - difficulty: the matching name (scripts/difficulty.nut matchingName: arcade, realistic,
|
||||
* simulation); mission_decl.difficulty: the mission name of the same difficulty
|
||||
@@ -13,11 +13,11 @@
|
||||
* - mission_decl.missions_list: mission name -> {} (a value may carry "enableIf" rank
|
||||
* limits, scripts/missions/mapPreferencesParams.nut; none are set).
|
||||
* - tag: required, the script reads it unguarded (scripts/matching/matchingGameModes.nut,
|
||||
* onGameModesUpdated; local verification stopped there without it). Tag prefixes mark sub-modes
|
||||
* onGameModesUpdated). Tag prefixes mark sub-modes
|
||||
* (night battles, small teams, bullet hell, nuclear escalation, naval EC;
|
||||
* SUB_GAME_MODE_TAG_PREFIXES in matchingGameModes.nut:28-42).
|
||||
* - rankCalcMode: required, read unguarded when the slotbar computes the lineup's battle
|
||||
* rating (scripts/slotbar/slotbarPresets/calcRanks.nut calculateBR; local verification).
|
||||
* rating (scripts/slotbar/slotbarPresets/calcRanks.nut calculateBR).
|
||||
* "average" or "maximum" (lang: multiplayer/battleRatingCalcHint/*); random battles
|
||||
* take the highest battle rating of the lineup.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user