LynnaLab.Room.GetMusicID C# (CSharp) Method

GetMusicID() public method

public GetMusicID ( ) : int
return int
        public int GetMusicID()
        {
            Stream file = Project.GetBinaryFile("audio/group" + (Index>>8) + "IDs.bin");
            file.Position = Index&0xff;
            return file.ReadByte();
        }

Usage Example

示例#1
0
    void SetRoom(Room room)
    {
        if (Project == null)
            return;
        roomeditor1.SetRoom(room);
        SetArea(room.Area);
        musicComboBox.Active = Project.MusicMapping.IndexOf((byte)room.GetMusicID());
        roomSpinButton.Value = room.Index;

        objectgroupeditor1.SetObjectGroup(room.GetObjectGroup());
    }