You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command will generate Player.cs and LoggedOutPlayer.cs with identical content (shown below), creating a duplicate type definition of Player.
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD.// <auto-generated />
#nullable enable
usingSystem;usingSpacetimeDB;usingSystem.Collections.Generic;usingSystem.Runtime.Serialization;namespaceSpacetimeDB.Types{[SpacetimeDB.Type][DataContract]publicpartialclassPlayer:IDatabaseRow{[DataMember(Name="identity")]publicSpacetimeDB.IdentityIdentity;[DataMember(Name="player_id")]publicuintPlayerId;[DataMember(Name="name")]publicstringName;publicPlayer(SpacetimeDB.IdentityIdentity,uintPlayerId,stringName){this.Identity=Identity;this.PlayerId=PlayerId;this.Name=Name;}publicPlayer(){this.Identity=new();this.Name="";}}}
The text was updated successfully, but these errors were encountered:
Per @RReverser , related by @cloutiertyler , this will be fixed along with some other bugs (unspecified) by a PR which reworks C# codegen to use the V9 module def.
To reproduce, create a module with the following two table definitions.
Run
spacetime generate --lang csharp
The command will generate
Player.cs
andLoggedOutPlayer.cs
with identical content (shown below), creating a duplicate type definition ofPlayer
.The text was updated successfully, but these errors were encountered: