mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-24 00:38:40 +00:00
33 lines
687 B
C
33 lines
687 B
C
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_MODELS_MOB_STATE_H
|
|
#define TOS_MODELS_MOB_STATE_H
|
|
|
|
#include "../../stdlib/Types.h"
|
|
#include "../../stdlib/Mathtypes.h"
|
|
#include "MobAction.h"
|
|
|
|
struct MobState {
|
|
v3_f32 location;
|
|
v4_f32 orientation;
|
|
|
|
float t;
|
|
|
|
// Action performed
|
|
// first byte = action category
|
|
// last 3 bytes = animation to use
|
|
uint32 action = (MOB_ACTION_INACTIVE << 24);
|
|
|
|
bool in_battle;
|
|
|
|
int chunk_id;
|
|
byte environment; // dungeon/raid, pvp-openworld, pvp, pvp-tournament, open-world, instance-private, instance-invite, housing,
|
|
};
|
|
|
|
#endif |