Skip to Content
Game Development Patterns with Unreal Engine 5
book

Game Development Patterns with Unreal Engine 5

by Stuart Butler, Tom Oliver
January 2024
Intermediate to advanced content levelIntermediate to advanced
254 pages
6h 13m
English
Packt Publishing
Content preview from Game Development Patterns with Unreal Engine 5

6

Clean Communication – Interface and Event Observer Patterns

In this chapter, we will explore two design patterns that allow us to improve how actors communicate with each other. Utilizing the interface and event observer patterns to allow us to build better, cleaner communication solutions, reducing memory and processing cost of communication. To explore these, we will expand on the RTS game by implementing a health component that can be added to any actor. We will start by looking at interfaces in C++, following the concepts of the interface design pattern, and then explore the event observer pattern, with an exploration of Event Dispatchers in Blueprint and the implementation of event delegates in C++.

In this chapter, we will cover the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Multiplayer Game Development with Unreal Engine 5

Multiplayer Game Development with Unreal Engine 5

Marco Secchi

Publisher Resources

ISBN: 9781803243252Supplemental Content