This commit is contained in:
aozhiwei 2024-03-29 16:07:57 +08:00
parent 4d1beae4fc
commit 41b3485be1
2 changed files with 47 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#include "mt/InGameVoice.h" #include "mt/InGameVoice.h"
IMPL_TABLE(mt::InGameVoice) IMPL_TABLE(mt::InGameVoice)
int mt::InGameVoice::play_interval = 0;
int mt::InGameVoice::series_kill_interval = 0;
namespace mt namespace mt
{ {
@ -16,4 +18,14 @@ namespace mt
} }
InGameVoiceNotifyObject_e InGameVoice::GetNotifyObject() const
{
return _notify_object;
}
void InGameVoice::Traverse(std::function<bool (const InGameVoice*)> cb)
{
}
} }

View File

@ -3,6 +3,33 @@
#include "mt/macro.h" #include "mt/macro.h"
#include "mtb/InGameVoice.h" #include "mtb/InGameVoice.h"
A8_DECLARE_ENUM(InGameVoiceEventType_e,
kGlobalKills = 1,
kPersonalExceptFirstBooldKills = 2,
kMyTeamateBeKill = 3,
kEnemyTeamBekill = 4,
kTeamAllDead = 5,
kSeriesKills = 11,
kNoDeadSeriesKills = 21,
kFail = 99,
kVictory = 100
);
A8_DECLARE_ENUM(InGameVoiceNotifyObject_e,
kGlobal,
kKiller,
kNoKiller,
kKillerTeam,
kNoKillerTeam,
kDead,
kNoDead,
kDeadTeam,
kNoDeadTeam,
kTeammateExcludeDead
);
namespace mt namespace mt
{ {
@ -10,11 +37,19 @@ namespace mt
"ingameVoice@ingameVoice.json", "ingameVoice@ingameVoice.json",
"id") "id")
public: public:
static int play_interval;
static int series_kill_interval;
void Init1(); void Init1();
void Init2(); void Init2();
InGameVoiceNotifyObject_e GetNotifyObject() const;
static void Traverse(std::function<bool (const InGameVoice*)> cb);
private: private:
InGameVoiceNotifyObject_e _notify_object;
static std::map<int, std::vector<const InGameVoice*>> type_hash_;
}; };
} }