Skip to content

gen: add snapshot generator and initial ei snapshots#1698

Merged
mkmccarty merged 3 commits intomkmccarty:mainfrom
mutilis:main
Oct 12, 2025
Merged

gen: add snapshot generator and initial ei snapshots#1698
mkmccarty merged 3 commits intomkmccarty:mainfrom
mutilis:main

Conversation

@mutilis
Copy link
Contributor

@mutilis mutilis commented Oct 12, 2025

gen: add snapshot generator and initial ei snapshots

  • Add GenerateSnapshotStruct + GenerateSnapshots to generate <Type>_Snapshot structs.
  • Preserve protobuf/json tags; drop pointers for scalar-like types; recurse for containers.
  • Apply globalExcludes + per-struct whitelist; replace nested types via _Snapshot.
  • Generate snapshots for: ContractCoopStatusResponse, ContributionInfo, FarmProductionParams, PlayerFarmInfo, Backup_ResearchItem, Backup_ActiveBoost, CompleteArtifact, ArtifactSpec, CoopBuffState.
  • Format output with go/format; write to specified file.

@mkmccarty mkmccarty merged commit 1d82028 into mkmccarty:main Oct 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants