public void UpdateWeaponList(IState state, string propertyPath, ArrayIndices arrayIndices) { int index = arrayIndices[0]; IPlayerState s = (IPlayerState)state; if (s.Weapons[index].ID == -1) { _playerWeapons.RemoveWeapon(index); } }
public void UpdateWeaponList(IState state, string propertyPath, ArrayIndices arrayIndices) { int index = arrayIndices[0]; IPlayerState s = (IPlayerState)state; if (s.Weapons[index].ID == -1) { _playerWeapons.RemoveWeapon(index); } else { Bolt.Utils.BoltConsole.Write(((WeaponID)s.Weapons[index].ID).ToString()); } }