SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Code generate `IsExternalInit`

Open cloutiertyler opened this issue 10 months ago • 1 comments

https://github.com/clockworklabs/spacetime-docs/issues/125#issuecomment-2580820919

In relation to this issue, we would like to actually just code generate a file which includes this code. That way only users who already have a definition will get an error, rather than every user who uses SpacetimeDB's Unity SDK.

We will have to document what to do in the duplicate case (that will only be documented on our website however).

We think this is preferable to the alternative though. This will presumably also require a --unity flag or something in the code generation so that it is not generated for C#.

cloutiertyler avatar Feb 06 '25 16:02 cloutiertyler

This may get a code freeze exception. @cloutiertyler is undecided.

gefjon avatar Feb 07 '25 19:02 gefjon