Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/CCmpFootprint.cpp
/* Copyright (C) 2018 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: | ||||
entity_pos_t m_Size0; // width/radius | entity_pos_t m_Size0; // width/radius | ||||
entity_pos_t m_Size1; // height/radius | entity_pos_t m_Size1; // height/radius | ||||
entity_pos_t m_Height; | entity_pos_t m_Height; | ||||
entity_pos_t m_MaxSpawnDistance; | entity_pos_t m_MaxSpawnDistance; | ||||
static std::string GetSchema() | static std::string GetSchema() | ||||
{ | { | ||||
return | return | ||||
"<a:help>Approximation of the entity's shape, for collision detection and outline rendering. " | "<a:help>Approximation of the entity's shape, for collision detection and may be used for outline rendering or to determine selectable bounding box. " | ||||
"Shapes are flat horizontal squares or circles, extended vertically to a given height.</a:help>" | "Shapes are flat horizontal squares or circles, extended vertically to a given height.</a:help>" | ||||
"<a:example>" | "<a:example>" | ||||
"<Square width='3.0' height='3.0'/>" | "<Square width='3.0' height='3.0'/>" | ||||
"<Height>0.0</Height>" | "<Height>0.0</Height>" | ||||
"<MaxSpawnDistance>8</MaxSpawnDistance>" | "<MaxSpawnDistance>8</MaxSpawnDistance>" | ||||
"</a:example>" | "</a:example>" | ||||
"<a:example>" | "<a:example>" | ||||
"<Circle radius='0.5'/>" | "<Circle radius='0.5'/>" | ||||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator