the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 35 lines 897 B view raw
1#pragma once 2 3#include "Packet.h" 4 5class PlayerTeam; 6 7class SetPlayerTeamPacket : public Packet , public enable_shared_from_this<SetPlayerTeamPacket> 8{ 9public: 10 static const int METHOD_ADD = 0; 11 static const int METHOD_REMOVE = 1; 12 static const int METHOD_CHANGE = 2; 13 static const int METHOD_JOIN = 3; 14 static const int METHOD_LEAVE = 4; 15 16 wstring name; 17 wstring displayName; 18 wstring prefix; 19 wstring suffix; 20 vector<wstring> players; 21 int method; 22 int options; 23 24 SetPlayerTeamPacket(); 25 SetPlayerTeamPacket(PlayerTeam *team, int method); 26 SetPlayerTeamPacket(PlayerTeam *team, vector<wstring> *players, int method); 27 void read(DataInputStream *dis); 28 void write(DataOutputStream *dos); 29 void handle(PacketListener *listener); 30 int getEstimatedSize(); 31 32public: 33 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetPlayerTeamPacket()); } 34 virtual int getId() { return 209; } 35};