Class FunctionalityIslandExtensions
Namespace: Unity.MARS
Syntax
public static class FunctionalityIslandExtensions
Methods
GetProvidedTraits(FunctionalityIsland, HashSet<TraitDefinition>)
Declaration
public static void GetProvidedTraits(this FunctionalityIsland island, HashSet<TraitDefinition> traits)
Parameters
Type | Name | Description |
---|---|---|
FunctionalityIsland | island | |
HashSet<TraitDefinition> | traits |
RequireProvidersWithDefaultProviders(FunctionalityIsland, HashSet<TraitDefinition>, List<IFunctionalityProvider>)
Set up functionality providers from the list of default providers This allows custom serialized data to be set up on prefabs for providers
Declaration
public static void RequireProvidersWithDefaultProviders(this FunctionalityIsland island, HashSet<TraitDefinition> requiredTraits, List<IFunctionalityProvider> newProviders = null)
Parameters
Type | Name | Description |
---|---|---|
FunctionalityIsland | island | The functionality island on which to set up default providers |
HashSet<TraitDefinition> | requiredTraits | The required traits that must be satisfied by providers |
List<IFunctionalityProvider> | newProviders | (Optional) A list to which new providers will be added |