• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orion-ecs / keen-eye / 19984139392 / 1
65%
main: 65%

Build:
DEFAULT BRANCH: main
Ran 06 Dec 2025 05:45AM UTC
Files 15
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Dec 2025 05:45AM UTC coverage: 95.041% (+0.1%) from 94.93%
19984139392.1

push

github

tyevco
Add singleton/resource system for world-level data

Implements issue #59 - a singleton/resource system for storing world-level
data not tied to entities (time, input, config, global state).

New World methods:
- SetSingleton<T>(in T value): Stores or updates a singleton value
- GetSingleton<T>(): Returns ref T for zero-copy access; throws if missing
- TryGetSingleton<T>(out T value): Safe accessor returning bool
- HasSingleton<T>(): Checks if singleton exists
- RemoveSingleton<T>(): Removes singleton, returns bool indicating success

Key implementation details:
- Storage uses Dictionary<Type, object> (boxing acceptable for O(1) access)
- GetSingleton returns ref via Unsafe.Unbox<T>() for zero-copy modification
- Per-world storage (not global static) maintains world isolation
- Singletons cleared in Dispose() method

Includes 50+ comprehensive unit tests covering:
- Basic CRUD operations for all five methods
- World isolation (singletons don't leak between worlds)
- Integration with entity operations
- Edge cases and idempotency

690 of 726 relevant lines covered (95.04%)

0.95 hits per line

Source Files on job 19984139392.1
  • Tree
  • List 15
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19984139392
  • 081883e5 on github
  • Prev Job for on main (#19984042158.1)
  • Next Job for on main (#19984221116.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc