package forager.events;

import galileo.event.Event;
import galileo.serialization.SerializationInputStream;
import galileo.serialization.SerializationOutputStream;

import java.io.IOException;

public class TaskCompletion implements Event {

    public int taskId;

    public TaskCompletion(int taskId) {
        this.taskId = taskId;
    }

    @Deserialize
    public TaskCompletion(SerializationInputStream in)
    throws IOException {
        taskId = in.readInt();
    }

    @Override
    public void serialize(SerializationOutputStream out)
    throws IOException {
        out.writeInt(taskId);
    }

}

@@ -246,19 +246,20 @@
  public 
-int
+long
  taskId;
@@ -290,11 +290,12 @@
 ion(
-int
+long
  tas
@@ -459,19 +459,20 @@
  in.read
-Int
+Long
 ();%0A    
@@ -591,11 +591,12 @@
 rite
-Int
+Long
 (tas
@@ -607,11 +607,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Convert to long taskIds