projectEli/Assets/NeoFPS/Core/NeoSaveGames/Serialization/NeoSerializationKey.cs
2022-11-06 20:28:33 -05:00

26 lines
524 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace NeoSaveGames.Serialization
{
public struct NeoSerializationKey
{
private int value;
public bool isValid
{
get { return value != 0; }
}
public NeoSerializationKey(string key)
{
value = Animator.StringToHash(key);
}
public static implicit operator int(NeoSerializationKey key)
{
return key.value;
}
}
}