コード例 #1
0
 public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list)
 {                                                                         //We are overriding GetContextMenuEntries because we want to do something to it.
     base.GetContextMenuEntries(from, list);                               //Items and Mobiles may already have context menus on them..
     MorphEthy2.GetContextMenuEntries(from, this, list);                   //We want to add another menu entry to what already exists, so call our function that makes the addition
 }
コード例 #2
0
 public PropsEntry(Mobile from, Item item)
     : base(6132)   // uses "Use" entry
 {
     m_Item   = ( MorphEthy2 )item;
     m_Mobile = from;
 }