private void performLoadProcedure() { List<string[]> npcNames = LocalisationMang.getBothNPCnames(); NPCgameNames = new string[npcNames.Count]; NPCserverNamesID = new Dictionary<string,int>(); characterLanguageAreas = new int[npcNames.Count] ; characterDifficulties = new List<int>[npcNames.Count]; //encounters = new Encounter[npcNames.Count]; for(int i = 0; i <npcNames.Count;i++){ NPCgameNames[i] = npcNames[i][0]; NPCserverNamesID[npcNames[i][1]] = i; characterDifficulties[i] = new List<int>(); } profile = WorldViewServerCommunication.userProfile.getLiteracyProfile().getDifficultiesDescription(); for(int lA = 0;lA<profile.getDifficulties().Length;lA++){ for(int diff = 0; diff<profile.getDifficulties()[lA].Length;diff++){ Difficulty difficulty = profile.getDifficulties()[lA][diff]; characterLanguageAreas[ NPCserverNamesID[difficulty.character] ] = lA; characterDifficulties[ NPCserverNamesID[difficulty.character] ].Add(diff); } } events = new EventsList(true); newsfeed = new NewsfeedList(true); //UnityEngine.GameObject poRef = PersistentObjMang.getInstance(); //DatastoreScript ds = poRef.GetComponent<DatastoreScript>(); }
public LiteracyProfile(string language) { trickyWords = new List<Word>(); userSeverities = new UserSeverities(language); problems = new DifficultiesDescription(language); }