Skip to content

Commit

Permalink
Added fix for scriptable factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jzapdot committed Jan 17, 2022
2 parents 2cbc681 + c85470b commit 90f6cb5
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public bool TryGetValue(string symbol, out ${ValueFullType} value)
{
value = null;
return MappingLookup.TryGetValue(symbol, out var mapping);
return MappingLookup.TryGetValue(symbol, out value);
}
#if ODIN_INSPECTOR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultArchetypeIDToGameObjectArrayFactory", menuName = "Genesis/Factory/ArchetypeIDToGameObjectArrayFactory")]
[CreateAssetMenu(fileName = "NewArchetypeIDToGameObjectArrayFactory", menuName = "Genesis/Factory/ArchetypeIDToGameObjectArrayFactory")]
public sealed partial class ArchetypeIDToGameObjectArrayFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultArchetypeIDToGameObjectFactory", menuName = "Genesis/Factory/ArchetypeIDToGameObjectFactory")]
[CreateAssetMenu(fileName = "NewArchetypeIDToGameObjectFactory", menuName = "Genesis/Factory/ArchetypeIDToGameObjectFactory")]
public sealed partial class ArchetypeIDToGameObjectFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultArchetypeIDToListGameObjectFactory", menuName = "Genesis/Factory/ArchetypeIDToListGameObjectFactory")]
[CreateAssetMenu(fileName = "NewArchetypeIDToListGameObjectFactory", menuName = "Genesis/Factory/ArchetypeIDToListGameObjectFactory")]
public sealed partial class ArchetypeIDToListGameObjectFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultArchetypeIDToSpriteFactory", menuName = "Genesis/Factory/ArchetypeIDToSpriteFactory")]
[CreateAssetMenu(fileName = "NewArchetypeIDToSpriteFactory", menuName = "Genesis/Factory/ArchetypeIDToSpriteFactory")]
public sealed partial class ArchetypeIDToSpriteFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultBehaviourSymbolObjectSymbolFactory", menuName = "Genesis/Factory/BehaviourSymbolObjectSymbolFactory")]
[CreateAssetMenu(fileName = "NewBehaviourSymbolObjectSymbolFactory", menuName = "Genesis/Factory/BehaviourSymbolObjectSymbolFactory")]
public sealed partial class BehaviourSymbolObjectSymbolFactory : ScriptableObject
{
#if ODIN_INSPECTOR
Expand Down Expand Up @@ -67,7 +67,7 @@ public bool TryGetValue(string symbol, out ExampleContent.BehaviourSymbolObject
{
value = null;

return MappingLookup.TryGetValue(symbol, out var mapping);
return MappingLookup.TryGetValue(symbol, out value);
}

#if ODIN_INSPECTOR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultItemTypeToGameObjectArrayFactory", menuName = "Genesis/Factory/ItemTypeToGameObjectArrayFactory")]
[CreateAssetMenu(fileName = "NewItemTypeToGameObjectArrayFactory", menuName = "Genesis/Factory/ItemTypeToGameObjectArrayFactory")]
public sealed partial class ItemTypeToGameObjectArrayFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultItemTypeToGameObjectFactory", menuName = "Genesis/Factory/ItemTypeToGameObjectFactory")]
[CreateAssetMenu(fileName = "NewItemTypeToGameObjectFactory", menuName = "Genesis/Factory/ItemTypeToGameObjectFactory")]
public sealed partial class ItemTypeToGameObjectFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultItemTypeToListGameObjectFactory", menuName = "Genesis/Factory/ItemTypeToListGameObjectFactory")]
[CreateAssetMenu(fileName = "NewItemTypeToListGameObjectFactory", menuName = "Genesis/Factory/ItemTypeToListGameObjectFactory")]
public sealed partial class ItemTypeToListGameObjectFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultItemTypeToSpriteFactory", menuName = "Genesis/Factory/ItemTypeToSpriteFactory")]
[CreateAssetMenu(fileName = "NewItemTypeToSpriteFactory", menuName = "Genesis/Factory/ItemTypeToSpriteFactory")]
public sealed partial class ItemTypeToSpriteFactory : ScriptableObject
{
[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Genesis
{
[CreateAssetMenu(fileName = "DefaultPOCOSymbolObjectSymbolFactory", menuName = "Genesis/Factory/POCOSymbolObjectSymbolFactory")]
[CreateAssetMenu(fileName = "NewPOCOSymbolObjectSymbolFactory", menuName = "Genesis/Factory/POCOSymbolObjectSymbolFactory")]
public sealed partial class POCOSymbolObjectSymbolFactory : ScriptableObject
{
#if ODIN_INSPECTOR
Expand Down Expand Up @@ -67,7 +67,7 @@ public bool TryGetValue(string symbol, out ExampleContent.POCOSymbolObject value
{
value = null;

return MappingLookup.TryGetValue(symbol, out var mapping);
return MappingLookup.TryGetValue(symbol, out value);
}

#if ODIN_INSPECTOR
Expand Down

0 comments on commit 90f6cb5

Please sign in to comment.