Easily usable Json to Table (dictionary and mores).
Use Newtonsoft.json.
[Table(@"json")]
public partial class TableItem : BaseDict<string, Item>
{
}
MasterTable.Load("ItemGenerator.Table");
var data = MasterTable.From<TableItem>();
MasterTable.From<TableItem>().FirstOrDefault(x => x.Id == id);
- BaseList
List<T>
- BaseDict
Dictionary<K, T>
- BaseMultiDict
Dictionary<K, List<T>>
- Similar C++ stl Multimap
- Example
[Table(@"json")] public partial class TableItemByType : BaseMultiDict<ItemType, Item> { public TableItemByType() : base("Type") // input key property name { } }
Modified the Load function interface behavior to allow loading from multiple assemblies.
Remove nullable return of MasterTable and return an exception when requesting an invalid type.
Added Json load optional method. (virtual interface, for Unity3D)
Added Container methods (get internal container)
Added Clone methods
TargetFramework to netstandard2.1
Fixed Nullable rule.
Load from Binary path. (Full Path)
Exception process reinforcement.
Features added MultiDict. (like c++ stl multimap)
Supports OnLoad() function to set configuration rules when container is loaded.
Tables now only require a folder path. (The full path is not required.)
removed nullable property on container (BaseDict and BaseList).