public List <TextureInfo> getInfoTexture(string typeMap) { Debug.Assert(DoGAAtr.getIsValidNameTypeMap(typeMap)); if (!this.getHasInfoTexture(typeMap)) { return(null); } return(this.textures[typeMap]); }
public void addInfoTexture(string typeMap, TextureInfo infoTexture) { Debug.Assert(DoGAAtr.getIsValidNameTypeMap(typeMap)); Debug.Assert(typeMap == infoTexture.typeMap); if (this.getHasInfoTexture(typeMap)) { this.textures[typeMap].Add(infoTexture); } else { var infosTexture = new List <TextureInfo>(); infosTexture.Add(infoTexture); this.textures.Add(typeMap, infosTexture); } }
public bool getHasInfoTexture(string typeMap) { Debug.Assert(DoGAAtr.getIsValidNameTypeMap(typeMap)); return(this.textures.ContainsKey(typeMap) ? true : false); }