Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dylan/fix/csharp module scheduling repeating #38

Conversation

dylanh724
Copy link
Contributor

About

  • Better, more-clear, more-realistic scheduler example
  • Split up the autogen codeblock result
  • Added a repeated scheduler example
  • Normalized consistency for DbEventArgs arg name (named dbEvent; same as the new Unity demo)
  • Added a warning for Exceptions not logging (known bug in the C# SDK). Discussion: https://discord.com/channels/931210784011321394/1220579367462113351

Why?

Scheduling was a confusing subject that got me earlier - and is vastly different from Rust's way of scheduling. I also initially created repeated schedulers wrong, where the current docs don't discuss or example repeated.

refactor: Whats next cleanup, +unity, -bloat

Removed redundant text while there

refactor: Unity quickstart fixes, impr, prettify

refactor: Unity pt1 fixes, impr, prettify

fix(README): Rm "see test edits below" ref

* !exists

refactor(minor): General onboarding cleanup

* Shorter, prettier, consistent

fix(sdks/c#): Broken unitypackage url

feat(sdks/c#): Add OneTimeQuery api ref
- PR review change requests
- Additionally: hasUpdatedRecently fix and reformatting
- Used FindBy since that was what the tutorial used, and also looking for a single Identity.
- Note: There may be a similar rust discrepancy in the Unity pt1 tutorial. It'll work with Filter, but just simply less consistent. Holding off on that since my Rust syntax knowledge !exists.
* Duplicate comments found both above and within funcs
* Removed `System.Runtime.CompilerServices`
* SpacetimeDB.Module seems to already include this (merged the info)
* At general quickstart for `spacetime start`
* Also, removed the "speed" loss mention of C#
- After a verbose discussion, we will eventually swap to FindBy for single-result queries, but not in this PR.
- For now, the syntax err is fixed by making the var nullable and suffixing a LINQ FirstOrDefault(). Approved by Tyler in Discord.
- We never *actually* created a player in the tutorial. This creates the player. Approved by Tyler in Discord.
- Better, more-clear, more-realistic scheduler example
- Split up the autogen codeblock result
- Added a *repeated* scheduler example
- Normalized consistency for DbEventArgs arg name (named `dbEvent`; same as the new Unity demo)
- Added a warning for Exceptions not logging (known bug in the C# SDK). Discussion: https://discord.com/channels/931210784011321394/1220579367462113351
@dylanh724 dylanh724 marked this pull request as draft March 29, 2024 08:42
@dylanh724
Copy link
Contributor Author

Closed in favor of #39 (no prerequisites req'd)

@dylanh724 dylanh724 closed this Mar 29, 2024
@dylanh724 dylanh724 deleted the dylan/fix/csharp-module-scheduling-repeating branch March 29, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant