public c0000a8 m0000be() { c0000a8 ca = new c0000a8(); ca.m0003b8(this.m000298()); c0000ad.m0003bd(ca, this); for (int i = 0; i < ca.m000298().Meshes.Count; i++) { for (int j = 0; j < ca.m000298().Meshes[i].MeshParts.Count; j++) { ca.m000298().Meshes[i].MeshParts[j].Effect = this.m000298().Meshes[i].MeshParts[j].Effect; } } ca.f000006 = base.f000006; ca.m0002da(base.m00018e()); ca.f00083b = base.f00083b; ca.f00083c = base.f00083c; ca.m000264(base.m00015c()); ca.m0000c0(base.m000008()); ca.m0002d8(base.m00000c()); ca.f000066 = base.f000066; ca.f000068 = base.f000068; ca.f000144 = base.f000144; ca.m0001a2(base.m00017b()); ca.m000039(base.m00014b()); ca.m00003b(base.m00014c()); ca.m00013f(base.m00014d()); ca.f000067 = base.f000067; ca.f000143 = base.f000143; ca.f000145 = base.f000145; ca.m00033c(base.m00033b()); ca.f000031 = this.f000031; ca.f000033 = this.f000033; ca.f000035 = this.f000035; ca.f00087e.M11 = this.f000031; ca.f00087e.M22 = this.f000031; ca.f00087e.M33 = this.f000031; ca.f000037 = this.f000037; ca.f0000a4 = this.f0000a4; ca.f0000a5 = this.f0000a5; foreach (string str in this.f000880) { ca.f000880.Add(str); } ca.m000094(this.f000006); return ca; }
public void m00013b(c0000a8 p0, string p1) { p0.m000141(this.X); p0.m000142(this.Y); p0.m000143(this.Z); p0.m000025(this.RotationX); p0.m000029(this.RotationY); p0.m00002d(this.RotationZ); p0.m00025a(this.RelativeX); p0.m00025b(this.RelativeY); p0.m00025c(this.RelativeZ); p0.m000260(this.RelativeRotationX); p0.m000261(this.RelativeRotationY); p0.m000262(this.RelativeRotationZ); p0.m000375(this.ScaleX); p0.m000376(this.ScaleY); p0.m00025a(this.ScaleZ); p0.m00007f(this.Name); p0.f000170 = this.IsAutomaticallyUpdated; p0.m0000c0(this.CursorSelectable); for (int i = 0; i < this.ModelMeshSaves.Count; i++) { for (int j = 0; j < this.ModelMeshSaves[i].f00005b.Count; j++) { c0000b1 cb = this.ModelMeshSaves[i].f00005b[j]; if (!string.IsNullOrEmpty(cb.f000007)) { string str = cb.f000007; string path = c000091.m000084() + str; if (!File.Exists(path)) { str = c000091.m000129(str); if (!File.Exists(c000091.m000129(path) + ".xnb")) { throw new FileNotFoundException("Can't find either the .xnb or .fx of " + str); } p0.m000298().Meshes[i].MeshParts[j].Effect = c000074.m0000e6<Effect>(str, p1).Clone(c000074.m0000d4()); p0.m000298().Meshes[i].MeshParts[j].Tag = str; } else { p0.m000298().Meshes[i].MeshParts[j].Effect = c000074.m0000e6<Effect>(cb.f000007, p1).Clone(c000074.m0000d4()); p0.m000298().Meshes[i].MeshParts[j].Tag = cb.f000007; } } if (!string.IsNullOrEmpty(cb.f000006)) { Renderer.m00010c(p0.m000298().Meshes[i].MeshParts[j].Effect, c000074.m0000e6<Texture2D>(cb.f000006, p1)); } } } foreach (string str in this.ExtraFiles) { p0.m00008a().Add(c000091.m000084() + str); } }