20 lines
708 B
C#
20 lines
708 B
C#
using NaughtyAttributes;
|
|
using UnityEngine;
|
|
|
|
namespace EscapeRoomEngine.Engine.Runtime.Modules
|
|
{
|
|
[CreateAssetMenu(menuName = "Modules/Puzzle")]
|
|
public class PuzzleModuleDescription : ModuleDescription
|
|
{
|
|
public string puzzleName;
|
|
[InfoBox("Puzzle measurements will only be combined for the same puzzle with the same version. If large changes are made to the puzzle that might influence its measurements, the version should be incremented.")]
|
|
public int puzzleVersion = 1;
|
|
|
|
public int Id => puzzleName.GetHashCode() + puzzleVersion;
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{puzzleName} v{puzzleVersion} ({Id})";
|
|
}
|
|
}
|
|
} |