Magazine Component

The Magazine is the base script responsible for managing the weapon’s ammunition logic. It defines the core functionality used by all magazine types and is referenced by barrels to determine if a weapon can shoot.

Note

This base script is meant to be extended by more specific implementations such as bullet-based or rechargeable magazines.

✅ Responsibilities

  • Holding ammo data (clip size and current count)
  • Providing an interface for barrels to read from
  • Emitting a OnDepleted event when the clip runs out

🔋 Magazine Types

This system currently provides two magazine implementations:

Each one extends the base Magazine logic and introduces specialized behavior, which we’ll cover in the next documentation pages.