summaryrefslogtreecommitdiff
path: root/src/map/intif.hpp
blob: 5be61a96d00188aa6110437b4d299d4bb5ff550a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
//    intif.hpp - Network interface to the internal server.
//
//    Copyright © ????-2004 Athena Dev Teams
//    Copyright © 2004-2011 The Mana World Development Team
//    Copyright © 2011-2014 Ben Longbons <b.r.longbons@gmail.com>
//
//    This file is part of The Mana World (Athena server)
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

#include "fwd.hpp"

#include "../strings/fwd.hpp"

#include "../generic/fwd.hpp"

#include "../net/fwd.hpp"

#include "../mmo/fwd.hpp"


namespace tmwa
{
RecvResult intif_parse(Session *, uint16_t packet_id);

void intif_GMmessage(XString mes);

void intif_wis_message(dumb_ptr<map_session_data> sd, CharName nick, ZString mes);
void intif_wis_message_to_gm(CharName Wisp_name, GmLevel min_gm_level, ZString mes);

void intif_saveaccountreg(dumb_ptr<map_session_data> sd);
void intif_request_accountreg(dumb_ptr<map_session_data> sd);

void intif_request_storage(AccountId account_id);
void intif_send_storage(Storage *stor);

void intif_create_party(dumb_ptr<map_session_data> sd, PartyName name);
void intif_request_partyinfo(PartyId party_id);
void intif_party_addmember(PartyId party_id, AccountId account_id);
void intif_party_changeoption(PartyId party_id, AccountId account_id, int exp,
        int item);
void intif_party_leave(PartyId party_id, AccountId accound_id);
void intif_party_changemap(dumb_ptr<map_session_data> sd, int online);
void intif_party_message(PartyId party_id, AccountId account_id, XString mes);
void intif_party_checkconflict(PartyId party_id, AccountId account_id, CharName nick);
} // namespace tmwa