コード例 #1
0
ファイル: TypesManager.cs プロジェクト: arahis/LinesClient
        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
ファイル: BaseStructure.cs プロジェクト: arahis/LinesClient
 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;
 }