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< Pickup > | Pickups = > RegisteredPickups |
static bool | IgnorePreviousWeapon = false |
static bool | OverrideRandomPickupMethod |
static OnGetRandomPickupDelegate | OnGetRandomPickup |
static BuildWeightingTableDelegate | OnBuildWeightingTable |
static readonly List< Pickup > | DisabledPickups = 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. |
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!
name | The name of the pickup to search for. |
static void BallisticNG.Pickups.PickupRegistry.GetRandomPickup | ( | ShipRefs | r | ) | [inline, static] |
Randomly selects a pickup.
static void BallisticNG.Pickups.PickupRegistry.GivePickupToShip | ( | ShipRefs | r, |
Pickup | pickup | ||
) | [inline, static] |
Gives a pickup to a ship.
r | The ship to give the pickup to. |
pickup | The pickup to give to the ship. |
static Sprite BallisticNG.Pickups.PickupRegistry.LoadPickupIcon | ( | string | iconName | ) | [inline, static] |
Loads a pickup icon from Resources/UI/Pickups.
iconName | The name of the icon to load. |
static void BallisticNG.Pickups.PickupRegistry.RebuildWeightingTable | ( | ) | [inline, static] |
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.
pickup | The pickup to register. |
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.
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.
int BallisticNG.Pickups.PickupRegistry.PickupCount [static, get, set] |
The current number of pickups registered in the game.
List<string> BallisticNG.Pickups.PickupRegistry.PickupNames [static, get] |
Generates a list of all pickups registered in the game.