BallisticNG
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties
BallisticNG.Pickups.PickupRegistry Struct Reference

List of all members.

Public Member Functions

delegate void OnGetRandomPickupDelegate (ShipRefs r)
delegate void BuildWeightingTableDelegate ()

Static Public Member Functions

static int RegisterPickup (Pickup pickup)
 Registers a new pickup into the game.
static void UnregisterPickup (Pickup pickup)
 Unregisters a pickup from the game.
static void UnregisterPickup (string pickupName)
 Unregisters a pickup from the game.
static void EnablePickup (params string[] pickupName)
 Enables a pickup so it can be added to the random weighting table. This should be called before Gamemode.OnStart().
static void EnablePickup (params Pickup[] pickup)
 Enables a pickup so it can be added to the random weighting table. This should be called before Gamemode.OnStart().
static void DisablePickup (params string[] pickupName)
 Disables a pickup so it's not added to the random weighting table. This should be called before Gamemode.OnStart().
static void DisablePickup (params Pickup[] pickup)
 Disables a pickup so it's not added to the random weighting table. This should be called before Gamemode.OnStart().
static Pickup FindPickupByName (string name)
 Returns a pickup by its name, this can return null!
static void GetRandomPickup (ShipRefs r)
 Randomly selects a pickup.
static bool TryGivePickup (List< Pickup > attemptedPickups, ShipRefs r, float chance, int pickupCount)
static void GivePickupToShip (ShipRefs r, Pickup pickup)
 Gives a pickup to a ship.
static Sprite LoadPickupIcon (string iconName)
 Loads a pickup icon from Resources/UI/Pickups.
static void RebuildWeightingTable ()
 Rebuilds the weighting table for the random weapon function.
static bool ShieldAutoDeployCheck (Pickup pu, ShipRefs r)
 Handles the shield auto deploy logic.

Static Public Attributes

static Pickup PickupRockets
 THe pickup entry for rockets.
static Pickup PickupMissile
 The pickup entry for the missile.
static Pickup PickupMines
 The pickup entry for mines.
static Pickup PickupPlasma
 The pickup entry for the plasma.
static Pickup PickupEnergyWall
 The pickup entry for the energy wall.
static Pickup PickupCannon
 The pickup entry for the cannon.
static Pickup PickupShield
 The pickup entry for the shield.
static Pickup PickupAutopilot
 The pickup entry for the autopilot.
static Pickup PickupEmergencyPack
 The pickup entry for the emergency pack.
static Pickup PickupTremor
 The pickup entry for the tremor.
static Pickup PickupTurbo
 The pickup entry for the turbo.
static Pickup PickupHunter
 The pickup entry for the hunter.
static Pickup PickupHellstorm
 The pickup entry for the Hellstorm.
static List< PickupPickups = > RegisteredPickups
static bool IgnorePreviousWeapon = false
static bool OverrideRandomPickupMethod
static OnGetRandomPickupDelegate OnGetRandomPickup
static BuildWeightingTableDelegate OnBuildWeightingTable
static readonly List< PickupDisabledPickups = new List<Pickup>()
 Pickups which won't be included in the pickup weighting table.

Properties

static List< string > PickupNames [get]
 Generates a list of all pickups registered in the game.
static int PickupCount [get, set]
 The current number of pickups registered in the game.

Member Function Documentation

static void BallisticNG.Pickups.PickupRegistry.DisablePickup ( params string[]  pickupName) [inline, static]

Disables a pickup so it's not added to the random weighting table. This should be called before Gamemode.OnStart().

s

static void BallisticNG.Pickups.PickupRegistry.DisablePickup ( params Pickup[]  pickup) [inline, static]

Disables a pickup so it's not added to the random weighting table. This should be called before Gamemode.OnStart().

static void BallisticNG.Pickups.PickupRegistry.EnablePickup ( params string[]  pickupName) [inline, static]

Enables a pickup so it can be added to the random weighting table. This should be called before Gamemode.OnStart().

static void BallisticNG.Pickups.PickupRegistry.EnablePickup ( params Pickup[]  pickup) [inline, static]

Enables a pickup so it can be added to the random weighting table. This should be called before Gamemode.OnStart().

static Pickup BallisticNG.Pickups.PickupRegistry.FindPickupByName ( string  name) [inline, static]

Returns a pickup by its name, this can return null!

Parameters:
nameThe name of the pickup to search for.
Returns:
static void BallisticNG.Pickups.PickupRegistry.GetRandomPickup ( ShipRefs  r) [inline, static]

Randomly selects a pickup.

Returns:
static void BallisticNG.Pickups.PickupRegistry.GivePickupToShip ( ShipRefs  r,
Pickup  pickup 
) [inline, static]

Gives a pickup to a ship.

Parameters:
rThe ship to give the pickup to.
pickupThe pickup to give to the ship.
static Sprite BallisticNG.Pickups.PickupRegistry.LoadPickupIcon ( string  iconName) [inline, static]

Loads a pickup icon from Resources/UI/Pickups.

Parameters:
iconNameThe name of the icon to load.
Returns:

Rebuilds the weighting table for the random weapon function.

static int BallisticNG.Pickups.PickupRegistry.RegisterPickup ( Pickup  pickup) [inline, static]

Registers a new pickup into the game.

Parameters:
pickupThe pickup to register.
Returns:
The ID of the pickup.
static bool BallisticNG.Pickups.PickupRegistry.ShieldAutoDeployCheck ( Pickup  pu,
ShipRefs  r 
) [inline, static]

Handles the shield auto deploy logic.

static void BallisticNG.Pickups.PickupRegistry.UnregisterPickup ( Pickup  pickup) [inline, static]

Unregisters a pickup from the game.

static void BallisticNG.Pickups.PickupRegistry.UnregisterPickup ( string  pickupName) [inline, static]

Unregisters a pickup from the game.


Member Data Documentation

readonly List<Pickup> BallisticNG.Pickups.PickupRegistry.DisabledPickups = new List<Pickup>() [static]

Pickups which won't be included in the pickup weighting table.

The pickup entry for the autopilot.

The pickup entry for the cannon.

The pickup entry for the emergency pack.

The pickup entry for the energy wall.

The pickup entry for the Hellstorm.

The pickup entry for the hunter.

The pickup entry for mines.

The pickup entry for the missile.

The pickup entry for the plasma.

THe pickup entry for rockets.

The pickup entry for the shield.

The pickup entry for the tremor.

The pickup entry for the turbo.


Property Documentation

The current number of pickups registered in the game.

Generates a list of all pickups registered in the game.


The documentation for this struct was generated from the following file: