# Changelog

All notable changes to **CoolAPI** (the Cool GameX Unity SDK).
This project follows [Semantic Versioning](https://semver.org/).

## [1.4.0] — 2026-06-06
### Added
- **Player Stats are real now** (no longer a stub): `CoolAPI.Stats.Set`,
  `CoolAPI.Stats.Add` (returns the new total), `CoolAPI.Stats.Get`, and
  `CoolAPI.Stats.GetAllJson()`. Stats persist on the backend, across machines.
  Convenience helpers on the component: `CoolGameXManager.SetStat/AddStat`.
- **Typed achievement list:** `CoolAPI.Achievements.GetDefinitions()` returns
  `AchievementInfo[]` (slug, name, description, points, hidden, icon URL).
- **One-click install:** download a ready-to-import `.unitypackage` from
  `coolgamex.com/sdk` — double-click to add CoolAPI to any Unity project.

## [1.3.0] — 2026-06-06
### Added
- **Connection status for devs:** `CoolAPI.IsConnected` (auto-updated after every
  request) and `CoolAPI.CheckConnection()` to ping the server on demand — great
  for an online/offline indicator.
- `CoolAPI.StatusLine()` — one-line debug string of
  `initialized` / `connected` / `authenticated` state.
- This **CHANGELOG**, plus a clearer "free for everyone" description.

## [1.2.0] — 2026-06-05
### Added
- **DLC ownership:** `CoolAPI.DLC.Owns("slug")` and `CoolAPI.DLC.ListOwned()`.
- **Request timeouts** (`Net.TimeoutSeconds`, default 20s) so calls can't hang.

## [1.1.0] — 2026-06-05
### Added
- **`CoolGameXManager`** drop-in component — zero-code setup + playtime heartbeat.
- **`Achievements.OnAchievementUnlocked`** event (fires only on first unlock).
- **`UnlockDetailed()`** returning `{ Success, NewlyUnlocked, Error }`.
- **`CoolAPI.LastError` / `LastStatus`** for easier debugging.

## [1.0.0] — 2026-06-05
### Added
- Initial release: `Initialize`, launcher-token auth (`--cgx-token`),
  achievements (`Unlock`), playtime tracking, and the awaitable HTTP layer.
