Package networking.response

Source Code of networking.response.ResponseUpdateGameScaleTime

package networking.response;

import metadata.Constants;
import utility.GamePacket;

/**
*
* @author Xuyuan
*/
public class ResponseUpdateGameScaleTime extends GameResponse {

    private long time;

    public ResponseUpdateGameScaleTime() {
        responseCode = Constants.SMSG_UPDATE_GAME_SCALE_TIME;
    }

    @Override
    public byte[] constructResponseInBytes() {
        GamePacket packet = new GamePacket(responseCode);
        packet.addLong(time);
        return packet.getBytes();
    }

    public void setTime(long time) {
        this.time = (long) time;
    }
}
TOP

Related Classes of networking.response.ResponseUpdateGameScaleTime

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.