Пример #1
0
        public static string GetMechanicTypeString(MechanicType type)
        {
            switch (type)
            {
                case MechanicType.Lines:
                    return "LINES";
                case MechanicType.Match3:
                    return "MATCH 3";
                case MechanicType.SwipeLines:
                    return "SWIPE MATCH 3";
            }

            return string.Empty;
        }
Пример #2
0
 public override void ParseJson(JSONNode json)
 {
     MechanicType = (MechanicType)Enum.Parse(typeof(MechanicType), json["mechanic"].ToString().Replace("\"", ""));
     PlayfieldType = (PlayfieldType)Enum.Parse(typeof(PlayfieldType), json["playfield"].ToString().Replace("\"", ""));
 }
Пример #3
0
 void SetMechanicType(MechanicType mt = MechanicType.Match3)
 {
     mechanic = mt;
 }