예제 #1
0
 /// <summary>
 /// Update a carying item.
 /// </summary>
 /// <param name="localID">The local ID of the item.</param>
 /// <param name="type">The type of update being done.</param>
 /// <param name="newItem"></param>
 public override void UpdateCarryingItem(byte localID, UpdateCarryingType type,
                                         Item newItem)
 {
     netmsg.AddU16(0x16); //Add header
     netmsg.AddByte((byte)type);
     netmsg.AddByte(localID);
     AddItemRaw(newItem, true, true, false);
 }
예제 #2
0
 /// <summary>
 /// Update via appending protocol data to all viewers.
 /// </summary>
 /// <param name="item"></param>
 public void UpdateItem(Item item)
 {
     foreach (Player player in viewers)
     {
         byte index = player.GetContainerIndex(this);
         UpdateCarryingType type = index == 0 ? UpdateCarryingType.CONTAINER_ONE
             : UpdateCarryingType.CONTAINER_TWO;
         player.UpdateCarryingItem((byte)containerItems.IndexOf(item), type, item);
     }
 }
예제 #3
0
 /* DEPRECATED */
 public abstract void UpdateCarryingItem(byte localID, UpdateCarryingType type,
                                         Item newItem);
예제 #4
0
 /* DEPRECATED */
 public abstract void UpdateCarryingItem(byte localID, UpdateCarryingType type,
     Item newItem);
예제 #5
0
 public override void UpdateCarryingItem(byte localID, UpdateCarryingType type, Item newItem)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public override void UpdateCarryingItem(byte localID, UpdateCarryingType type, Item newItem)
 {
     throw new NotImplementedException();
 }
예제 #7
0
파일: player.cs 프로젝트: brewsterl/cyclops
 public void UpdateCarryingItem(byte index, UpdateCarryingType type, Item newItem)
 {
     AddAffected();
     protocolS.UpdateCarryingItem(index, type, newItem);
 }
예제 #8
0
 /// <summary>
 /// Update a carying item.
 /// </summary>
 /// <param name="localID">The local ID of the item.</param>
 /// <param name="type">The type of update being done.</param>
 /// <param name="newItem"></param>
 public override void UpdateCarryingItem(byte localID, UpdateCarryingType type,
     Item newItem)
 {
     netmsg.AddU16(0x16); //Add header
     netmsg.AddByte((byte)type);
     netmsg.AddByte(localID);
     AddItemRaw(newItem, true, true, false);
 }