C# Module, versions 1.10.0 and 1.11.0
Within the view method I print Log.Debug(ctx.Sender.ToString()) and it ALSO prints out disconnected identities.
To get views to work with the (unofficial) Godot SDK I had to use a Table that has a primary key (type or record would not work due to how the local database was implemented).
Example:
[SpacetimeDB.Table(Name ="DataTable")]
public partial struct DataTable{
[SpacetimeDB.PrimaryKey]
public Identity Identity;
public int TestInt;
}
public static List<DataTable> MyDataTable(ViewContext ctx)
{
Log.Debug(ctx.Sender.ToString()); //Prints out different identities which have already been disconnected! (confirmed through ClientDisconnected)
var rows = new List<DataTable>();
rows.Add(new DataTable
{
Identity = ctx.Sender,
TestInt = 100
});
return rows;
}
C# Module, versions 1.10.0 and 1.11.0
Within the view method I print Log.Debug(ctx.Sender.ToString()) and it ALSO prints out disconnected identities.
To get views to work with the (unofficial) Godot SDK I had to use a Table that has a primary key (type or record would not work due to how the local database was implemented).
Example: