예제 #1
0
 /// <summary>
 /// Finds the player's item from its inventory.
 /// </summary>
 /// <param Name="type">Type of item being found</param>
 /// <returns>The item in the player's inventory</returns>
 public PvPItem FindPlayerItem(int type) => PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)]);
예제 #2
0
 /// <summary>
 /// Finds the player's item from its inventory.
 /// </summary>
 public PvPItem FindPlayerItem(int type) => TPlayer.FindItem(type) != -1
     ? PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)])
     : new PvPItem(type)
 {
     owner = Index
 };
예제 #3
0
 /// <summary>
 /// Finds the player's item from its inventory.
 /// </summary>
 public PvPItem FindPlayerItem(int type) => TPlayer.FindItem(type) != -1
     ? PvPUtils.ConvertToPvPItem(TPlayer.inventory[TPlayer.FindItem(type)])
     : new PvPItem(type)
 {
     playerIndexTheItemIsReservedFor = Index
 };