public bool FindTexture(FoamTextureType Type, out FoamTexture Tex) { for (int i = 0; i < Textures.Length; i++) { if (Textures[i].Type == Type) { Tex = Textures[i]; return(true); } } Tex = new FoamTexture(); return(false); }
public void AddTexture(FoamTexture Tex) { Utils.Append(ref Textures, Tex); }