Skip to content

Member Memory#89

Open
S-Numan wants to merge 3 commits intoMagicLibStarsector:devfrom
S-Numan:MemberMemoryPR2
Open

Member Memory#89
S-Numan wants to merge 3 commits intoMagicLibStarsector:devfrom
S-Numan:MemberMemoryPR2

Conversation

@S-Numan
Copy link
Copy Markdown

@S-Numan S-Numan commented Apr 12, 2026

Gives FleetMemberAPI's a MutableMap<String, Any?> for random data storage.

Data is stored in sector memory in the [MemberMemoryStore] class. The key for each member's map is their member ID

In beforeGameSave, make a set of every FleetMemberAPI's ID in every fleet and submarket storage.
Remove all member memory which isn't in that set, as if they aren't in that set they are assumed to be removed from the game.

I have no idea how "good" this is. Or if it has flaws I am unaware of, let me know.

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.

1 participant