-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a70596c
commit ea179e3
Showing
13 changed files
with
215 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<material> | ||
<technique name="Techniques/LitOpaque.xml" quality="0" loddistance="0.000000" /> | ||
<shader vsdefines="PBR " psdefines="PBR " /> | ||
<parameter name="MatEnvMapColor" value="1 1 1" /> | ||
<parameter name="NormalScale" value="1.000000" /> | ||
<parameter name="MatDiffColor" value="1 0 0 1" /> | ||
<parameter name="VOffset" value="0 1 0 0" /> | ||
<parameter name="DielectricReflectance" value="0.500000" /> | ||
<parameter name="Metallic" value="1.000000" /> | ||
<parameter name="MatSpecColor" value="0 0 0 1" /> | ||
<parameter name="MatEmissiveColor" value="0 0 0" /> | ||
<parameter name="UOffset" value="1 0 0 0" /> | ||
<parameter name="AlphaCutoff" value="0.500000" /> | ||
<parameter name="Roughness" value="1.000000" /> | ||
<cull value="ccw" /> | ||
<shadowcull value="ccw" /> | ||
<fill value="solid" /> | ||
<depthbias constant="0.000000" slopescaled="0.000000" normaloffset="0.000000" /> | ||
<alphatocoverage enable="false" /> | ||
<lineantialias enable="false" /> | ||
<renderorder value="128" /> | ||
<occlusion enable="true" /> | ||
</material> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Urho3DNet; | ||
|
||
namespace RbfxTemplate | ||
{ | ||
[ObjectFactory(Category = "Component/Game")] | ||
public partial class InventoryItem : Selectable | ||
{ | ||
public InventoryItem(Context context) : base(context) | ||
{ | ||
} | ||
|
||
[SerializeField(Mode = AttributeMode.AmDefault, Name = "Inventory Key")] | ||
public string InventoryKey { get; set; } = string.Empty; | ||
|
||
/// <inheritdoc/> | ||
public override bool InteractionEnabled { get; } = true; | ||
|
||
public override void Interact(Player player) | ||
{ | ||
player.AddToInventory(InventoryKey); | ||
OnHoverEnd(player); | ||
Node.Remove(); | ||
} | ||
} | ||
} |
Oops, something went wrong.