Beispiel #1
0
        public Level(string playerID, int worldIndex = 0, int levelIndex = 0, bool firstChest = false, bool secondChest = false, string id = null)
        {
            this.playerID   = playerID;
            this.worldIndex = worldIndex;
            this.levelIndex = levelIndex;
            this.id         = id == null?PlayerDatas.GetUniqueID(playerID) : id;

            this.firstChest  = firstChest;
            this.secondChest = secondChest;
        }
Beispiel #2
0
        public RankedLevel(string playerID, int score, int nbrOfChest, string StartDay, string LastPlayedDate, string id = null)
        {
            this.playerID   = playerID;
            this.Score      = score;
            this.nbrOfChest = nbrOfChest;

            this.StartDay       = StartDay;
            this.LastPlayedDate = LastPlayedDate;

            this.id = id == null?PlayerDatas.GetUniqueID(playerID) : id;
        }
Beispiel #3
0
        public Squad(string playerID, string name, int level, string id = null)
        {
            this.name  = name;
            this.level = level;

            if (SquadPattern.GetSquadPattern(name, level) == null)
            {
                Debug.LogWarning("[Squad] No such squad in memory");
            }

            this.playerID = playerID;
            this.id       = id == null?PlayerDatas.GetUniqueID(playerID) : id;
        }
Beispiel #4
0
 public World(string playerID, string name, int worldIndex = 0, int nbrOfChests = 0, List <Level> levels = null, string id = null)
 {
     this.playerID    = playerID;
     this.name        = name;
     this.worldIndex  = worldIndex;
     this.nbrOfChests = nbrOfChests;
     this.levels      = levels == null ? new List <Level>() : levels;
     if (id != null)
     {
         this.id = id;
     }
     else
     {
         this.id = PlayerDatas.GetUniqueID(playerID);
     }
 }