Class TooltipPartBase
Inheritance
System.Object
TooltipPartBase
Assembly: Eco.Gameplay.dll
public abstract class TooltipPartBase : Object, IController, IViewController, IHasUniversalID
Constructors
Declaration
protected TooltipPartBase(MemberInfo member, NewTooltipAttributeBase attr, Type rootType)
Parameters
Properties
The attribute from which this part was created.
Declaration
public NewTooltipAttributeBase Attribute { get; protected set; }
Property Value
Declaration
public Type BaseType { get; }
Property Value
Type |
Description |
System.Type |
|
Declaration
public CacheAs CacheMode { get; }
Property Value
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public abstract bool IsImage { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public abstract bool IsTitle { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public bool RequiresController { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool RequiresOrigin { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool RequiresUser { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool RequiresView { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public Type Type { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
Clear the cache of all tooltip parts and children parts.
Declaration
public static void ClearCache()
Declaration
public abstract void ClearCache(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Declaration
public string DebugName()
Returns
Type |
Description |
System.String |
|
Declaration
public string DebugName(string specificUser)
Parameters
Type |
Name |
Description |
System.String |
specificUser |
|
Returns
Type |
Description |
System.String |
|
GenerateDebugText(IController, TooltipOrigin, User)
Generates text that represnets contents of this part for given context.
Declaration
public abstract LocString GenerateDebugText(IController controller, TooltipOrigin origin, User user)
Parameters
Returns
Declaration
protected int GetCacheKey(IController controller)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public abstract List<KeyValuePair<(int, TooltipOrigin), LocString>> GetInternalCache()
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.ValueTuple<System.Int32, TooltipOrigin>, LocString>> |
|
Declaration
protected TooltipPartBase.GetValueFromMember GetMemberDelegate(FieldInfo field)
Parameters
Type |
Name |
Description |
System.Reflection.FieldInfo |
field |
|
Returns
Declaration
protected TooltipPartBase.GetValueFromMember GetMemberDelegate(MethodInfo method, Type[] paramTypes)
Parameters
Type |
Name |
Description |
System.Reflection.MethodInfo |
method |
|
System.Type[] |
paramTypes |
|
Returns
Declaration
protected TooltipPartBase.GetValueFromMember GetMemberDelegate(PropertyInfo property)
Parameters
Type |
Name |
Description |
System.Reflection.PropertyInfo |
property |
|
Returns
Create a reference to this part, omitting the controller and user ID if we dont care about them.
Declaration
public TooltipPartRef MakeRef(IController instance, int userId)
Parameters
Type |
Name |
Description |
IController |
instance |
|
System.Int32 |
userId |
|
Returns
Method that receives a delegate that can call the member marked with the attribute and return object returned by that member. Class overriding this should implement that method to internaly set up it's own generator delegate.
Declaration
protected abstract void SetGenerator(TooltipPartBase.GetValueFromMember generator)
Parameters
Implements
Extension Methods