mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-25 01:02:26 +00:00
Removed unused dailygain
This commit is contained in:
parent
1a71237dc2
commit
c9a79af79b
@ -28,16 +28,6 @@ message CommandMessage {
|
||||
bytes payload = 5;
|
||||
}
|
||||
|
||||
//Daily Gain is a special system for tracking players progression in a daily snapshot.
|
||||
message DailyGain {
|
||||
int32 account_id = 1;
|
||||
int32 character_id = 2;
|
||||
int32 levels_gained = 3;
|
||||
int32 experience_gained = 4;
|
||||
int32 money_earned = 5;
|
||||
string identity = 6;
|
||||
}
|
||||
|
||||
//Entity is full of entity data.
|
||||
message Entity {
|
||||
int32 id = 1;
|
||||
|
||||
@ -350,27 +350,6 @@ void NatsManager::Load()
|
||||
return;
|
||||
}
|
||||
|
||||
void NatsManager::DailyGain(int account_id, int character_id, const char* identity, int levels_gained, int experience_gained, int money_earned)
|
||||
{
|
||||
if (!connect()) return;
|
||||
eqproto::DailyGain daily;
|
||||
daily.set_account_id(account_id);
|
||||
daily.set_character_id(character_id);
|
||||
daily.set_identity(identity);
|
||||
daily.set_levels_gained(levels_gained);
|
||||
daily.set_experience_gained(experience_gained);
|
||||
daily.set_money_earned(money_earned);
|
||||
std::string pubMessage;
|
||||
if (!daily.SerializeToString(&pubMessage)) {
|
||||
Log(Logs::General, Logs::NATS, "failed to serialize dailygain to string");
|
||||
return;
|
||||
}
|
||||
|
||||
s = natsConnection_PublishString(conn, "daily_gain", pubMessage.c_str());
|
||||
if (s != NATS_OK) Log(Logs::General, Logs::NATS, "failed to send DailyGain: %s", nats_GetLastError(&s));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void NatsManager::OnEntityEvent(const EmuOpcode op, Entity *ent, Entity *target) {
|
||||
if (ent == NULL) return;
|
||||
|
||||
@ -18,7 +18,6 @@ public:
|
||||
void Unregister();
|
||||
void ZoneSubscribe(const char * zonename);
|
||||
void Load();
|
||||
void DailyGain(int account_id, int character_id, const char * identity, int levels_gained = 0, int experience_gained = 0, int money_earned = 0);
|
||||
void OnChannelMessageEvent(uint32 entity_id, ChannelMessage_Struct * cm);
|
||||
void OnEntityEvent(const EmuOpcode op, uint32 entity_id, uint32 target_id);
|
||||
void OnSpawnEvent(const EmuOpcode op, uint32 entity_id, Spawn_Struct * spawn);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user