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

MinionExtensions.GetAllMinionComponents<T>(CharacterMaster) Method

Fetches all the minions and fellow minions, then returns a list of the minions’ component.

public static System.Collections.Generic.List<T> GetAllMinionComponents<T>(this CharacterMaster ownerOrMinion)
    where T : Component;

Type parameters

T
Component to match

Parameters

ownerOrMinion RoR2.CharacterMaster
Master of the minions

Returns

System.Collections.Generic.List<T>
List of components of the minions