Commit 938b54c2 authored by hartie95's avatar hartie95 Committed by Luke H-W
Browse files

two small activity/event fixes

* fixed GetAcitivityInfoReq proto
* added draft to gadget Scene gatget, to let the client know the propper minigame for some entities
parent 59a412cc
...@@ -219,6 +219,7 @@ public class EntityGadget extends EntityBaseGadget { ...@@ -219,6 +219,7 @@ public class EntityGadget extends EntityBaseGadget {
.setConfigId(this.getConfigId()) .setConfigId(this.getConfigId())
.setGadgetState(this.getState()) .setGadgetState(this.getState())
.setIsEnableInteract(true) .setIsEnableInteract(true)
.setDraftId(this.metaGadget.draft_id)
.setAuthorityPeerId(this.getScene().getWorld().getHostPeerId()); .setAuthorityPeerId(this.getScene().getWorld().getHostPeerId());
if (this.getContent() != null) { if (this.getContent() != null) {
......
...@@ -12,6 +12,7 @@ public class SceneGadget extends SceneObject{ ...@@ -12,6 +12,7 @@ public class SceneGadget extends SceneObject{
public SceneBossChest boss_chest; public SceneBossChest boss_chest;
public int interact_id; public int interact_id;
public boolean isOneoff; public boolean isOneoff;
public int draft_id;
public void setIsOneoff(boolean isOneoff){ public void setIsOneoff(boolean isOneoff){
this.isOneoff = isOneoff; this.isOneoff = isOneoff;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment