Cronous Emulation Server Daemon

NonPlayerManager.Item Property

Gets or sets a character.

[C#] In C#, this property is the indexer for the NonPlayerManager class.

[Visual Basic]
Public Default Property Item( _ 
   ByVal id As Integer _ 
) As NonPlayerCharacter
[C#]
public NonPlayerCharacter this[
   int id
] { get; set; }
[C++]
public: __property NonPlayerCharacter* get_Item(
   int id
);
public: __property void set_Item(
   int id,
   NonPlayerCharacter* newValue
);
[JScript]
returnValue = NonPlayerManagerObject.Item( id );
NonPlayerManagerObject.Item( id ) = newValue;
-or-
returnValue = NonPlayerManagerObject( id );
NonPlayerManagerObject( id ) = newValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

See Also

NonPlayerManager Class | croemud.manager Namespace