Class CacheAs
Defines different caching modes tooltip part can use.
Inheritance
Namespace: Eco.Shared.Items
Assembly: Eco.Shared.dll
Syntax
[Serialized]
public sealed class CacheAs : Enum
Fields
Disabled
Disable caching for tooltip part entirely (on server and on client).
Declaration
public const CacheAs Disabled
Field Value
Type | Description |
---|---|
CacheAs |
Remarks
When this flag is set all other flags should not be used.
Global
Create only one cache entry for tooltip part and use it for all instances and users.
Declaration
public const CacheAs Global
Field Value
Type | Description |
---|---|
CacheAs |
Remarks
When this flag is set all other flags should not be used.
Instance
Cache tooltip part for every instance of a type individually.
Declaration
public const CacheAs Instance
Field Value
Type | Description |
---|---|
CacheAs |
Remarks
Can be combined with User flag to also disable server-side cache.
SubType
Create separate cache entry for every type derived from the type that defines tooltip part and share those entries among instances of their respective types.
Declaration
public const CacheAs SubType
Field Value
Type | Description |
---|---|
CacheAs |
Remarks
Can be combined with User flag to also disable server-side cache. Can not be used with instance members or for extension methods.
User
Cache tooltip part for every user individually.
Declaration
public const CacheAs User
Field Value
Type | Description |
---|---|
CacheAs |
Remarks
Disables caching for tooltip part on server causing it to only be cached on client.
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |