コード例 #1
0
 public Item(ItemInstance instance, int amount)
     : this(instance, amount, true)
 {
 }
コード例 #2
0
 public int getProtection(DamageTypeIndex index)
 {
     return(ItemInstance.getProtection(index));
 }
コード例 #3
0
 public int getDamage(DamageTypeIndex index)
 {
     return(ItemInstance.getDamage(index));
 }
コード例 #4
0
ファイル: World.cs プロジェクト: Arkasian/GothicUntoldChapter
 /// <summary>
 /// Adds an Item to the world
 /// </summary>
 /// <param name="instance">The item instance whick will be spawned</param>
 /// <param name="amount">The amount of the item to spawn at that location</param>
 /// <param name="position">The position where you want to spawn the item</param>
 /// <returns>returns the generated item</returns>
 public Item addItem(ItemInstance instance, int amount, Vec3f position)
 {
     return(this.addItem(instance, amount, position, new Vec3f(0.0f, 0.0f, 1.0f)));
 }