External Database Entries + Name File Cleaning + Faction Allegiance
DatabaseCache now reads and stores entry types marked ExternalEntry from separate files in their own folder Updated name file cleaning code and re-cleaned name files Disabled planet generation (very slow) Fixed wormhole traversal - can now explore galaxy Added faction allegiance matrix and slider inspector code
This commit is contained in:
parent
73651bf16a
commit
d8127c2240
84 changed files with 411 additions and 843 deletions
|
|
@ -18,7 +18,7 @@ public static class RethinkConnection
|
|||
{
|
||||
public static RethinkDB R = RethinkDB.R;
|
||||
|
||||
public static RethinkQueryStatus RethinkConnect(DatabaseCache cache, string connectionString, bool syncLocalChanges = true, bool filterGalaxyData = true)
|
||||
public static RethinkQueryStatus RethinkConnect(DatabaseCache cache, string connectionString, bool syncLocalChanges = true)
|
||||
{
|
||||
// Add Unity.Mathematics serialization support to RethinkDB Driver
|
||||
//Converter.Serializer.Converters.Add(new MathJsonConverter());
|
||||
|
|
@ -105,15 +105,7 @@ public static class RethinkConnection
|
|||
ReqlAst operation = R
|
||||
.Db("Aetheria")
|
||||
.Table("Galaxy");
|
||||
if (filterGalaxyData)
|
||||
{
|
||||
var filter = ((Table) operation).Filter(o =>
|
||||
o["$type"] == typeof(GalaxyMapLayerData).Name ||
|
||||
o["$type"] == typeof(MegaCorporation).Name);
|
||||
status.GalaxyEntries = filter.Count().RunAtom<int>(connection);
|
||||
operation = filter;
|
||||
}
|
||||
else status.GalaxyEntries = ((Table) operation).Count().RunAtom<int>(connection);
|
||||
status.GalaxyEntries = ((Table) operation).Count().RunAtom<int>(connection);
|
||||
|
||||
var result = await operation
|
||||
.RunCursorAsync<DatabaseEntry>(connection);
|
||||
|
|
|
|||
Loading…
Reference in a new issue