Interface IWeaponBehaviour

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

A player weapon's attack logic (step 7). Friendly projectiles it creates are moved by the weapon system.

public interface IWeaponBehaviour

Methods

Begin(SimWorld, WeaponState)

At wave start, once per weapon slot that uses this behaviour.

void Begin(SimWorld world, WeaponState weapon)

Parameters

world SimWorld
weapon WeaponState

Tick(SimWorld, WeaponState)

Every tick in slot order: targeting, firing, cooldowns.

void Tick(SimWorld world, WeaponState weapon)

Parameters

world SimWorld
weapon WeaponState