package com.nestedworld.nestedworld.network.socket.models.request.combat;

import com.nestedworld.nestedworld.network.socket.models.request.DefaultRequest;

import org.msgpack.value.ValueFactory;

public class SendAttackRequest implements DefaultRequest {
    private final int target;
    private final long attack;

    public SendAttackRequest(final int target, final long attack) {
        this.target = target;
        this.attack = attack;
    }

    @Override
    public ValueFactory.MapBuilder serialise() {
        ValueFactory.MapBuilder mapBuilder = ValueFactory.newMapBuilder();
        mapBuilder.put(ValueFactory.newString("target"), ValueFactory.newInteger(target));
        mapBuilder.put(ValueFactory.newString("attack"), ValueFactory.newInteger(attack));

        return mapBuilder;
    }
}

@@ -263,27 +263,28 @@
 ivate final 
-int
+long
  target;%0A   
@@ -351,11 +351,12 @@
 nal 
-int
+long
  tar

fix field type