Skip to content

Commit

Permalink
Revert "feat: broadcast health changed events (was owner events)"
Browse files Browse the repository at this point in the history
This reverts commit 8c234fd.
  • Loading branch information
skaldarnar committed Jul 11, 2021
1 parent e7d75cb commit 9781124
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import com.google.common.base.Preconditions;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.entitySystem.prefab.Prefab;
import org.terasology.engine.network.BroadcastEvent;
import org.terasology.engine.network.OwnerEvent;

/**
* This event is sent after damage has been dealt to an entity.
*/
@BroadcastEvent
@OwnerEvent
public class OnDamagedEvent extends OnHealthChangedEvent {
private final Prefab damageType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@

import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.entitySystem.event.Event;
import org.terasology.engine.network.BroadcastEvent;

/**
* This event (or a subtype) is sent whenever health changes
*
*/
@BroadcastEvent
public class OnHealthChangedEvent implements Event {
protected EntityRef instigator;
protected int change;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import com.google.common.base.Preconditions;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.network.BroadcastEvent;
import org.terasology.engine.network.OwnerEvent;

/**
* A <i>notification event</i> to inform that an entity was restored. This is the final event of the {@link
* org.terasology.module.health.systems.RestorationAuthoritySystem Restoration Event Flow}.
*/
@BroadcastEvent
@OwnerEvent
public class OnRestoredEvent extends OnHealthChangedEvent {
/**
* INTERNAL: Only required for internal replication of network events
Expand Down

0 comments on commit 9781124

Please sign in to comment.