mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-30 18:01:39 +00:00
A counter worked by the events its config names, firing its max and min events at their groups (three Fire Temple objects use it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
502 B
C++
11 lines
502 B
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
|
|
// L_EVENT_COUNTER_UTIL.lua: a counter worked by events its config names (increment / decrement), from min (0) to max
|
|
// (1). Reaching max fires maxHit_event at maxHit_group; back at min it fires minHit_event at minHit_group.
|
|
class EventCounterUtil : public CppScripts::Script {
|
|
public:
|
|
void OnStartup(Entity* self) override;
|
|
void OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) override;
|
|
};
|