feat: Added DamageDescription class

+ Added onPlayerDamage event
This commit is contained in:
AURUMVORXX
2024-11-05 23:44:22 +03:00
parent 7a1d11543b
commit 4efda3e2e0
12 changed files with 193 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
#ifndef NONUT_G2O_SERVER_CLASS_PACKET
#define NONUT_G2O_SERVER_CLASS_PACKET
#ifndef _PACKET_H_
#define _PACKET_H_
#include <string>
#include <NoNut/core/Class.h>
@@ -13,7 +13,6 @@ namespace nonut
Packet();
explicit Packet(SQObject object);
// Methods
Function<void> reset;
Function<void, Int, Int> send;
Function<void, Int> sendToAll;
@@ -36,10 +35,9 @@ namespace nonut
Function<Float> readFloat;
Function<String> readString;
// Properties
Property<Int> bitsUsed;
Property<Int> bytesUsed;
};
}
#endif // NONUT_G2O_SERVER_CLASS_PACKET
#endif