Saturday 11th November 2023
Blog Entry 2
Since the last blog I have managed to get the time of day management system working. The system works using an enum for the times e.g. Times::Morning or Times::Afternoon, by using an enum it is easy to tell what time of day it is and have the times of day fixed to a specific amount. I have also added in some error catching to ensure that the enum is not something unexpected like Times::SizeOfEnum and that the code does ever change the time of day to that.
The system also gives me functions to increment the time of day or change it directly. There is also a delegate linked up so whenever the time of day is changed an event is sent out and this can be subscribed to by any other functions I make. In fact it is already subscribed to by the directional light changer I made for the proof of concept demo.
Getting all of this working was a learning experience as I have not done things like delegates in Unreal before, however now I have a hang on them they will be much easier to use in future.
My plan for what to do next is making an interaction component as without a way to interact with the game’s systems it makes everything very hard to test and there cannot really be a game without interaction.