[longomatch] Add formation info for team templates



commit 18611cdab94127fcf6ffe561b03f0e13f8f6ee8e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue May 27 18:43:49 2014 +0200

    Add formation info for team templates

 LongoMatch.Core/Store/Templates/TeamTemplate.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Templates/TeamTemplate.cs b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
index bdd9ef4..338e882 100644
--- a/LongoMatch.Core/Store/Templates/TeamTemplate.cs
+++ b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
@@ -38,6 +38,12 @@ namespace LongoMatch.Store.Templates
                
                public TeamTemplate() {
                        TeamName = Catalog.GetString("Team");
+                       if (PlayingPlayers == 0) {
+                               PlayingPlayers = 11;
+                       }
+                       if (Formation == null) {
+                               Formation = new List<int>(new int[] {1, 4, 3, 3});
+                       }
                }
 
                public String Name {
@@ -68,6 +74,16 @@ namespace LongoMatch.Store.Templates
                        }
                }
                
+               public int PlayingPlayers {
+                       get;
+                       set;
+               } 
+               
+               public List<int> Formation {
+                       get;
+                       set;
+               }
+               
                public List<Player> PlayingPlayersList {
                        get {
                                return this.Where(p=>p.Playing).Select(p=>p).ToList();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]