What problem does it solve?
Creating Zay-ES EntityComponent classes for the Subspace Infinity ECS requires adhering to strict rules around immutability, single-writer patterns, and serialization requirements, which can lead to threading bugs, ECS anti-patterns, and broken game logic if implemented incorrectly.
Core Features & Use Cases
- Pre-vetted component templates: Ready-to-use code templates for all common component types, including tag components, value components, decay components, and position components, that follow official Zay-ES best practices.
- ECS pattern guidance: Clear instructions for implementing the single-writer pattern and change-entity mutation pattern to avoid data conflicts when multiple systems modify the same entity attribute.
- Use Case: When adding a new ship shield attribute to the Subspace Infinity game, use this skill to generate a compliant immutable component that integrates correctly with existing ECS systems without introducing race conditions or data corruption.
Quick Start
Use the zay-es-component skill to generate a new immutable Position component for tracking entity locations in the game world.