-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from ashblue/feature/fix-add-without-display-name
fix(item creation): no longer crashes when `_displayName` field is mi…
- Loading branch information
Showing
6 changed files
with
46 additions
and
1 deletion.
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
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,15 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: e149b91f3de145dc9820a3c795b7b05a, type: 3} | ||
m_Name: CustomItem | ||
m_EditorClassIdentifier: | ||
_id: fe563339-c771-4245-9db6-3b38dccf7426 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
Assets/Examples/Shop/Scripts/Definitions/ItemDefinitionCustomDisplayName.cs
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,12 @@ | ||
using CleverCrow.Fluid.ElasticInventory; | ||
|
||
namespace CleverCrow.Fluid.Examples { | ||
/// <summary> | ||
/// Simulates creating a custom display name and category for an item definition | ||
/// </summary> | ||
[ItemDefinitionDetails("Custom Display Details")] | ||
public class ItemDefinitionCustomDisplayName : ItemDefinitionBase { | ||
public override string DisplayName => "Custom Display Name"; | ||
public override string Category => "Custom Category"; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Assets/Examples/Shop/Scripts/Definitions/ItemDefinitionCustomDisplayName.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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