Click or drag to resize
RoomsRoomChanged Event
Hartismere School

[This is preliminary documentation and is subject to change.]

This event is raised at the moment the current room changes.

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
public event RoomsRoomChangeHandler RoomChanged

Return Value

Type: 
The text to display to the user
Examples
Game g = new Game("Demo Game");
g.Rooms.RoomChanged += myRoomChange;
...
myRoomChange(Instruction i)
{
    ...
    return "Now in room "+g.Rooms.Current.Name;
}
See Also