Table of Contents

Class DataTableManager

Namespace
Ceres.DataDriven
Assembly
Ceres.dll
public abstract class DataTableManager
Inheritance
DataTableManager
Derived
Inherited Members

Constructors

DataTableManager()

protected DataTableManager()

Fields

DataTables

protected readonly Dictionary<string, DataTable> DataTables

Field Value

Dictionary<string, DataTable>

Methods

GetDataTable(string)

public DataTable GetDataTable(string name)

Parameters

name string

Returns

DataTable

GetDataTableManager(Type)

public static DataTableManager GetDataTableManager(Type type)

Parameters

type Type

Returns

DataTableManager

GetOrCreateDataTableManager(Type)

public static DataTableManager GetOrCreateDataTableManager(Type type)

Parameters

type Type

Returns

DataTableManager

Initialize()

public static void Initialize()

Initialize(bool)

Async initialize manager at start of game, loading your dataTables in this stage

protected abstract UniTask Initialize(bool sync)

Parameters

sync bool

Whether initialize in sync, useful when need blocking loading

Returns

UniTask

InitializeAsync()

Manual initialization api

public static UniTask InitializeAsync()

Returns

UniTask

InitializeSingleTable(string, bool)

Initialize with loading a single table

protected UniTask InitializeSingleTable(string tableKey, bool sync)

Parameters

tableKey string
sync bool

Returns

UniTask

RegisterDataTable(DataTable)

protected void RegisterDataTable(DataTable dataTable)

Parameters

dataTable DataTable

RegisterDataTable(string, DataTable)

protected void RegisterDataTable(string name, DataTable dataTable)

Parameters

name string
dataTable DataTable

RegisterDataTableManager<TManager>(TManager)

protected static void RegisterDataTableManager<TManager>(TManager dataTableManager) where TManager : DataTableManager

Parameters

dataTableManager TManager

Type Parameters

TManager

ReleaseAll()

Free all DataTableManager for clearing cache

public static void ReleaseAll()

TryGetDataTableManager(Type, out DataTableManager)

public static bool TryGetDataTableManager(Type type, out DataTableManager dataTableManager)

Parameters

type Type
dataTableManager DataTableManager

Returns

bool