Layers are sets of update, render, and input logic, in the form of Packages. There is one package type for each category. A Layer may implement any number of packages of all types.
A Layer interacts with the Screen Manager by implementing interfaces for the services it requires.

Master Layers

The top-level entity that interacts with the Screen Manager is the Master Layer. This represents a single "logical" game screen. Multiple Master Layers can be active (e.g. modal dialog).

Owned Layers

To allow for more modular organization, a Layer can be composed of collections of specialized sub-layers. These automatically hook into the package infrastructure, simply by the Master Layer adding them to its MasterLayer.Owned collection.

Last edited Jul 7, 2008 at 5:16 PM by escapellc, version 1


No comments yet.