Show / Hide Table of Contents

Class TooltipPartCacheKey

Servers as a key for lookup in tooltip part cache on both server and client. Given this key, cached content of a tooltip part can be retrieved from cache, if it is present.

Inheritance
System.Object
TooltipPartCacheKey
Implements
System.IEquatable<TooltipPartCacheKey>
Namespace: Eco.Shared.Items
Assembly: Eco.Shared.dll
Syntax
public sealed class TooltipPartCacheKey : ValueType, IEquatable<TooltipPartCacheKey>

Constructors

TooltipPartCacheKey(Int32, Int32, TooltipOrigin)

Declaration
public TooltipPartCacheKey(int partId, int viewId, TooltipOrigin origin)
Parameters
Type Name Description
System.Int32 partId

ControllerID of tooltip part.

System.Int32 viewId

ControllerID of view for which tooltip part content was generated or 0, depending on the cache mode used.

TooltipOrigin origin

TooltipOrigin for which tooltip part content was generated.>

TooltipPartCacheKey(Int32, Int32, TooltipOrigin, CacheAs)

Same as TooltipPartCacheKey(Int32, Int32, TooltipOrigin), but checks cache mode first to determine if viewId should be replaced with 0.

Declaration
public TooltipPartCacheKey(int partId, int viewId, TooltipOrigin origin, CacheAs cacheMode)
Parameters
Type Name Description
System.Int32 partId
System.Int32 viewId
TooltipOrigin origin
CacheAs cacheMode

Fields

Origin

TooltipOrigin for which tooltip part content was generated.

Declaration
public readonly TooltipOrigin Origin
Field Value
Type Description
TooltipOrigin

PartId

ControllerID of tooltip part.

Declaration
public readonly int PartId
Field Value
Type Description
System.Int32

ViewId

ControllerID of view for which tooltip part content was generated or 0, depending on the cache mode used.

Declaration
public readonly int ViewId
Field Value
Type Description
System.Int32

Methods

Equals(TooltipPartCacheKey)

Declaration
public bool Equals(TooltipPartCacheKey other)
Parameters
Type Name Description
TooltipPartCacheKey other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Operators

Equality(TooltipPartCacheKey, TooltipPartCacheKey)

Declaration
public static bool operator ==(TooltipPartCacheKey left, TooltipPartCacheKey right)
Parameters
Type Name Description
TooltipPartCacheKey left
TooltipPartCacheKey right
Returns
Type Description
System.Boolean

Inequality(TooltipPartCacheKey, TooltipPartCacheKey)

Declaration
public static bool operator !=(TooltipPartCacheKey left, TooltipPartCacheKey right)
Parameters
Type Name Description
TooltipPartCacheKey left
TooltipPartCacheKey right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<>

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾