Esempio n. 1
0
        public static List <PersistedCharacterData> CreateCharacterDataList()
        {
            var data = new List <PersistedCharacterData>();

            foreach (CharacterType characterType in Enum.GetValues(typeof(CharacterType)))
            {
                var characterData = new PersistedCharacterData(characterType)
                {
                    CharacterComponent =
                    {
                        Unlocked            = true,
                        LastSelectedLoadout =    0,
                        CharacterLoadouts   = new List <CharacterLoadout>()
                        {
                            PlayerUtils.GetLoadout(0, characterType)
                        },
                        Skins                            = new List <PlayerSkinData>()
                        {
                            new PlayerSkinData()
                            {
                                Unlocked = true,
                                Patterns = new List <PlayerPatternData>()
                                {
                                    new PlayerPatternData()
                                    {
                                        Colors           = new List <PlayerColorData>()
                                        {
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            },
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            },
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            },
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            }
                                        },
                                        Unlocked         = true,
                                    },
                                    new PlayerPatternData()
                                    {
                                        Colors           = new List <PlayerColorData>()
                                        {
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            },
                                            new PlayerColorData()
                                            {
                                                Unlocked = true
                                            }
                                        },
                                        Unlocked         = true,
                                    }
                                }
                            }
                        }
                    }
                };
                data.Add(characterData);
            }

            return(data);
        }