9
Structuring Code with Behavioral Patterns – Template, Subclass Sandbox, and Type Object
This chapter focuses on the three most common structural patterns. Structural patterns allow us to plan our code with the end usage in mind. For example, if we know that the end users of our system are likely to be designers with no code experience, we could plan to use the type object pattern to provide a system for easy dynamic expansion. We have already covered some of the concepts around code structure when we discussed using interfaces and events to achieve anonymous modular design in Chapter 7. The three patterns in this chapter (template, subclass sandbox, and type object) are a little more zoomed-in in terms of scope compared to what we have looked ...
Get Game Development Patterns with Unreal Engine 5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.