Beamable SDK
|
Public Member Functions | |
void | ReloadHintTextMapScriptableObjects (List< string > hintConfigPaths) |
Called to load all BeamHintTextMaps in the given hintConfigPaths . It ensures the loaded ConverterData<T> instances are up-to-date with their references to BeamHintTextMap. | |
void | ReloadHintDetailConfigScriptableObjects (List< string > hintConfigPaths) |
Called to load all BeamHintDetailsConfigs in the given hintConfigPaths . It ensures the loaded ConverterData<T> instances are up-to-date with their references to BeamHintDetailsConfig. | |
bool | TryGetConverterDataForHint (BeamHintHeader header, out ConverterData< DefaultConverter > converter) |
Tries to get a ConverterData<T> struct for a hint with the given header . | |
bool | TryGetHintTitleText (BeamHintHeader header, out string titleText) |
Tries to get the title text defined in the BeamHintTextMap tied to the first matching hint id of the given header . | |
bool | TryGetDomainTitleText (string domainSubString, out string titleText) |
Tries to get the title text defined in the BeamHintTextMap tied to the first matching domain of the given domainSubString . | |
void | SetStorage (IBeamHintGlobalStorage hintGlobalStorage) |
Injection point for reflections systems that wish to generate hints. Leave without implementation if no hints are generated. Remember to wrap hint code in "#if UNITY_EDITOR" directives as this storage instance is null during non-editor builds. More... | |
void | ClearCachedReflectionData () |
Called once on each IReflectionSystem before building the reflection cache. Exists mostly to deal with the fact that Unity's initialization hooks are weird and seem to trigger twice when entering playmode. More... | |
void | OnSetupForCacheGeneration () |
Called once on each IReflectionSystem before building the reflection cache. More... | |
void | OnReflectionCacheBuilt (PerBaseTypeCache perBaseTypeCache, PerAttributeCache perAttributeCache) |
Called once per ReflectionCache.GenerateReflectionCache invocation after the assembly sweep ReflectionCache.RebuildReflectionCache is completed. More... | |
void | OnBaseTypeOfInterestFound (BaseTypeOfInterest baseType, IReadOnlyList< MemberInfo > cachedSubTypes) |
Called once per declared IReflectionTypeProvider.BaseTypesOfInterest with each base type and the cached list of types for which Type.IsAssignableFrom returns true. More... | |
void | OnAttributeOfInterestFound (AttributeOfInterest attributeType, IReadOnlyList< MemberAttribute > cachedMemberAttributes) |
Called once per declared IReflectionTypeProvider.AttributesOfInterest. More... | |
BeamHintTextMap | GetTextMapForId (BeamHintHeader header) |
Gets the first text map that matches the given header. TODO: Replace when we have our in-editor localization solution | |
Properties | |
List< BaseTypeOfInterest > | BaseTypesOfInterest [get] |
List< AttributeOfInterest > | AttributesOfInterest [get] |
IReadOnlyList< IBeamHintSystem > | GloballyAccessibleHintSystems [get] |
Readonly accessor to the list of cached and instantiated IBeamHintSystem that are not injected into Beam Context. | |
IReadOnlyList< ConstructorInfo > | BeamContextAccessibleHintSystems [get] |
Properties inherited from Beamable.Common.Reflection.IReflectionTypeProvider | |
List< BaseTypeOfInterest > | BaseTypesOfInterest [get] |
List of BaseTypeOfInterest this provider adds to the assembly sweep. | |
List< AttributeOfInterest > | AttributesOfInterest [get] |
List of AttributeOfInterest this provider adds to the assembly sweep. | |
|
inline |
Called once on each IReflectionSystem before building the reflection cache. Exists mostly to deal with the fact that Unity's initialization hooks are weird and seem to trigger twice when entering playmode.
Implements Beamable.Common.Reflection.IReflectionSystem.
|
inline |
Called once per declared IReflectionTypeProvider.AttributesOfInterest.
attributeType | The attribute type of interest. |
cachedMemberAttributes | The list of all MemberInfo and Attribute instances matching attributeType that were found in the assembly sweep. |
Implements Beamable.Common.Reflection.IReflectionSystem.
|
inline |
Called once per declared IReflectionTypeProvider.BaseTypesOfInterest with each base type and the cached list of types for which Type.IsAssignableFrom returns true.
baseType | The base type of interest. |
cachedSubTypes | The list of types for which Type.IsAssignableFrom returns true. |
Implements Beamable.Common.Reflection.IReflectionSystem.
|
inline |
Called once per ReflectionCache.GenerateReflectionCache invocation after the assembly sweep ReflectionCache.RebuildReflectionCache is completed.
perBaseTypeCache | Current cached Per-Base Type information. |
perAttributeCache | Currently cached Per-Attribute information. |
Implements Beamable.Common.Reflection.IReflectionSystem.
|
inline |
Called once on each IReflectionSystem before building the reflection cache.
Implements Beamable.Common.Reflection.IReflectionSystem.
void Beamable.Editor.Reflection.BeamHintReflectionCache.Registry.SetStorage | ( | IBeamHintGlobalStorage | hintGlobalStorage | ) |
Injection point for reflections systems that wish to generate hints. Leave without implementation if no hints are generated. Remember to wrap hint code in "#if UNITY_EDITOR" directives as this storage instance is null during non-editor builds.
Implements Beamable.Common.Reflection.IReflectionSystem.