From 376ef270b255256b4154eafaea3530ab01e7ccc5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 29 Apr 2022 20:51:15 +0200 Subject: docs: add factory to basic example --- examples/basic/src/interfaces/enemy.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/basic/src/interfaces/enemy.hpp') diff --git a/examples/basic/src/interfaces/enemy.hpp b/examples/basic/src/interfaces/enemy.hpp index 45e004f..40b6818 100644 --- a/examples/basic/src/interfaces/enemy.hpp +++ b/examples/basic/src/interfaces/enemy.hpp @@ -1,5 +1,9 @@ #pragma once +#include + +#include + class IEnemy { public: @@ -9,3 +13,5 @@ public: virtual void do_damage(int damage) noexcept = 0; }; + +using IEnemyFactory = yacppdic::Factory()>; -- cgit v1.2.3-18-g5258