Skip to content

Commit 1265ac7

Browse files
authored
Fix scheduled tables (#8)
* Fix scheduled tables The API has changed upstream and requires user to specify those columns manually. * Regenerate and fix paths
1 parent c6a003f commit 1265ac7

19 files changed

+323
-298
lines changed

demo/Blackholio/client/Assets/PlayModeTests/PlayModeExampleTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public IEnumerator CreatePlayerAndTestDecay()
5454

5555
PlayerPrefs.DeleteAll();
5656
SceneManager.LoadScene("Scenes/Main");
57-
while(UIUsernameChooser.instance == null)
57+
while (UIUsernameChooser.instance == null)
5858
yield return null;
5959
var playerCreated = false;
6060

@@ -90,7 +90,7 @@ public IEnumerator CreatePlayerAndTestDecay()
9090

9191
// Standing still should decay a bit
9292
PlayerController.Local.EnableTestInput();
93-
while(foodEaten < 200)
93+
while (foodEaten < 200)
9494
{
9595
Debug.Assert(circle != null, nameof(circle) + " != null");
9696
var ourEntity = GameManager.conn.Db.Entity.Id.Find(circle.EntityId);
@@ -173,8 +173,8 @@ public IEnumerator OneOffTest1()
173173
UIUsernameChooser.instance.PlayPressed();
174174
while (!playerCreated) yield return null;
175175

176-
var task = GameManager.conn.OneOffQuery<Player>(
177-
$"SELECT * FROM player WHERE identity=0x{GameManager.localIdentity}");
176+
var task = GameManager.conn.Db.Player.RemoteQuery(
177+
$"WHERE identity=0x{GameManager.localIdentity}");
178178
Task.Run(() => task.RunSynchronously());
179179
while (!task.IsCompleted) yield return null;
180180
var players = task.Result;
@@ -244,7 +244,7 @@ public IEnumerator ReconnectionViaReloadingScene()
244244
Debug.Log("Initial scene load!");
245245
PlayerPrefs.DeleteAll();
246246
SceneManager.LoadScene("Scenes/Main");
247-
while(UIUsernameChooser.instance == null)
247+
while (UIUsernameChooser.instance == null)
248248
yield return null;
249249
var playerCreated = false;
250250

@@ -274,7 +274,7 @@ public IEnumerator ReconnectionViaReloadingScene()
274274
// Reload
275275
SceneManager.LoadScene("Scenes/Main");
276276

277-
while(!connected || !subscribed) yield return null;
277+
while (!connected || !subscribed) yield return null;
278278
var newPlayer = GameManager.conn.Db.Player.Identity.Find(GameManager.localIdentity);
279279
Debug.Assert(player.PlayerId == newPlayer.PlayerId, "PlayerIds should match!");
280280
var newCircle = GameManager.conn.Db.Circle.Iter().FirstOrDefault(a => a.PlayerId == newPlayer.PlayerId);

demo/Blackholio/client/Assets/Scripts/autogen/CircleDecayReducer.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/CircleDecayReducer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/CreatePlayerReducer.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/CreatePlayerReducer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/Food.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ public partial class Food : IDatabaseRow
1818
[DataMember(Name = "entity_id")]
1919
public uint EntityId;
2020

21-
public Food(
22-
uint EntityId
23-
)
21+
public Food(uint EntityId)
2422
{
2523
this.EntityId = EntityId;
2624
}

demo/Blackholio/client/Assets/Scripts/autogen/MoveAllPlayersReducer.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/MoveAllPlayersReducer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/PlayerSplitReducer.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

demo/Blackholio/client/Assets/Scripts/autogen/PlayerSplitReducer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)