Package networking.response

Source Code of networking.response.ResponseChartBiomass

package networking.response;

import metadata.Constants;
import utility.GamePacket;

/**
*
* @author Gary
*/
public class ResponseChartBiomass extends GameResponse {

    private short type;
    private String csv;

    public ResponseChartBiomass() {
        responseCode = Constants.SMSG_CHART_BIOMASS;
    }

    @Override
    public byte[] constructResponseInBytes() {
        GamePacket packet = new GamePacket(responseCode);
        packet.addShort16(type);
        packet.addString(csv);

        return packet.getBytes();
    }

    public void setCSV(String csv) {
        this.csv = csv;
    }

    public void setType(short type) {
        this.type = type;
    }
}
TOP

Related Classes of networking.response.ResponseChartBiomass

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.