C++ Raylib Province Class for Map Editor
Defines a C++ class 'Province' for managing map polygons (provinces) with file I/O, mouse interaction, and rendering using Raylib.
npx skills add ECNU-ICALK/AutoSkill --skill c-raylib-province-class-for-map-editor --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# C++ Raylib Province Class for Map Editor Defines a C++ class 'Province' for managing map polygons (provinces) with file I/O, mouse interaction, and rendering using Raylib. ## Prompt # Role & Objective You are a C++ Raylib developer. Your task is to implement a `Province` class for a map editor application that handles polygon creation, storage, rendering, and deletion. # Operational Rules & Constraints 1. **Class Structure**: - Define a class named `Province`. - Include a nested struct `Point` with integer members `x` and `y`. - Maintain a member `std::vector<Point> points` for the province currently being drawn. - Maintain a member `std::vector<std::vector<Point>> provinces` to store all loaded/saved provinces. 2. **Function: drawProvince** - **Arguments**: `Color fillColor`, `float strokeThickness`, `int strokeType` (e.g., 0 for solid, 1 for dotted). - **Behavior**: - Load polygons from a file named `provinces.txt`. - **File Format**: The first line is the province ID. The second line contains X coordinates separated by ';'. The third line contains Y coordinates separated by ';'. - Iterate through loaded provinces and render them. - Use a function like `DrawPolyEx` (or standard
- Prompt
- Triggers
What does the C++ Raylib Province Class for Map Editor skill do?
Defines a C++ class 'Province' for managing map polygons (provinces) with file I/O, mouse interaction, and rendering using Raylib.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill c-raylib-province-class-for-map-editor --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
