ChensGradiusMod
Chen.GradiusMod.Items.GradiusOption
GradiusOption Class
An item class which provides the main API related to the Options/Multiples.
public class GradiusOption : Chen.GradiusMod.Items.ItemBase<Chen.GradiusMod.Items.GradiusOption.GradiusOption>,
Chen.GradiusMod.Mirroring.IMirrorProvider
Inheritance System.Object 🡒 ModuleBase 🡒 ItemBase 🡒 Chen.GradiusMod.Items.ItemBase<GradiusOption> 🡒 GradiusOption
Implements IMirrorProvider
| Methods | Â |
|---|---|
| FireForAllOptions(CharacterBody, Action<GameObject,OptionBehavior,GameObject,Vector3>) | Loops through all the Options of the minion. The action has 4 useful parameters to use. The first parameter refers to the Option/Multiple itself. It is a GameObject. The second parameter refers to the OptionBehavior component in the Option/Multiple. The third parameter refers to the target of the Option/Multiple owner. It is also a GameObject. The last parameter refers to the direction from the option to the target. It is a normalized Vector3. |
| ForEachOption(CharacterBody, Action<GameObject,OptionBehavior,GameObject,Vector3>) | Same as FireForAllOptions, but also runs for minions that use automatic mirroring. Only use this for attacks that the automatic mirroring cannot copy, such as orbs. |
| LoopAllMinions(CharacterMaster, Action<GameObject>) | Loops through the all the minions of the owner. |
| OptionMuzzleEffect(GameObject, GameObject, bool) | Deprecated method that provides an easy way of displaying the effect prefab on Options. |
| OptionSync(CharacterBody, Action<NetworkIdentity,OptionTracker>, bool) | Method that provides the Network Identity and Option Tracker for easier syncing. Sync logic should be provided in actionToRun. |
| SetAutoMirroring(string, bool) | Sets if a minion type gains Options that copy its attacks automatically, by copying the bullets, projectiles, melee hits and explosions it creates. Use this for modded drones and minions. Minions supported with SupportMinionType rely on manual support with FireForAllOptions instead. |
| SetRotateOptionMultiplier(string, float) | Sets the rotation multiplier for a minion type. This multiplier affects the distance and speed of rotation. |
| SetRotateOptionOffset(string, Vector3) | Sets the offset center position for a minion type. Options will rotate around the offset. |
| SetToRegularOptions(string) | Lets the minion use Regular Options. |
| SetToRotateOptions(string) | Lets the minion use Rotate Options. |
| SupportMinionType(string) | Adds a support for a minion for them to gain Options. |
| UnsupportMinionType(string) | Removes support for a minion so that they do not acquire Options. |
| UsesAutoMirroring(CharacterMaster) | Checks if the minion’s Options copy its attacks automatically. |