public bool IsSameLayout(SceneLayoutData other) { if (LayoutId != other.LayoutId) { return(false); } if (lightingId != other.lightingId || musicTrackId != other.musicTrackId) { return(false); } if (layout.Count != other.layout.Count) { return(false); } LayoutEnumerator layoutEnumerator = GetLayoutEnumerator(); foreach (DecorationLayoutData item in layoutEnumerator) { ParentedSet <string, DecorationLayoutData> parentedSet = other.layout; DecorationLayoutData.ID id = item.Id; if (!parentedSet.ContainsKey(id.GetFullPath())) { return(false); } ParentedSet <string, DecorationLayoutData> parentedSet2 = other.layout; id = item.Id; DecorationLayoutData other2 = parentedSet2.Get(id.GetFullPath()); if (!item.Equals(other2)) { return(false); } } return(true); }
public LayoutGameObjectsLoaded(Transform container, SceneLayoutData layout) { Container = container; Layout = layout; }