There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "This class initializes the Context object and the states, and it also triggers state changes."
A block of code is set as follows:
namespace Chapter.State
{
public interface IBikeState
{
void Handle(BikeController controller);
}
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
namespace Chapter.State
{
public enum Direction
{
Left = -1,
Right = 1
}
}
Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "These objects can publish specific types of events declared by the Event Bus to Subscribers."