RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.GeneralHelpers

MinionExtensions Class

Useful extensions related to Minions.

public static class MinionExtensions

Inheritance System.Object 🡒 MinionExtensions

Methods  
AssignOwner(CharacterMaster, CharacterMaster, bool, bool) Assigns a new owner to the minion. This needs to be called on both the Server and the Client.
If transmit is true, it only needs to be called on the server.
The queuing system provides a way to ensure that all clients will sync the owner. This is a slow process though.
Only set useQueue to true if the client cannot see the objects and returns a warning of the object being null.
GetAllMinionComponents<T>(CharacterMaster) Fetches all the minions and fellow minions, then returns a list of the minions’ component.
LoopMinions(CharacterMaster, Action<CharacterMaster>) Loops through the minions and fellow minions, then applies processing for each through an action.