Skip to content

Ecs Modify Component Pt 1 - #3588

Open
Crepestrom wants to merge 10 commits into
PixelGuys:masterfrom
Crepestrom:ModiftComponent-Ecs
Open

Crepestrom wants to merge 10 commits into
PixelGuys:masterfrom
Crepestrom:ModiftComponent-Ecs

Conversation

@Crepestrom

@Crepestrom Crepestrom commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

adds the basic functions required for the Modify Component Ecs pt 2

meant for sending signals from the server to the client or the client to the server
modifyComponent
is meant for smaller signals that dont overwrite a entire component. (eg: sending how much damage a player takes, or sending a inventory command)

@Crepestrom
Crepestrom marked this pull request as ready for review September 8, 2026 19:40
Comment on lines -92 to -99
pub fn addToGroup(entity: Entity, group: main.server.permission.Group) void {
(getPermissionGroups(entity) orelse return).put(main.globalAllocator.allocator, group, {}) catch unreachable;
}

pub fn removeFromGroup(entity: Entity, group: main.server.permission.Group) bool {
return getPermissionGroups(entity).?.remove(group);
}

@Wunka Wunka Sep 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you removed the changes from #3332 ?
Please fix this. Also as you already know the ECS is currently in flux.
So while I will put this into low priority (another reason is that we soon reaching the 0.4.0 release, so big changes are not that much accepted now), please make a comment about your plan with for example your part 2 so we can correctly evaluate if this the direction we want to go.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops
Also that’s fine if I have to wait for the next version
I will write up a plan later

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wrote the thing on it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

also i fixed this thing now

@Wunka Wunka moved this to Low Priority in PRs to review Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Low Priority

Development

Successfully merging this pull request may close these issues.

2 participants