Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpUnitRenderer.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 34 Lines | public: | ||||
{ | { | ||||
ACTOR_ONLY = 1 << 0, | ACTOR_ONLY = 1 << 0, | ||||
VISIBLE_IN_ATLAS_ONLY = 1 << 1, | VISIBLE_IN_ATLAS_ONLY = 1 << 1, | ||||
}; | }; | ||||
virtual tag_t AddUnit(CEntityHandle entity, CUnit* unit, const CBoundingSphere& boundsApprox, int flags) = 0; | virtual tag_t AddUnit(CEntityHandle entity, CUnit* unit, const CBoundingSphere& boundsApprox, int flags) = 0; | ||||
virtual void RemoveUnit(tag_t tag) = 0; | virtual void RemoveUnit(tag_t tag) = 0; | ||||
virtual void AddCorpse() = 0; | |||||
virtual void RemoveCorpse() = 0; | |||||
virtual bool CanAddCorpse() = 0; | |||||
wraitii: You need those | |||||
Done Inline Actionsvirtual bool CanAddCorpse() const = 0;. vladislavbelov: `virtual bool CanAddCorpse() const = 0;`. | |||||
virtual void UpdateUnit(tag_t tag, CUnit* unit, const CBoundingSphere& boundsApprox) = 0; | virtual void UpdateUnit(tag_t tag, CUnit* unit, const CBoundingSphere& boundsApprox) = 0; | ||||
virtual void UpdateUnitPos(tag_t tag, bool inWorld, const CVector3D& pos0, const CVector3D& pos1) = 0; | virtual void UpdateUnitPos(tag_t tag, bool inWorld, const CVector3D& pos0, const CVector3D& pos1) = 0; | ||||
/** | /** | ||||
* Return a list of visual entities along with their center point. | * Return a list of visual entities along with their center point. | ||||
* Visual means they have an associated actor and a visual component, | * Visual means they have an associated actor and a visual component, | ||||
* but they could still be hiden in the fog of war for a specific player, | * but they could still be hiden in the fog of war for a specific player, | ||||
Show All 23 Lines |
Wildfire Games · Phabricator
You need those