agentStartingInventory function

Inventory agentStartingInventory()

Everything an agent's own run starts holding — every weapon owned rather than sampleArsenal's two, so a blind policy can find out what each one does rather than being stuck finding pickups first.

Kept in step with apps/flutter3d_demo_dungeon's own startingInventory() by hand rather than by import: that copy answers what a person starts a level holding, which is a decision about this one game's pacing and not a fact this package should assert on the app's behalf.

Implementation

Inventory agentStartingInventory() => Inventory(
  arsenal: Arsenal(
    slots: Weapons.all,
    owned: <WeaponDef>[...Weapons.all],
    ammo: <AmmoType, int>{
      AmmoType.bullets: 90,
      AmmoType.shells: 30,
      AmmoType.rockets: 12,
    },
    startingSlot: 1,
  ),
);