-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
TODO | ||
==== | ||
|
||
Refactoring | ||
----------- | ||
|
||
* Replace ServiceLocator with Dependency Injection or be at least so honest to | ||
use ordinary globals instead (no need to derive from Component). | ||
* Put (at least) core components in namespace jd to allow ADL: avoids ugly | ||
forward declarations of operator<< before #include <luabind/operator.hpp> | ||
and is good style anyway. | ||
* Replace the FileSystem singleton with free functions in a namespace. | ||
* StateManager / State needs to be completely rewritten: It's way to | ||
complicated without providing any benefits and, worse, lowers flexibility. | ||
* Maybe replace jd.connect with a Lua function <-> luabind::object() converter | ||
so that jd.connect() is not necessary anymore and | ||
fooComponent:connect_bar(f) can be used instead. | ||
* Get rid of LuaComponent::bindLuaPart(): Maybe luabind::adopt() is now | ||
capable of replacing it. |