Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TileObjectBaseModule.cs
Go to the documentation of this file.
3
4namespace Terraria.Modules;
5
7{
8 public int width;
9
10 public int height;
11
13
15
16 public int randomRange;
17
18 public bool flattenAnchors;
19
21
23 {
24 if (copyFrom == null)
25 {
26 width = 1;
27 height = 1;
30 randomRange = 0;
31 flattenAnchors = false;
33 return;
34 }
35 width = copyFrom.width;
36 height = copyFrom.height;
37 origin = copyFrom.origin;
38 direction = copyFrom.direction;
39 randomRange = copyFrom.randomRange;
40 flattenAnchors = copyFrom.flattenAnchors;
42 if (copyFrom.specificRandomStyles != null)
43 {
44 specificRandomStyles = new int[copyFrom.specificRandomStyles.Length];
45 copyFrom.specificRandomStyles.CopyTo(specificRandomStyles, 0);
46 }
47 }
48}
TileObjectBaseModule(TileObjectBaseModule copyFrom=null)