chore: client/tools standards micro-nits (from code review) #51
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo#51
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Low-risk cosmetic cleanups deferred from the standards batch to keep that PR focused (server-side done there). A focused client/tools pass:
AssetPack.cs(split public recordsFrameData/AnimationData),AssetPackLoader.cs(HumanArtSet→ own file, and rename toAnimationSetsince it is reused for creatures/corpses).ToRgba(identical in AnimMulReader/ArtMulReader/GumpMulReader → one helper); the numerics→XNAVector2bridging copied ~5× (Player/Mobile/Corpse/GridRenderer/GameScreen → oneToXnaScreen).ClientConfigvs the mutable staticSessionduplicateIsConfigured/URLs — makeClientConfigthe single source, hang session fields offClientContext.WebSocketConnection,JwtTokenService,AssetPack);StartsWithwithoutStringComparison(AssetExtractor Program.cs:590); redundantusings in AssetEditor.Definition of Done
ToRgbaand the Vector2 bridge each live once.Progress (2026-07-22)
Re-audited against
main:FrameData/AnimationDataare now their own files (src/IsoMmo.Assets/),AssetPack.csholds onlyAssetPack, andHumanArtSetwas renamed and moved toclient/IsoMmo.Client/Art/AnimationSet.cs.ToRgbadedup: now lives once intools/IsoMmo.AssetExtractor/UoColor.cs; the three*MulReaders all callUoColor.ToRgba.ToXnaScreen) — not done (no such helper exists yet).IsConfiguredstill duplicated acrossClientConfigandNet/Session).So the DoD's multi-type-file and
ToRgba-once parts are met; the Vector2-once and config-single-source parts remain.PR #125 covers most of this:
ToRgbaand the XNAVector2bridge each live once;AssetPackrecords split into own files;HumanArtSetmoved to its own file and renamedAnimationSet; primary ctors (AssetPack/WebSocketConnection/JwtTokenService);StartsWithStringComparison. The AssetEditor redundant-usings item was already clean (unused usings fail the build here).Residual — keep this issue open for it: the
ClientConfig/Sessionsingle-source (URLs +IsConfiguredduplicated; makeClientConfigthe source and hang session fields offClientContext). Deferred from #125 because it touches session wiring across login/game/connection and warrants its own careful pass.