mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-14 16:44:09 +00:00
Add DoDamage behavior and dont try and start the same node multiple times
This commit is contained in:
@@ -211,14 +211,14 @@ void PropertyBehavior::Update(float deltaTime, ModelComponent& modelComponent) {
|
||||
}
|
||||
}
|
||||
|
||||
void PropertyBehavior::OnChatMessageReceived(const std::string& sMessage) {
|
||||
void PropertyBehavior::OnChatMessageReceived(const std::string& sMessage, const LWOOBJID sender) {
|
||||
auto& activeState = GetActiveState();
|
||||
activeState.OnChatMessageReceived(sMessage);
|
||||
activeState.OnChatMessageReceived(sMessage, sender);
|
||||
}
|
||||
|
||||
void PropertyBehavior::OnHit() {
|
||||
void PropertyBehavior::OnHit(const LWOOBJID attacker) {
|
||||
auto& activeState = GetActiveState();
|
||||
activeState.OnHit();
|
||||
activeState.OnHit(attacker);
|
||||
}
|
||||
|
||||
State& PropertyBehavior::GetActiveState() {
|
||||
|
||||
Reference in New Issue
Block a user