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

Source generators ideas #485

Open
CrosRoad95 opened this issue Oct 4, 2023 · 0 comments
Open

Source generators ideas #485

CrosRoad95 opened this issue Oct 4, 2023 · 0 comments

Comments

@CrosRoad95
Copy link
Collaborator

  1. compile time syntax check - While compiling, you will see syntax errors in visual studio console
  2. hot reload .lua files - If you change sources, resource will restart
  3. runtime client side exception on the server - When client encounter error ( or warning ), server will break and
  4. source generator c# to lua - Convert lua code to native c#
  5. Generate contract between client and server, something like GRPC source generator
  6. Easy way to map client functions
function add(a, b)
  return a + b;
end
[ClientFunctions]
public static class MyResourceFunctions{
  public static partial Task<int> Add(int a, int b)
}
@CrosRoad95 CrosRoad95 added this to the Slipe Server Next milestone Oct 4, 2023
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

No branches or pull requests

1 participant