Skip to content

Instantly share code, notes, and snippets.

@bsthomsen
Last active November 23, 2015 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsthomsen/3b8e78633f3648d616b0 to your computer and use it in GitHub Desktop.
Save bsthomsen/3b8e78633f3648d616b0 to your computer and use it in GitHub Desktop.
var threes = new List<Three>
{
new Three(ThreeType.Ferocity)
{
ThreeRows = new List<ThreeRow>()
{
new ThreeRow()
{
Priority = 0,
MaxPointsInRow = 5,
Masteries = new List<Mastery>()
{
new Mastery()
{
Position = Position.Left,
Name = "Mastery Name",
MaxPoints = 5
},
new Mastery()
{
Position = Position.Right,
Name = "Mastery Name",
MaxPoints = 5
}
}
},
new ThreeRow()
{
Priority = 0,
MaxPointsInRow = 1,
Masteries = new List<Mastery>()
{
new Mastery()
{
Position = Position.Left,
Name = "Mastery Name",
MaxPoints = 1
},
new Mastery()
{
Position = Position.Right,
Name = "Mastery Name",
MaxPoints = 1
}
}
},
new ThreeRow()
{
Priority = 0,
MaxPointsInRow = 5,
Masteries = new List<Mastery>()
{
new Mastery()
{
Position = Position.Left,
Name = "Mastery Name",
MaxPoints = 5
},
new Mastery()
{
Position = Position.Center,
Name = "Mastery Name",
MaxPoints = 5
},
new Mastery()
{
Position = Position.Right,
Name = "Mastery Name",
MaxPoints = 5
}
}
}
}
}
};
public enum ThreeType
{
Ferocity = 0,
Cunning = 1,
Resolve = 2
}
public enum Position
{
Left = 0,
Center = 1,
Right = 2
}
public class Three
{
public Three(ThreeType type)
{
ThreeType = type;
}
public ThreeType ThreeType { get; set; }
public List<ThreeRow> ThreeRows { get; set; }
}
public class ThreeRow
{
public int Priority { get; set; }
public int MaxPointsInRow { get; set; }
public List<Mastery> Masteries { get; set; }
}
public class Mastery
{
public string Name { get; set; }
public Position Position { get; set; }
public int Points { get; set; }
public int MaxPoints { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment