Skip to content

Dylan/feat/menu init new module #34

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

Open
wants to merge 270 commits into
base: master
Choose a base branch
from

Conversation

dylanh724
Copy link
Contributor

@dylanh724 dylanh724 commented Apr 17, 2024

About

Top menu Window/SpacetimeDB/New ServerModule/ features: Init a Rust || C# project via the top menu, cover requirements with download links and open the init'd server module dir.

Documentation

Why?

When trying to avoid CLI in favor of Unity editor tooling, initializing new server modules was missing until now.

Prereqs

Requires the following open PRs (both Unity editor tools), merged in order:

  1. SpacetimeDB SDK Version 0.4.1 com.clockworklabs.spacetimedbsdk#17
  2. Adding event parameter to table callbacks com.clockworklabs.spacetimedbsdk#19

(I tried to keep this PR detached, but due to the constantly updated shared common tooling files, it consumed too much time to ripple the changes down multiple open PRs)

Feats

  • SpacetimeDB CLI Checker + Installer, if missing
  • spacetime init handling
  • C# support + prerequisite handling (.net 8+, wasm)
  • Rust support + prerequisite handling (cargo)
  • WindowManager; also useful for future tooling (although minimal/legacy compared to UI Builder)
  • All static metadata centered to SpacetimeWindow.cs

Media

Menu additions

SpacetimeDB CLI Checker/Installer

Success (C#)

Server module created, but !cargo

Failed to init C#

dylanh724 added 30 commits March 1, 2024 16:24
- Also fix an async naming/discard convention
…ditor-tool

# Conflicts:
#	Scripts/Editor/SpacetimePublisher/Scripts/PublisherWindowActions.cs
- Plus, remove testing placeholders
- Rn "Call" btn val to "Call Reducer"
- Bring bold back to buttons when done (the orig text restored)
- You wouldn't have noticed this error unless you clone freshly into a new project
- You wouldn't have noticed this error unless you clone freshly into a new project
- You wouldn't have noticed this error unless you clone freshly into a new project
- fix: Originally causing breaking err, this now handles custom types and deep nested, currently swapping objects for simply `{}` or `SomeTypeName[]` for arrays
  - ux: I was trying to get the custom obj type name, but I only get the `Ref` number that doesn't seem to actually ref anything in `spacetime describe`
- ux: Removed Focus() for selecting an element for easy keyboard up+down through the list
- ux: Wrapped <nobr> around each syntax hint and allow wrapping -- for long args[]
- ux: Added more known types and parsed to C# type
- feat: Added CustomRefNum ("Ref") to EntityStructure
-
This reverts commit e59a6ed, reversing
changes made to 7b28823.
@bfops bfops self-assigned this Apr 24, 2024
@dylanh724 dylanh724 requested review from bfops and jdetter April 29, 2024 01:53
@jdetter jdetter removed their request for review November 8, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants