psu_proto: Move send_1a04 to psu_proto without reviewing it.

This commit is contained in:
Loïc Hoguin 2011-02-26 22:34:05 +01:00
parent dfa5634adb
commit a571b9a56b
3 changed files with 9 additions and 8 deletions

View File

@ -732,8 +732,8 @@ event(player_type_availability_request, Client) ->
event(player_type_capabilities_request, _Client) ->
psu_game:send_0113();
event(ppcube_request, _Client) ->
psu_game:send_1a04();
event(ppcube_request, Client) ->
psu_proto:send_1a04(Client);
event(unicube_request, Client) ->
psu_proto:send_021e(egs_universes:all(), Client);

View File

@ -374,9 +374,3 @@ send_1602() ->
EndPaddingSize = 8 * (64 - byte_size(UCS2PMName)),
GID = get(gid),
send(<< 16#16020300:32, 16#ffff:16, 0:144, 16#00011300:32, GID:32/little, 0:96, Bin/binary, 0:MiddlePaddingSize, NbNPC, 0:24, UCS2PMName/binary, 0:EndPaddingSize, 0:32 >>).
%% @doc PP cube handler.
%% @todo The 4 bytes before the file may vary. Everything past that is the same. Figure things out.
send_1a04() ->
{ok, File} = file:read_file("p/ppcube.bin"),
send(<< (header(16#1a04))/binary, 0:32, File/binary >>).

View File

@ -1690,6 +1690,13 @@ send_1a03(CharUser, #client{socket=Socket, gid=DestGID, lid=DestLID}) ->
packet_send(Socket, << 16#1a030300:32, DestLID:16/little, 0:144, 16#00011300:32, DestGID:32/little, 0:96,
NbHairstyles:32/little, NbHeadtypes:32/little, 0:416, HairstylesBin/binary, 0:32 >>).
%% @doc PP cube handler.
%% @todo The 4 bytes before the file may vary. Everything past that is the same. Figure things out.
%% @todo This packet hasn't been reviewed at all yet.
send_1a04(#client{socket=Socket, gid=DestGID}) ->
{ok, File} = file:read_file("p/ppcube.bin"),
packet_send(Socket, << 16#1a040300:32, 16#ffff:16, 0:144, 16#00011300:32, DestGID:32/little, 0:64, 0:32, File/binary >>).
%% @doc Available types handler. Enable all 16 types.
send_1a07(#client{socket=Socket, gid=DestGID, lid=DestLID}) ->
packet_send(Socket, << 16#1a070300:32, DestLID:16/little, 0:144, 16#00011300:32, DestGID:32/little, 0:160,