8000 Add new core logic system by Garados007 · Pull Request #45 · Garados007/Werewolf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add new core logic system #45

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

Merged
merged 28 commits into from
Aug 25, 2024
Merged

Add new core logic system #45

merged 28 commits into from
Aug 25, 2024

Conversation

Garados007
Copy link
Owner
@Garados007 Garados007 commented Aug 25, 2024

This is a large update and contains many things that needed to be updated. The main goal of this PR was, to introduce a custom language in which are all game modes written and have the core logic simplified.

The custom language was named w5logic and was designed without looking at the current server code but trying to get the necessary and wished features done. Everything should be expressed in as little code as possible and with several automatic checks that can be done at compile time.

The migration of the old logic code was relatively easy but the core system needed some adjustments and new features that weren't supported before (e.g. sequences). Also are some things renamed (e.g. "roles" into "character") to express their usage better.

And after all are some basic maintenance done like dependency version bumps (e.g from dotnet 6.0 to 8.0) and the introduction of CI.

Close: #29

@Garados007 Garados007 added this to the Version 5.0 milestone Aug 25, 2024
@Garados007 Garados007 self-assigned this Aug 25, 2024
This extension is automatically loaded when starting vscode.
The logic compiler tool is a separate tool that reads all files written in the
".w5logic" format and generates C# code the represents that.

The generated code is a module similar to the previous theme extensions and
provide game modes, character roles and more that can be used to extend the
server.
Doing this makes the creation of new game modes simpler and less confusing
The game mode is now implemented using the new logic design.
@Garados007 Garados007 force-pushed the feature/new-core-logic branch from 6cb165b to f4392cf Compare August 25, 2024 17:43
@Garados007
Copy link
Owner Author

I want to have this finished. The tests seem to be working and trying this locally doesn't result in any errors. Also is the todo list finally empty.

If it happens that this PR introduced some errors, just create an issue and it will be fixed.

@Garados007 Garados007 marked this pull request as ready for review August 25, 2024 18:10
@Garados007 Garados007 merged commit c942fc9 into main Aug 25, 2024
6 checks passed
@Garados007 Garados007 deleted the feature/new-core-logic branch August 25, 2024 18:11
Garados007 added a commit that referenced this pull request Aug 25, 2024
This was broken due PR #45
@Garados007 Garados007 mentioned this pull request Aug 26, 2024
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.

Redesign server logic
1 participant
0