mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Reduced number of accesses to CGObjectInstance::subID
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../networkPacks/EInfoWindowMode.h"
|
||||
#include "../constants/EntityIdentifiers.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
@@ -33,8 +34,8 @@ public:
|
||||
|
||||
virtual ~IObjectInterface() = default;
|
||||
|
||||
virtual int32_t getObjGroupIndex() const = 0;
|
||||
virtual int32_t getObjTypeIndex() const = 0;
|
||||
virtual MapObjectID getObjGroupIndex() const = 0;
|
||||
virtual MapObjectSubID getObjTypeIndex() const = 0;
|
||||
|
||||
virtual PlayerColor getOwner() const = 0;
|
||||
virtual int3 visitablePos() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user