Click or drag to resize

MMOItem Class

An MMOItem object represents an active non-player entity inside an MMORoom.
Inheritance Hierarchy
SystemObject
  Sfs2X.EntitiesMMOItem

Namespace:  Sfs2X.Entities
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class MMOItem : IMMOItem

The MMOItem type exposes the following members.

Properties
  NameDescription
Public propertyAOIEntryPoint
Returns the entry point of this item in the current user's AoI.
Public propertyId
Indicates the id of this item.
Top
Methods
  NameDescription
Public methodContainsVariable
Indicates whether this item has the specified MMOItem Variable set or not.
Public methodGetVariable
Retrieves an MMOItem Variable from its name.
Public methodGetVariables
Retrieves all the MMOItem Variables of this item.
Top
Remarks
MMOItems can be used to represent bonuses, triggers, bullets, etc, or any other non-player entity that will be handled using the MMORoom's rules of visibility. This means that whenever one or more MMOItems fall within the Area of Interest of a user, their presence will be notified to that user by means of the PROXIMITY_LIST_UPDATE event.

MMOItems are identified by a unique ID and can have one or more MMOItem Variables associated to store custom data.

NOTE: MMOItems can be created in a server side Extension only; client side creation is not allowed.

See Also