atlarge-research / opencraft

Other
5 stars 2 forks source link

Entity updates - [merged] #161

Closed jdonkervliet closed 4 years ago

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 19:54

Merges feature/entities -> development

Resolve issue #6

As entity spawning will require some more work, I've decided to split it into two separate merge requests. For now, this branch disables leashes such that all entity updates can be performed at once. After that, update messages for all entities are generated and broadcast via the messaging system, such that only one message needs to be generated per entity instead of one per entity per player.

jdonkervliet commented 4 years ago

In GitLab by @wubero on May 27, 2020, 20:39

Commented on src/main/java/net/glowstone/GlowWorld.java line 646

Why is the skylight defined outside of the if and for statements? Unless I missed something it's only used inside

jdonkervliet commented 4 years ago

In GitLab by @wubero on May 27, 2020, 20:41

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 954

Are these comments still relevent? Since the code below it was deleted

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 20:54

added 4 commits

Compare with previous version

jdonkervliet commented 4 years ago

In GitLab by @larsdetombe on May 27, 2020, 21:06

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 962

Is this not needed anymore? Or did leashes on animals not work in the first place? Because it seems like we removed functionality.

jdonkervliet commented 4 years ago

In GitLab by @JimVliet on May 27, 2020, 21:23

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 962

image

jdonkervliet commented 4 years ago

In GitLab by @JimVliet on May 27, 2020, 21:24

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 962

Read the description :P

jdonkervliet commented 4 years ago

In GitLab by @larsdetombe on May 27, 2020, 21:28

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 962

I should get some sleep, completely read over that somehow. I should also have checked the issues. I'll resolve this thread.

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 21:56

Commented on src/main/java/net/glowstone/GlowWorld.java line 646

There was not much of a reason, I've placed it inside the runnable now, such that it is up-to-date once the chunk message is generated.

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 22:01

Commented on src/main/java/net/glowstone/GlowWorld.java line 646

changed this line in version 3 of the diff

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 22:01

added 2 commits

Compare with previous version

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 27, 2020, 22:03

Commented on src/main/java/net/glowstone/entity/GlowEntity.java line 954

Only the part on leashes was removed, the other part was merely refactored. However, I get the confusion as Gitlab sees it as a removal and addition instead of a change. The comment remains correct as it was associated with the passengers, not the leash.

jdonkervliet commented 4 years ago

In GitLab by @wubero on May 28, 2020, 10:03

resolved all threads

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 28, 2020, 10:57

Commented on src/main/java/net/glowstone/GlowWorld.java line 921

This would break whenever the policy is altered. It might be better to directly broadcast based on the entity instead of the chunk.

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 28, 2020, 10:57

Commented on src/main/java/net/glowstone/GlowWorld.java line 937

This would also break, as it is no longer possible to send a destroy message for a single entity.

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 28, 2020, 11:08

added 1 commit

Compare with previous version

jdonkervliet commented 4 years ago

In GitLab by @swabbur on May 28, 2020, 11:09

resolved all threads

jdonkervliet commented 4 years ago

In GitLab by @JimVliet on May 28, 2020, 11:09

enabled an automatic merge when the pipeline for d56691bbc1ece98ba75d920f1219554b8e1b13f2 succeeds

jdonkervliet commented 4 years ago

In GitLab by @JimVliet on May 28, 2020, 11:40

merged

jdonkervliet commented 4 years ago

In GitLab by @JimVliet on May 28, 2020, 11:40

mentioned in commit ecb8146d39d3170b28491f314fea68323d5a47b3