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

Meta: Add protocol and minecraft packages. #1254

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

enricoangelon
Copy link
Collaborator

This is a radical change, it adds two packages that simplify the modular import of the software and simplifies its maintenance.
The minecraft package contains the fundamental structures regarding the game logic and some data used by the prismarine package.
The protocol package instead contains all the structures of the packages contained in the game, and also their possible structures with their own serializations.
It will now be possible to import individual packages into external projects without having to import the entire project.

@enricoangelon enricoangelon added the Work In Progress Somebody has taken ownership of this issue and is currently working on it label Apr 2, 2024
@filiphsps filiphsps force-pushed the master branch 2 times, most recently from ed99c1a to 18555da Compare April 3, 2024 01:57
packages/minecraft/src/Difficulty.ts Show resolved Hide resolved
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/Updater.ts"]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOL.

@@ -343,7 +343,8 @@ export default class Player extends Human {
this.gamemode = event.getGamemode();
await this.networkSession.sendGamemode(this.gamemode);

if (this.gamemode === Gamemode.Creative || this.gamemode === Gamemode.Spectator) this.allowFight = true;
if (this.gamemode === Gamemode.Gametype.CREATIVE || this.gamemode === Gamemode.Gametype.SPECTATOR)
this.allowFight = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brackets. eslint should've caught this.

@filiphsps filiphsps added the Networking Raknet and general networking features or issues label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking Raknet and general networking features or issues Work In Progress Somebody has taken ownership of this issue and is currently working on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants