Example #1
0
 public void SetRegion(MSBS.Region.Sound region)
 {
     setBaseRegion(region);
     SoundType        = region.SoundType;
     SoundID          = region.SoundID;
     ChildRegionNames = region.ChildRegionNames;
     UnkT48           = region.UnkT48;
 }
Example #2
0
    public MSBS.Region.Sound Serialize(GameObject parent)
    {
        var region = new MSBS.Region.Sound();

        _Serialize(region, parent);
        region.SoundType = SoundType;
        region.SoundID   = SoundID;
        for (int i = 0; i < 16; i++)
        {
            if (i >= ChildRegionNames.Length)
            {
                break;
            }
            region.ChildRegionNames[i] = (ChildRegionNames[i] == "") ? null : ChildRegionNames[i];
        }
        region.UnkT48 = UnkT48;
        return(region);
    }