コード例 #1
0
 internal void iOnTakeItemFromContainer(MobContainer container, Player pl, Item item, int amount)
 {
     if (OnTakeItemFromContainer != null)
     {
         OnTakeItemFromContainer(container, pl, item, amount);
     }
 }
コード例 #2
0
 internal void iOnPutItemToContainer(MobContainer container, Player pl, Item item, int amount)
 {
     if (OnPutItemToContainer != null)
     {
         OnPutItemToContainer(container, pl, item, amount);
     }
 }
コード例 #3
0
 internal static void isOnTakeItemMessage(MobContainer container, Player pl, Item item, int amount)
 {
     container.iOnTakeItemFromContainer(container, pl, item, amount);
     if (sOnTakeItemFromContainer != null)
     {
         sOnTakeItemFromContainer(container, pl, item, amount);
     }
 }
コード例 #4
0
 internal static void isOnPutItemToContainer(MobContainer container, Player pl, Item item, int amount)
 {
     container.iOnPutItemToContainer(container, pl, item, amount);
     if (sOnPutItemToContainer != null)
     {
         sOnPutItemToContainer(container, pl, item, amount);
     }
 }
コード例 #5
0
 public void toContainer(Mob.MobContainer container)
 {
     container.Proto.addItem(this.ProtoItem);
     _toContainer(container);
 }