15 lines
238 B
C++
15 lines
238 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
struct TagInfo {
|
|
char *name;
|
|
uint32_t price;
|
|
int32_t sale; // unit is percent, rounded
|
|
};
|
|
|
|
struct Peer {
|
|
char peer_id[6];
|
|
uint64_t last_online;
|
|
std::vector<TagInfo> tags;
|
|
};
|