Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/interfaces
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-29 10:11:19 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-29 10:11:19 +1000
commit624c7aaaf192f2e87081a241123a8507a4718ba3 (patch)
treea54b09902da8d724f3ba740a215fd53d8a861fd9 /source/game/interfaces
parent9d67cda97fc327ca3c53e044a897fbfb196104c4 (diff)
Move lighting calculation to separate thread
Diffstat (limited to 'source/game/interfaces')
-rw-r--r--source/game/interfaces/StarChattyEntity.hpp2
-rw-r--r--source/game/interfaces/StarEntity.cpp2
-rw-r--r--source/game/interfaces/StarEntity.hpp2
3 files changed, 5 insertions, 1 deletions
diff --git a/source/game/interfaces/StarChattyEntity.hpp b/source/game/interfaces/StarChattyEntity.hpp
index 03c1ac9..cd6ac8a 100644
--- a/source/game/interfaces/StarChattyEntity.hpp
+++ b/source/game/interfaces/StarChattyEntity.hpp
@@ -10,7 +10,7 @@ STAR_CLASS(ChattyEntity);
class ChattyEntity : public virtual Entity {
public:
- virtual Vec2F mouthPosition() const { return mouthPosition(true); };
+ virtual Vec2F mouthPosition() const = 0;
virtual Vec2F mouthPosition(bool) const = 0;
virtual List<ChatAction> pullPendingChatActions() = 0;
};
diff --git a/source/game/interfaces/StarEntity.cpp b/source/game/interfaces/StarEntity.cpp
index 405fdde..67887c9 100644
--- a/source/game/interfaces/StarEntity.cpp
+++ b/source/game/interfaces/StarEntity.cpp
@@ -115,6 +115,8 @@ void Entity::update(uint64_t) {}
void Entity::render(RenderCallback*) {}
+void Entity::renderLightSources(RenderCallback*) {}
+
EntityId Entity::entityId() const {
return m_entityId;
}
diff --git a/source/game/interfaces/StarEntity.hpp b/source/game/interfaces/StarEntity.hpp
index 3452654..ad297a9 100644
--- a/source/game/interfaces/StarEntity.hpp
+++ b/source/game/interfaces/StarEntity.hpp
@@ -153,6 +153,8 @@ public:
virtual void render(RenderCallback* renderer);
+ virtual void renderLightSources(RenderCallback* renderer);
+
EntityId entityId() const;
EntityDamageTeam getTeam() const;