public void SetRegion(MSB3.Region.Sound region) { setBaseRegion(region); SoundType = region.SoundType; SoundID = region.SoundID; ChildRegionNames = region.ChildRegionNames; }
public MSB3.Region.Sound Serialize(GameObject parent) { var region = new MSB3.Region.Sound(ID, parent.name); _Serialize(region, parent); region.SoundID = SoundID; region.SoundType = SoundType; for (int i = 0; i < 16; i++) { if (i >= ChildRegionNames.Length) { break; } region.ChildRegionNames[i] = (ChildRegionNames[i] == "") ? null : ChildRegionNames[i]; } return(region); }
public override MSB3.Region Serialize(GameObject parent) { var region = new MSB3.Region.Sound(parent.name); _Serialize(region, parent); region.SoundID = SoundID; region.SoundType = SoundType; for (int i = 0; i < 16; i++) { if (i >= ChildRegionNames.Length) { region.ChildRegionNames[i] = null; continue; } region.ChildRegionNames[i] = (ChildRegionNames[i] == "") ? null : ChildRegionNames[i]; } return(region); }