Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General-purpose Intern Meta #481

Merged
merged 6 commits into from
Jun 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Data/Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Compile Remove="Migrations\20190111053724_EventId.cs" />
<Compile Remove="Migrations\20190111053724_EventId.Designer.cs" />
<Compile Remove="Migrations\20190214050904_CheatsAndWhistles.cs" />
<Compile Remove="Migrations\20190606021837_PieceMetaUsage.cs" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 12 additions & 0 deletions Data/DataModel/Puzzle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

namespace ServerCore.DataModel
{
public enum PieceMetaUsage
{
None,
GroupOnly,
EntireEvent
}

/// <summary>
/// A Puzzle is the record of a solvable puzzle in the database
/// Sometimes a Puzzle is used as a workaround for things like time prerequisites
Expand Down Expand Up @@ -188,6 +195,11 @@ public Puzzle (Puzzle source)
/// </summary>
public string Description { get; set; }

/// <summary>
/// Determines whether the puzzle can use the basic piece-driven meta.
/// </summary>
public PieceMetaUsage PieceMetaUsage { get; set; }

//
// WARNING: If you add new properties add them to the constructor as well so importing will work.
//
Expand Down
Loading