/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Samples/RTS/CppSource/RTSPlugin/Components/ComponentMessages.h
64 строки
1 KB
Jan Krassnigg
C++ Project Generation now also builds stand-alone game exe (#1465)
30 дек 2024, 12:59
Не верифицирован
30 дек 2024, 12:59
d369e9b
Код
Авторство
О чём код?
#pragma once #include <RTSPlugin/RTSPluginDLL.h> struct RtsMsgNavigateTo : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgNavigateTo, ezMessage); ezVec2 m_vTargetPosition; }; /// \brief Tell the unit to stop and stay where it currently is struct RtsMsgStopNavigation : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgStopNavigation, ezMessage); }; struct RtsMsgArrivedAtLocation : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgArrivedAtLocation, ezMessage); }; struct RtsMsgAssignPosition : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgAssignPosition, ezMessage); ezVec2 m_vTargetPosition; }; struct RtsMsgSetTarget : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgSetTarget, ezMessage); ezGameObjectHandle m_hObject; }; struct RtsMsgApplyDamage : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgApplyDamage, ezMessage); ezInt16 m_iDamage; }; /// Used to inform sub-systems (child nodes etc.) when health changes (taking damage etc.) /// m_uiCurHealth == 0 means the unit is destroyed now struct RtsMsgUnitHealthStatus : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgUnitHealthStatus, ezMessage); ezUInt16 m_uiCurHealth; ezUInt16 m_uiMaxHealth; ezInt16 m_iDifference; }; /// Used to query the health/shields status for display struct RtsMsgGatherUnitStats : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(RtsMsgGatherUnitStats, ezMessage); ezUInt16 m_uiCurHealth = 0; ezUInt16 m_uiMaxHealth = 0; ezUInt16 m_uiCurShields = 0; ezUInt16 m_uiMaxShields = 0; };