Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TexArray.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 
7 namespace TextureTools
8 {
9  class TexArray : TexImage
10  {
11  public List<TexImage> Array { get; internal set; }
12 
13  internal TexArray() : base()
14  {
15  Array = new List<TexImage>();
16  }
17 
18  public TexArray(List<TexImage> array)
19  {
20  Array = array;
21  }
22 
23  public override Object Clone(bool CopyMemory)
24  {
25  TexAtlas atlas = (TexAtlas)base.Clone(CopyMemory);
26 
27  atlas.Layout = new TexLayout();
28  foreach (KeyValuePair<string, TexLayout.Position> entry in Layout.TexList)
29  {
30  atlas.Layout.TexList.Add(entry.Key, entry.Value);
31  }
32 
33  return atlas;
34  }
The clone mixin to clone the current mixins where the clone is emitted.