Esempio n. 1
0
    public void SendSetSpecBlock(WorldPos position, BlockSpecial.Specal_type type)
    {
        Dictionary <string, string> data = new Dictionary <string, string>();

        data["id"]   = "" + socket.sid;
        data["p_x"]  = "" + position.x;
        data["p_y"]  = "" + position.y;
        data["p_z"]  = "" + position.z;
        data["type"] = type.ToString();
        socket.Emit("set_specblock", new JSONObject(data));
    }