Click or drag to resize
ThingPutInRoom Method (String)
Hartismere School

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

Note: This API is now obsolete.

Move the Thing into a room

Namespace: EJW.TextBasedAdventure
Assembly: EJW.TextBasedAdventure (in EJW.TextBasedAdventure.dll) Version: 2.0.5850.21153
Syntax
[ObsoleteAttribute]
public Thing PutInRoom(
	string Room
)

Parameters

Room
Type: SystemString
The Name of the Room to put the Thing in.

Return Value

Type: Thing
The Thing
Remarks
The Thing is moved regardless of whether it can be moved or not.
Examples
To put a hat into a room...
Game g = new Game( "Demo" );
g.Things.Add("hat");
g.Things["hat"].PutInRoom( "kitchen" );
See Also