| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #pragma once
- #include <array>
- #include <cstddef>
- #include <cstdint>
- namespace sunrise::state {
- /** Fixed runtime capacity for safe account unlock overrides. */
- inline constexpr std::size_t kUnlockOverrideCapacity = 127;
- /** One logical unlock-flag value stored by slot. */
- struct UnlockFlagOverride {
- std::uint16_t slot{};
- std::uint8_t value{};
- };
- /** One logical signed unlock value stored by slot. */
- struct UnlockValueOverride {
- std::uint16_t slot{};
- std::int32_t value{};
- };
- /** Global family-5 object and its bounded account overrides. */
- struct Family5State {
- std::uint64_t objectSoid{};
- std::array<UnlockFlagOverride, kUnlockOverrideCapacity> flags{};
- std::size_t flagCount{};
- std::array<UnlockValueOverride, kUnlockOverrideCapacity> values{};
- std::size_t valueCount{};
- bool contentGateArm{};
- };
- /** Account-wide evaluated content state. */
- struct InvestmentState {
- Family5State family5;
- };
- } // namespace sunrise::state
|