So like always start with problem description: I have some pool of command represented as enumerator. Each of command can have unique data that size can be different. I wanted to create system that allow me in easy way iterate over them and execute. After some time I created this implementation: template<ECommands::enum cmd> bool execCommandTemp(ECommands::ENUM a_cmd, void* a_data) { if (a_cmd == cmd) { SCommand<cmd>::execute((SCommand ::SData*)a_data); return false; } return execCommandTemp<(ECommands::ENUM)(cmd+1)>(a_cmd, a_data); } template<> bool execCommandTemp<ECommands::WRAP>(ECommands::ENUM a_cmd, void* a_data) { return true; } bool execCommand( ECommands::ENUM a_cmd, void* a_data ) { return execCommandTemp<(ECommands::ENUM)0>(a_cmd, a_data); } where SCommand look in example such a way: template <> st...
On begin I wold like to thanks two people: You Tube user rezoner1337 for publishing info about remake on wykop and gog.com forum user M2Grzegorczy for this topic . It's really great to see that they shown such a initiative and to say truth the moment I saw this posts I couldn't believe. So what else left for me thanks you again. Second thing is the problem I was pinpointed by few people: there is no easy way to communicate with me. So I added email contact on blog because alexfont wrote that he couldn't found any. Maybe any of you have other proposition how to make contact with me easier? And on end progress of game: this week I spend mostly on AI and removing sliding of player. I will not say to much here because I plan to show both things in next movie which will have this time music created specially for game by Jesse Gorter . From more interesting changes is shown of discrete mode with animation and influence on gameplay. So e...
This time light topic of UI designing :] But before this let's discuss how the hierarchy in the engine works. So it was easier to understand these, let's look at the tooling of it: We have there: World (ID:0) Loaded Stream (Citadel Island) Loaded SubStream (CI.Citadel) Unloaded SubStream (CI.Logic) Folders (f.ex. Park) Entities (f.ex. Ferry) If you are curious what a Stream is, you can think about it as a scene or a level. Now that we know all of this let's look a little bit closer at what we have. Streams and SubStreams are exactly the same I change the name based on their position in the hierarchy. The Folders may look different than Entities but they are exactly the same. They are Entities with a folder component. If we go this way streams are also just Entities with a Stream Component. This leaves us with a bunch of the entities under the World . Which as you can suspect is just an Entity with ID equal to 0....
Comments
Post a Comment