Beispiel #1
0
 public PlayerViewModel(PlayerFullDataModel playerModel, string iconPath)
 {
     this.Id       = playerModel.Id;
     this.Name     = playerModel.Name;
     this.IconPath = iconPath;
     this.UpdateHistory(this.Name + " initialised");
     this.Resources = ResourceClutch.Zero;
     this.UpdateResourceText();
 }
Beispiel #2
0
        public PlayerDataBase GetDataModel(bool provideFullPlayerData)
        {
            PlayerDataBase result = null;

            if (provideFullPlayerData)
            {
                result = new PlayerFullDataModel(this);
            }
            else
            {
                result = new PlayerDataModel(this);
            }

            return(result);
        }