(2a7829fab) Add ISpatialEntity as a common interface for everything that has a position in the game world. Would have used IMapEntity, but there's already MapEntity, which inherits Entity, so that would be confusing. Declare the inheritance only in the shared class (Character).

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:45:41 +03:00
parent 4daa149f29
commit 953b5690ec
10 changed files with 91 additions and 221 deletions
@@ -6,7 +6,7 @@ using System.Text;
namespace Barotrauma
{
class Entity
class Entity : ISpatialEntity
{
public const ushort NullEntityID = 0;