Show / Hide Table of Contents

Class BulkContextObject

Context object with cache, which could be used for example for bulk query data for all users instead of doing query per user. It's useful to save data between evaluations of GameValue, so it will make first all calculations that are needed for all users, and then just return them from cache. Especially useful in case of DB operations: it's too slow to make query per user, so if you can make bulk query with all users once, it will save a lot of time. Implemented because of lag investigation at White Tiger server: it fixes not working civic ticks due to too slow database requests.

Inheritance
System.Object
BulkContextObject
Implements
IContextObject
Namespace: Eco.Core.Utils.PropertyScanning
Assembly: Eco.Core.dll
Syntax
public class BulkContextObject : Object, IContextObject

Constructors

BulkContextObject()

Declaration
public BulkContextObject()

Fields

Cache

Declaration
public Dictionary<object, Dictionary<int, float>> Cache
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Object, System.Collections.Generic.Dictionary<System.Int32, System.Single>>

Implements

IContextObject

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾