From 5b17b605a8c47fac75b541985a56624b2569cfc3 Mon Sep 17 00:00:00 2001 From: John Detter <4099508+jdetter@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:14:14 +0800 Subject: [PATCH 1/3] Copied changes from Blackholio PR #33 --- .../client-unity/Assets/Scenes/Main.unity | 42 +++++++-------- .../Assets/Scripts/CameraController.cs | 5 +- .../Assets/Scripts/EntityController.cs | 8 +-- .../Assets/Scripts/GameManager.cs | 31 ++++++++++- .../Assets/Scripts/UIUsernameChooser.cs | 23 +++++---- .../Scripts/autogen/Reducers/CircleDecay.g.cs | 6 +-- .../autogen/Reducers/CircleRecombine.g.cs | 4 +- .../Scripts/autogen/Reducers/Connect.g.cs | 4 +- .../autogen/Reducers/ConsumeEntity.g.cs | 4 +- .../Scripts/autogen/Reducers/Disconnect.g.cs | 4 +- .../Scripts/autogen/Reducers/EnterGame.g.cs | 4 +- .../autogen/Reducers/MoveAllPlayers.g.cs | 6 +-- .../Scripts/autogen/Reducers/PlayerSplit.g.cs | 4 +- .../Scripts/autogen/Reducers/Respawn.g.cs | 4 +- .../Scripts/autogen/Reducers/SpawnFood.g.cs | 6 +-- .../Scripts/autogen/Reducers/Suicide.g.cs | 4 +- .../autogen/Reducers/UpdatePlayerInput.g.cs | 4 +- .../Scripts/autogen/SpacetimeDBClient.g.cs | 32 ++++++------ .../Assets/Scripts/autogen/Tables/Circle.g.cs | 2 +- .../autogen/Tables/CircleDecayTimer.g.cs | 2 +- .../autogen/Tables/CircleRecombineTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Config.g.cs | 2 +- .../autogen/Tables/ConsumeEntityTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Entity.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Food.g.cs | 2 +- .../autogen/Tables/LoggedOutCircle.g.cs | 51 +++++++++++++++++++ .../autogen/Tables/LoggedOutCircle.g.cs.meta | 11 ++++ .../autogen/Tables/LoggedOutEntity.g.cs | 41 +++++++++++++++ .../autogen/Tables/LoggedOutEntity.g.cs.meta | 11 ++++ .../autogen/Tables/LoggedOutPlayer.g.cs | 2 +- .../autogen/Tables/MoveAllPlayersTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Player.g.cs | 2 +- .../autogen/Tables/SpawnFoodTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Circle.g.cs | 2 +- .../autogen/Types/CircleDecayTimer.g.cs | 2 +- .../autogen/Types/CircleRecombineTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Config.g.cs | 2 +- .../autogen/Types/ConsumeEntityTimer.g.cs | 2 +- .../Scripts/autogen/Types/DbVector2.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Entity.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Food.g.cs | 2 +- .../autogen/Types/MoveAllPlayersTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Player.g.cs | 2 +- .../Scripts/autogen/Types/SpawnFoodTimer.g.cs | 2 +- demo/Blackholio/server-csharp/Lib.cs | 13 +++++ demo/Blackholio/server-rust/Cargo.toml | 4 -- demo/Blackholio/server-rust/src/lib.rs | 17 ++++++- 47 files changed, 280 insertions(+), 107 deletions(-) create mode 100644 demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs create mode 100644 demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs.meta create mode 100644 demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs create mode 100644 demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs.meta diff --git a/demo/Blackholio/client-unity/Assets/Scenes/Main.unity b/demo/Blackholio/client-unity/Assets/Scenes/Main.unity index 6aaf6bf1f51..2428702526e 100644 --- a/demo/Blackholio/client-unity/Assets/Scenes/Main.unity +++ b/demo/Blackholio/client-unity/Assets/Scenes/Main.unity @@ -191,7 +191,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &75691256 RectTransform: m_ObjectHideFlags: 0 @@ -665,10 +665,10 @@ RectTransform: - {fileID: 15926227} m_Father: {fileID: 920270125} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 119.685, y: -18.51} + m_SizeDelta: {x: 239.37, y: 37.02} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &380907976 MonoBehaviour: @@ -1214,10 +1214,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 867669873} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 209.305, y: -40.11} + m_SizeDelta: {x: 378.61, y: 40.22} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &734198859 MonoBehaviour: @@ -1335,7 +1335,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &867669873 RectTransform: m_ObjectHideFlags: 0 @@ -1356,7 +1356,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: 418.61, y: 216.14} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &867669874 MonoBehaviour: @@ -1620,10 +1620,10 @@ RectTransform: - {fileID: 380907975} m_Father: {fileID: 867669873} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 209.305, y: -96.03001} + m_SizeDelta: {x: 239.37, y: 37.02} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &920270126 MonoBehaviour: @@ -1826,8 +1826,10 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: fdf6b37246fc5824eb3c4e6888c33a4a, type: 3} m_Name: m_EditorClassIdentifier: + elements: + - {fileID: 75691255} + - {fileID: 867669872} UsernameInputField: {fileID: 380907977} - PlayButton: {fileID: 1670294508} --- !u!1 &1005992895 GameObject: m_ObjectHideFlags: 0 @@ -2424,10 +2426,10 @@ RectTransform: - {fileID: 1005992896} m_Father: {fileID: 867669873} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 209.305, y: -163.98999} + m_SizeDelta: {x: 179.31, y: 64.3} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1670294507 MonoBehaviour: diff --git a/demo/Blackholio/client-unity/Assets/Scripts/CameraController.cs b/demo/Blackholio/client-unity/Assets/Scripts/CameraController.cs index 8f29eb3771e..f4af7c65473 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/CameraController.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/CameraController.cs @@ -1,5 +1,6 @@ using System.Collections; using System.Collections.Generic; +using SpacetimeDB.Types; using UnityEngine; public class CameraController : MonoBehaviour @@ -9,10 +10,10 @@ public class CameraController : MonoBehaviour private void LateUpdate() { var arenaCenterTransform = new Vector3(WorldSize / 2, WorldSize / 2, -10.0f); - if (PlayerController.Local == null || !GameManager.IsConnected()) + if (PlayerController.Local == null || !GameManager.IsConnected() || PlayerController.Local.NumberOfOwnedCircles == 0) { // Set the camera to be in middle of the arena if we are not connected or - // there is no local player + // there are no circles to follow transform.position = arenaCenterTransform; return; } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs b/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs index f52903df252..29d3d569858 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs @@ -16,7 +16,7 @@ public abstract class EntityController : MonoBehaviour protected float LerpTime; protected Vector3 LerpStartPosition; - protected Vector3 LerpTargetPositio; + protected Vector3 LerpTargetPosition; protected Vector3 TargetScale; protected virtual void Spawn(uint entityId) @@ -24,7 +24,7 @@ protected virtual void Spawn(uint entityId) EntityId = entityId; var entity = GameManager.Conn.Db.Entity.EntityId.Find(entityId); - LerpStartPosition = LerpTargetPositio = transform.position = (Vector2)entity.Position; + LerpStartPosition = LerpTargetPosition = transform.position = (Vector2)entity.Position; transform.localScale = Vector3.one; TargetScale = MassToScale(entity.Mass); } @@ -38,7 +38,7 @@ public virtual void OnEntityUpdated(Entity newVal) { LerpTime = 0.0f; LerpStartPosition = transform.position; - LerpTargetPositio = (Vector2)newVal.Position; + LerpTargetPosition = (Vector2)newVal.Position; TargetScale = MassToScale(newVal.Mass); } @@ -78,7 +78,7 @@ public virtual void Update() { //Interpolate position and scale LerpTime = Mathf.Min(LerpTime + Time.deltaTime, LERP_DURATION_SEC); - transform.position = Vector3.Lerp(LerpStartPosition, LerpTargetPositio, LerpTime / LERP_DURATION_SEC); + transform.position = Vector3.Lerp(LerpStartPosition, LerpTargetPosition, LerpTime / LERP_DURATION_SEC); transform.localScale = Vector3.Lerp(transform.localScale, TargetScale, Time.deltaTime * 8); } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs b/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs index 82d33882c06..018ddf69fb9 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs @@ -50,6 +50,7 @@ private void Start() // and their circles will be able to eat each other. if (AuthToken.Token != "") { + Debug.Log("Using auth token!"); builder = builder.WithToken(AuthToken.Token); } @@ -98,11 +99,39 @@ private void HandleSubscriptionApplied(SubscriptionEventContext ctx) { Debug.Log("Subscription applied!"); OnSubscriptionApplied?.Invoke(); - + // Once we have the initial subscription sync'd to the client cache // Get the world size from the config table and set up the arena var worldSize = Conn.Db.Config.Id.Find(0).WorldSize; SetupArena(worldSize); + + // Check to see if we already have a player, if we don't we'll need to create one + var player = ctx.Db.Player.Identity.Find(LocalIdentity); + if (string.IsNullOrEmpty(player.Name)) + { + // The player has to choose a username + UIUsernameChooser.Instance.Show(true); + + // When our username is updated, hide the username chooser + Conn.Db.Player.OnUpdate += (_, _, newPlayer) => + { + if (newPlayer.Identity == LocalIdentity) + { + UIUsernameChooser.Instance.Show(false); + } + }; + } else { + // We already have a player + if (ctx.Db.Circle.PlayerId.Filter(player.PlayerId).Any()) + { + // We already have at least one circle, we should just be able to start + // playing immediately. + UIUsernameChooser.Instance.Show(false); + } else { + // Create a new circle for our player. + ctx.Reducers.EnterGame(player.Name); + } + } } private void SetupArena(float worldSize) diff --git a/demo/Blackholio/client-unity/Assets/Scripts/UIUsernameChooser.cs b/demo/Blackholio/client-unity/Assets/Scripts/UIUsernameChooser.cs index aecdc1f72f0..918a995a4a8 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/UIUsernameChooser.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/UIUsernameChooser.cs @@ -8,32 +8,33 @@ public class UIUsernameChooser : MonoBehaviour { public static UIUsernameChooser Instance { get; private set; } + // The elements that compose the username chooser UI + public GameObject[] elements; public TMPro.TMP_InputField UsernameInputField; - public Button PlayButton; private void Start() { Instance = this; - GameManager.Conn.Db.Player.OnInsert += (ctx, newPlayer) => - { - if (newPlayer.Identity == GameManager.LocalIdentity) - { - // We have a player - UsernameInputField.text = newPlayer.Name; - } - }; } public void PlayPressed() { Debug.Log("Creating player"); - string name = UsernameInputField.text.Trim(); + var name = UsernameInputField.text.Trim(); if (string.IsNullOrEmpty(name)) { name = ""; } GameManager.Conn.Reducers.EnterGame(name); - gameObject.SetActive(false); + Show(false); } + + public void Show(bool showing) + { + foreach (var element in elements) + { + element.SetActive(showing); + } + } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs index c447ac50729..bdc51f96690 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class CircleDecay : Reducer, IReducerArgs { - [DataMember(Name = "_timer")] + [DataMember(Name = "timer")] public CircleDecayTimer Timer; public CircleDecay(CircleDecayTimer Timer) @@ -63,7 +63,7 @@ public CircleDecay() this.Timer = new(); } - string IReducerArgs.ReducerName => "circle_decay"; + string IReducerArgs.ReducerName => "CircleDecay"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs index c3e7cb8c402..e310a20aadb 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -63,7 +63,7 @@ public CircleRecombine() this.Timer = new(); } - string IReducerArgs.ReducerName => "circle_recombine"; + string IReducerArgs.ReducerName => "CircleRecombine"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs index 03b6448fc3f..4727a631eed 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -44,7 +44,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Connect : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "connect"; + string IReducerArgs.ReducerName => "Connect"; } } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs index c730f1fd44c..0611ad7d344 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -63,7 +63,7 @@ public ConsumeEntity() this.Request = new(); } - string IReducerArgs.ReducerName => "consume_entity"; + string IReducerArgs.ReducerName => "ConsumeEntity"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs index 91f7377c06c..d8ef3f18f68 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -44,7 +44,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Disconnect : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "disconnect"; + string IReducerArgs.ReducerName => "Disconnect"; } } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs index 52dd6e2927b..1c8f9a39668 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -63,7 +63,7 @@ public EnterGame() this.Name = ""; } - string IReducerArgs.ReducerName => "enter_game"; + string IReducerArgs.ReducerName => "EnterGame"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs index 2bc614a5a49..27eeadcf013 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class MoveAllPlayers : Reducer, IReducerArgs { - [DataMember(Name = "_timer")] + [DataMember(Name = "timer")] public MoveAllPlayersTimer Timer; public MoveAllPlayers(MoveAllPlayersTimer Timer) @@ -63,7 +63,7 @@ public MoveAllPlayers() this.Timer = new(); } - string IReducerArgs.ReducerName => "move_all_players"; + string IReducerArgs.ReducerName => "MoveAllPlayers"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs index 526264c5fa0..96303740e10 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class PlayerSplit : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "player_split"; + string IReducerArgs.ReducerName => "PlayerSplit"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs index 4b3bef3da36..5d06b44785d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Respawn : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "respawn"; + string IReducerArgs.ReducerName => "Respawn"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs index 93a85902331..0b142f1ffde 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class SpawnFood : Reducer, IReducerArgs { - [DataMember(Name = "_timer")] + [DataMember(Name = "timer")] public SpawnFoodTimer Timer; public SpawnFood(SpawnFoodTimer Timer) @@ -63,7 +63,7 @@ public SpawnFood() this.Timer = new(); } - string IReducerArgs.ReducerName => "spawn_food"; + string IReducerArgs.ReducerName => "SpawnFood"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs index ec98a781441..a8bbb7330b0 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Suicide : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "suicide"; + string IReducerArgs.ReducerName => "Suicide"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs index 1d4dc7c3613..d974ffc09dd 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -63,7 +63,7 @@ public UpdatePlayerInput() this.Direction = new(); } - string IReducerArgs.ReducerName => "update_player_input"; + string IReducerArgs.ReducerName => "UpdatePlayerInput"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs index 1ced03e5037..96f398b7bdc 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable @@ -30,6 +30,8 @@ public RemoteTables(DbConnection conn) AddTable(ConsumeEntityTimer = new(conn)); AddTable(Entity = new(conn)); AddTable(Food = new(conn)); + AddTable(LoggedOutCircle = new(conn)); + AddTable(LoggedOutEntity = new(conn)); AddTable(LoggedOutPlayer = new(conn)); AddTable(MoveAllPlayersTimer = new(conn)); AddTable(Player = new(conn)); @@ -394,11 +396,11 @@ Action callback /// /// Subscribe to the following SQL queries. - /// + /// /// This method returns immediately, with the data not yet added to the DbConnection. /// The provided callbacks will be invoked once the data is returned from the remote server. /// Data from all the provided queries will be returned at the same time. - /// + /// /// See the SpacetimeDB SQL docs for more information on SQL syntax: /// https://spacetimedb.com/docs/sql /// @@ -477,18 +479,18 @@ protected override Reducer ToReducer(TransactionUpdate update) var encodedArgs = update.ReducerCall.Args; return update.ReducerCall.ReducerName switch { - "circle_decay" => BSATNHelpers.Decode(encodedArgs), - "circle_recombine" => BSATNHelpers.Decode(encodedArgs), - "connect" => BSATNHelpers.Decode(encodedArgs), - "consume_entity" => BSATNHelpers.Decode(encodedArgs), - "disconnect" => BSATNHelpers.Decode(encodedArgs), - "enter_game" => BSATNHelpers.Decode(encodedArgs), - "move_all_players" => BSATNHelpers.Decode(encodedArgs), - "player_split" => BSATNHelpers.Decode(encodedArgs), - "respawn" => BSATNHelpers.Decode(encodedArgs), - "spawn_food" => BSATNHelpers.Decode(encodedArgs), - "suicide" => BSATNHelpers.Decode(encodedArgs), - "update_player_input" => BSATNHelpers.Decode(encodedArgs), + "CircleDecay" => BSATNHelpers.Decode(encodedArgs), + "CircleRecombine" => BSATNHelpers.Decode(encodedArgs), + "Connect" => BSATNHelpers.Decode(encodedArgs), + "ConsumeEntity" => BSATNHelpers.Decode(encodedArgs), + "Disconnect" => BSATNHelpers.Decode(encodedArgs), + "EnterGame" => BSATNHelpers.Decode(encodedArgs), + "MoveAllPlayers" => BSATNHelpers.Decode(encodedArgs), + "PlayerSplit" => BSATNHelpers.Decode(encodedArgs), + "Respawn" => BSATNHelpers.Decode(encodedArgs), + "SpawnFood" => BSATNHelpers.Decode(encodedArgs), + "Suicide" => BSATNHelpers.Decode(encodedArgs), + "UpdatePlayerInput" => BSATNHelpers.Decode(encodedArgs), var reducer => throw new ArgumentOutOfRangeException("Reducer", $"Unknown reducer {reducer}") }; } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs index 7492464f557..86974255778 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs index d9008d835e2..71be3f42f40 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs index f535d853087..e5be1dbf111 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs index af5b3871de0..1b5625210fe 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs index 070d6e744ca..cb5d877f31d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs index 290aeb2b369..d5b871f1557 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs index 2ebfe844a8d..d15280d7fb7 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs new file mode 100644 index 00000000000..91116ad2804 --- /dev/null +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs @@ -0,0 +1,51 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). + +#nullable enable + +using System; +using SpacetimeDB.BSATN; +using SpacetimeDB.ClientApi; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace SpacetimeDB.Types +{ + public sealed partial class RemoteTables + { + public sealed class LoggedOutCircleHandle : RemoteTableHandle + { + protected override string RemoteTableName => "logged_out_circle"; + + public sealed class EntityIdUniqueIndex : UniqueIndexBase + { + protected override uint GetKey(Circle row) => row.EntityId; + + public EntityIdUniqueIndex(LoggedOutCircleHandle table) : base(table) { } + } + + public readonly EntityIdUniqueIndex EntityId; + + public sealed class PlayerIdIndex : BTreeIndexBase + { + protected override uint GetKey(Circle row) => row.PlayerId; + + public PlayerIdIndex(LoggedOutCircleHandle table) : base(table) { } + } + + public readonly PlayerIdIndex PlayerId; + + internal LoggedOutCircleHandle(DbConnection conn) : base(conn) + { + EntityId = new(this); + PlayerId = new(this); + } + + protected override object GetPrimaryKey(Circle row) => row.EntityId; + } + + public readonly LoggedOutCircleHandle LoggedOutCircle; + } +} diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs.meta b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs.meta new file mode 100644 index 00000000000..dd99a0a9956 --- /dev/null +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4c19f6af775194970b23ef28055872de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs new file mode 100644 index 00000000000..117ab46c209 --- /dev/null +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs @@ -0,0 +1,41 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). + +#nullable enable + +using System; +using SpacetimeDB.BSATN; +using SpacetimeDB.ClientApi; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace SpacetimeDB.Types +{ + public sealed partial class RemoteTables + { + public sealed class LoggedOutEntityHandle : RemoteTableHandle + { + protected override string RemoteTableName => "logged_out_entity"; + + public sealed class EntityIdUniqueIndex : UniqueIndexBase + { + protected override uint GetKey(Entity row) => row.EntityId; + + public EntityIdUniqueIndex(LoggedOutEntityHandle table) : base(table) { } + } + + public readonly EntityIdUniqueIndex EntityId; + + internal LoggedOutEntityHandle(DbConnection conn) : base(conn) + { + EntityId = new(this); + } + + protected override object GetPrimaryKey(Entity row) => row.EntityId; + } + + public readonly LoggedOutEntityHandle LoggedOutEntity; + } +} diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs.meta b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs.meta new file mode 100644 index 00000000000..29ed5cea05c --- /dev/null +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5571e411f0f7244f09db138c87ad7fa6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs index ca36a46d3e1..bbebeff446d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs index 1fd98eebd24..cd6a016fe07 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs index 9b792f6c8e9..031ec7d4329 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs index 34fb4e058f2..1aff654f0e9 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs index e9b886a8ad7..c655d5c5df1 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs index 632305190dc..528457605eb 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs index 713de4d19f8..07fc0a96a53 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs index c331df9b59e..4ff311ad659 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs index 9e8fe78e7d2..3c20181bb88 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs index ded362d5cea..ff10961bdf3 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs index 36b59b9eee9..b8b27974593 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs index 9ca34adfda8..624ec6e7189 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs index 1b095fc06b2..fd7ef12159f 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs index 1ea6f67004f..f8fca2a93d2 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs index f8357fcf9dd..420d2e382bb 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.2.0 (commit ). +// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). #nullable enable diff --git a/demo/Blackholio/server-csharp/Lib.cs b/demo/Blackholio/server-csharp/Lib.cs index 814328864b0..b7d52a7e443 100644 --- a/demo/Blackholio/server-csharp/Lib.cs +++ b/demo/Blackholio/server-csharp/Lib.cs @@ -29,6 +29,7 @@ public partial struct Config } [Table(Name = "entity", Public = true)] + [Table(Name = "logged_out_entity")] public partial struct Entity { [PrimaryKey, AutoInc] @@ -39,6 +40,7 @@ public partial struct Entity [Table(Name = "circle", Public = true)] [SpacetimeDB.Index.BTree(Name = "player_id", Columns = [nameof(player_id)])] + [Table(Name = "logged_out_circle")] public partial struct Circle { [PrimaryKey] @@ -141,6 +143,15 @@ public static void Connect(ReducerContext ctx) { ctx.Db.player.Insert(player.Value); ctx.Db.logged_out_player.identity.Delete(player.Value.identity); + + foreach (var circle in ctx.Db.logged_out_circle.player_id.Filter(player.Value.player_id)) + { + var entity = ctx.Db.logged_out_entity.entity_id.Find(circle.entity_id) ?? throw new Exception("Could not find Entity"); + ctx.Db.entity.Insert(entity); + ctx.Db.logged_out_entity.entity_id.Delete(entity.entity_id); + ctx.Db.circle.Insert(circle); + ctx.Db.logged_out_circle.entity_id.Delete(entity.entity_id); + } } else { @@ -159,7 +170,9 @@ public static void Disconnect(ReducerContext ctx) foreach (var circle in ctx.Db.circle.player_id.Filter(player.player_id)) { var entity = ctx.Db.entity.entity_id.Find(circle.entity_id) ?? throw new Exception("Could not find circle"); + ctx.Db.logged_out_entity.Insert(entity); ctx.Db.entity.entity_id.Delete(entity.entity_id); + ctx.Db.logged_out_circle.Insert(circle); ctx.Db.circle.entity_id.Delete(entity.entity_id); } ctx.Db.logged_out_player.Insert(player); diff --git a/demo/Blackholio/server-rust/Cargo.toml b/demo/Blackholio/server-rust/Cargo.toml index 1acb7c7f811..74ea840f894 100644 --- a/demo/Blackholio/server-rust/Cargo.toml +++ b/demo/Blackholio/server-rust/Cargo.toml @@ -5,10 +5,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -# Put this in an empty workspace. This is required because we're nested under the SpacetimeDB root -# dir, which has its own workspace `Cargo.toml`, and this shouldn't think it's a part of that. -[workspace] - [lib] crate-type = ["cdylib"] diff --git a/demo/Blackholio/server-rust/src/lib.rs b/demo/Blackholio/server-rust/src/lib.rs index 5e0a95322ec..dd36441f748 100644 --- a/demo/Blackholio/server-rust/src/lib.rs +++ b/demo/Blackholio/server-rust/src/lib.rs @@ -35,6 +35,7 @@ pub struct Config { } #[spacetimedb::table(name = entity, public)] +#[spacetimedb::table(name = logged_out_entity)] #[derive(Debug, Clone)] pub struct Entity { #[auto_inc] @@ -45,6 +46,8 @@ pub struct Entity { } #[spacetimedb::table(name = circle, public)] +#[spacetimedb::table(name = logged_out_circle)] +#[derive(Debug, Clone)] pub struct Circle { #[primary_key] pub entity_id: u32, @@ -148,6 +151,15 @@ pub fn connect(ctx: &ReducerContext) -> Result<(), String> { .logged_out_player() .identity() .delete(&player.identity); + + // Restore any circles for this player + for circle in ctx.db.logged_out_circle().player_id().filter(&player.player_id) { + ctx.db.logged_out_circle().entity_id().delete(circle.entity_id); + ctx.db.circle().insert(circle.clone()); + let logged_out_entity = ctx.db.logged_out_entity().entity_id().find(&circle.entity_id).unwrap(); + ctx.db.logged_out_entity().entity_id().delete(circle.entity_id); + ctx.db.entity().insert(logged_out_entity); + } } else { ctx.db.player().try_insert(Player { identity: ctx.sender, @@ -170,9 +182,12 @@ pub fn disconnect(ctx: &ReducerContext) -> Result<(), String> { ctx.db.logged_out_player().insert(player); ctx.db.player().identity().delete(&ctx.sender); - // Remove any circles from the arena + // Move any circles from the arena into logged out tables for circle in ctx.db.circle().player_id().filter(&player_id) { + let entity = ctx.db.entity().entity_id().find(&circle.entity_id).unwrap(); + ctx.db.logged_out_entity().insert(entity); ctx.db.entity().entity_id().delete(&circle.entity_id); + ctx.db.logged_out_circle().insert(circle.clone()); ctx.db.circle().entity_id().delete(&circle.entity_id); } From 928c6a0aacca5cd569623849352b2e0bd93c02a2 Mon Sep 17 00:00:00 2001 From: John Detter <4099508+jdetter@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:28:03 +0800 Subject: [PATCH 2/3] Reverting Cargo.toml change --- demo/Blackholio/server-rust/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo/Blackholio/server-rust/Cargo.toml b/demo/Blackholio/server-rust/Cargo.toml index 74ea840f894..1acb7c7f811 100644 --- a/demo/Blackholio/server-rust/Cargo.toml +++ b/demo/Blackholio/server-rust/Cargo.toml @@ -5,6 +5,10 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# Put this in an empty workspace. This is required because we're nested under the SpacetimeDB root +# dir, which has its own workspace `Cargo.toml`, and this shouldn't think it's a part of that. +[workspace] + [lib] crate-type = ["cdylib"] From c4675cd57e31274892e3b052490509ee1b37a6e9 Mon Sep 17 00:00:00 2001 From: John Detter <4099508+jdetter@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:40:44 +0800 Subject: [PATCH 3/3] Updating bindings --- .../Scripts/autogen/Reducers/CircleDecay.g.cs | 6 ++-- .../autogen/Reducers/CircleRecombine.g.cs | 4 +-- .../Scripts/autogen/Reducers/Connect.g.cs | 4 +-- .../autogen/Reducers/ConsumeEntity.g.cs | 4 +-- .../Scripts/autogen/Reducers/Disconnect.g.cs | 4 +-- .../Scripts/autogen/Reducers/EnterGame.g.cs | 4 +-- .../autogen/Reducers/MoveAllPlayers.g.cs | 6 ++-- .../Scripts/autogen/Reducers/PlayerSplit.g.cs | 4 +-- .../Scripts/autogen/Reducers/Respawn.g.cs | 4 +-- .../Scripts/autogen/Reducers/SpawnFood.g.cs | 6 ++-- .../Scripts/autogen/Reducers/Suicide.g.cs | 4 +-- .../autogen/Reducers/UpdatePlayerInput.g.cs | 4 +-- .../Scripts/autogen/SpacetimeDBClient.g.cs | 30 +++++++++---------- .../Assets/Scripts/autogen/Tables/Circle.g.cs | 2 +- .../autogen/Tables/CircleDecayTimer.g.cs | 2 +- .../autogen/Tables/CircleRecombineTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Config.g.cs | 2 +- .../autogen/Tables/ConsumeEntityTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Entity.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Food.g.cs | 2 +- .../autogen/Tables/LoggedOutCircle.g.cs | 2 +- .../autogen/Tables/LoggedOutEntity.g.cs | 2 +- .../autogen/Tables/LoggedOutPlayer.g.cs | 2 +- .../autogen/Tables/MoveAllPlayersTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Tables/Player.g.cs | 2 +- .../autogen/Tables/SpawnFoodTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Circle.g.cs | 2 +- .../autogen/Types/CircleDecayTimer.g.cs | 2 +- .../autogen/Types/CircleRecombineTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Config.g.cs | 2 +- .../autogen/Types/ConsumeEntityTimer.g.cs | 2 +- .../Scripts/autogen/Types/DbVector2.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Entity.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Food.g.cs | 2 +- .../autogen/Types/MoveAllPlayersTimer.g.cs | 2 +- .../Assets/Scripts/autogen/Types/Player.g.cs | 2 +- .../Scripts/autogen/Types/SpawnFoodTimer.g.cs | 2 +- 37 files changed, 66 insertions(+), 66 deletions(-) diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs index bdc51f96690..209d2a19a22 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleDecay.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class CircleDecay : Reducer, IReducerArgs { - [DataMember(Name = "timer")] + [DataMember(Name = "_timer")] public CircleDecayTimer Timer; public CircleDecay(CircleDecayTimer Timer) @@ -63,7 +63,7 @@ public CircleDecay() this.Timer = new(); } - string IReducerArgs.ReducerName => "CircleDecay"; + string IReducerArgs.ReducerName => "circle_decay"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs index e310a20aadb..057f3afeb7b 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/CircleRecombine.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -63,7 +63,7 @@ public CircleRecombine() this.Timer = new(); } - string IReducerArgs.ReducerName => "CircleRecombine"; + string IReducerArgs.ReducerName => "circle_recombine"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs index 4727a631eed..8b9903b5773 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Connect.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -44,7 +44,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Connect : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "Connect"; + string IReducerArgs.ReducerName => "connect"; } } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs index 0611ad7d344..6f24223e906 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/ConsumeEntity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -63,7 +63,7 @@ public ConsumeEntity() this.Request = new(); } - string IReducerArgs.ReducerName => "ConsumeEntity"; + string IReducerArgs.ReducerName => "consume_entity"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs index d8ef3f18f68..1885b37464e 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Disconnect.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -44,7 +44,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Disconnect : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "Disconnect"; + string IReducerArgs.ReducerName => "disconnect"; } } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs index 1c8f9a39668..b9f14822bc0 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/EnterGame.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -63,7 +63,7 @@ public EnterGame() this.Name = ""; } - string IReducerArgs.ReducerName => "EnterGame"; + string IReducerArgs.ReducerName => "enter_game"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs index 27eeadcf013..f360fc54268 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/MoveAllPlayers.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class MoveAllPlayers : Reducer, IReducerArgs { - [DataMember(Name = "timer")] + [DataMember(Name = "_timer")] public MoveAllPlayersTimer Timer; public MoveAllPlayers(MoveAllPlayersTimer Timer) @@ -63,7 +63,7 @@ public MoveAllPlayers() this.Timer = new(); } - string IReducerArgs.ReducerName => "MoveAllPlayers"; + string IReducerArgs.ReducerName => "move_all_players"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs index 96303740e10..a0f041d3075 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/PlayerSplit.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class PlayerSplit : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "PlayerSplit"; + string IReducerArgs.ReducerName => "player_split"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs index 5d06b44785d..41a0857973f 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Respawn.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Respawn : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "Respawn"; + string IReducerArgs.ReducerName => "respawn"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs index 0b142f1ffde..220fa812930 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/SpawnFood.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -50,7 +50,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class SpawnFood : Reducer, IReducerArgs { - [DataMember(Name = "timer")] + [DataMember(Name = "_timer")] public SpawnFoodTimer Timer; public SpawnFood(SpawnFoodTimer Timer) @@ -63,7 +63,7 @@ public SpawnFood() this.Timer = new(); } - string IReducerArgs.ReducerName => "SpawnFood"; + string IReducerArgs.ReducerName => "spawn_food"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs index a8bbb7330b0..86084c11cbf 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/Suicide.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -49,7 +49,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Suicide : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "Suicide"; + string IReducerArgs.ReducerName => "suicide"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs index d974ffc09dd..4e0ef3783ae 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Reducers/UpdatePlayerInput.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -63,7 +63,7 @@ public UpdatePlayerInput() this.Direction = new(); } - string IReducerArgs.ReducerName => "UpdatePlayerInput"; + string IReducerArgs.ReducerName => "update_player_input"; } } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs index 96f398b7bdc..0f111135315 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable @@ -396,11 +396,11 @@ Action callback /// /// Subscribe to the following SQL queries. - /// + /// /// This method returns immediately, with the data not yet added to the DbConnection. /// The provided callbacks will be invoked once the data is returned from the remote server. /// Data from all the provided queries will be returned at the same time. - /// + /// /// See the SpacetimeDB SQL docs for more information on SQL syntax: /// https://spacetimedb.com/docs/sql /// @@ -479,18 +479,18 @@ protected override Reducer ToReducer(TransactionUpdate update) var encodedArgs = update.ReducerCall.Args; return update.ReducerCall.ReducerName switch { - "CircleDecay" => BSATNHelpers.Decode(encodedArgs), - "CircleRecombine" => BSATNHelpers.Decode(encodedArgs), - "Connect" => BSATNHelpers.Decode(encodedArgs), - "ConsumeEntity" => BSATNHelpers.Decode(encodedArgs), - "Disconnect" => BSATNHelpers.Decode(encodedArgs), - "EnterGame" => BSATNHelpers.Decode(encodedArgs), - "MoveAllPlayers" => BSATNHelpers.Decode(encodedArgs), - "PlayerSplit" => BSATNHelpers.Decode(encodedArgs), - "Respawn" => BSATNHelpers.Decode(encodedArgs), - "SpawnFood" => BSATNHelpers.Decode(encodedArgs), - "Suicide" => BSATNHelpers.Decode(encodedArgs), - "UpdatePlayerInput" => BSATNHelpers.Decode(encodedArgs), + "circle_decay" => BSATNHelpers.Decode(encodedArgs), + "circle_recombine" => BSATNHelpers.Decode(encodedArgs), + "connect" => BSATNHelpers.Decode(encodedArgs), + "consume_entity" => BSATNHelpers.Decode(encodedArgs), + "disconnect" => BSATNHelpers.Decode(encodedArgs), + "enter_game" => BSATNHelpers.Decode(encodedArgs), + "move_all_players" => BSATNHelpers.Decode(encodedArgs), + "player_split" => BSATNHelpers.Decode(encodedArgs), + "respawn" => BSATNHelpers.Decode(encodedArgs), + "spawn_food" => BSATNHelpers.Decode(encodedArgs), + "suicide" => BSATNHelpers.Decode(encodedArgs), + "update_player_input" => BSATNHelpers.Decode(encodedArgs), var reducer => throw new ArgumentOutOfRangeException("Reducer", $"Unknown reducer {reducer}") }; } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs index 86974255778..b8f75c461d0 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs index 71be3f42f40..70fbb18e99c 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleDecayTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs index e5be1dbf111..0d0260d998a 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/CircleRecombineTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs index 1b5625210fe..0f596a1f55c 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs index cb5d877f31d..80a37e4231d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/ConsumeEntityTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs index d5b871f1557..e029b189936 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs index d15280d7fb7..90282ede604 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs index 91116ad2804..56c5a9dd497 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutCircle.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs index 117ab46c209..435bbbc78ed 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutEntity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs index bbebeff446d..ff3f945e0c6 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/LoggedOutPlayer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs index cd6a016fe07..b35ea9ab230 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/MoveAllPlayersTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs index 031ec7d4329..7fe87d7c239 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs index 1aff654f0e9..4647c95de9d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/SpawnFoodTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs index c655d5c5df1..304874df644 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Circle.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs index 528457605eb..842c094f21d 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleDecayTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs index 07fc0a96a53..0af05b51945 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/CircleRecombineTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs index 4ff311ad659..1897ec0d375 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Config.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs index 3c20181bb88..d969e603a09 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/ConsumeEntityTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs index ff10961bdf3..556e39a3c03 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/DbVector2.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs index b8b27974593..f0e0b97bb3a 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Entity.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs index 624ec6e7189..ad4d7d3d759 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Food.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs index fd7ef12159f..49b4489bfe8 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/MoveAllPlayersTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs index f8fca2a93d2..1980d600694 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/Player.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs index 420d2e382bb..23822dc6f08 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Types/SpawnFoodTimer.g.cs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 1.1.1 (commit e73ae9c3f7832e0ff3320f1ed4a85140e962532d). +// This was generated using spacetimedb cli version 1.2.0 (commit 928c6a0aacca5cd569623849352b2e0bd93c02a2). #nullable enable