Search Results for

    Show / Hide Table of Contents

    Class CeVIOFileBase

    CCS / CCSTファイル管理基底クラス

    Inheritance
    object
    CeVIOFileBase
    CcsProject
    CcstTrack
    Implements
    ICeVIOFile
    Namespace: LibSasara.Model
    Assembly: LibSasara.dll
    Syntax
    public abstract class CeVIOFileBase : ICeVIOFile

    Constructors

    CeVIOFileBase(XDocument)

    コンストラクタ

    Declaration
    protected CeVIOFileBase(XDocument xml)
    Parameters
    Type Name Description
    XDocument xml

    CCS or CCSTの XDocument

    Fields

    rawXml

    元のCCS or CCSTのXDocument

    Declaration
    protected XDocument rawXml
    Field Value
    Type Description
    XDocument

    Properties

    AutherVersion

    ファイルを生成したツールのバージョン

    Declaration
    public Version? AutherVersion { get; }
    Property Value
    Type Description
    Version

    RawGroups

    生のGroup要素

    Declaration
    public List<XElement> RawGroups { get; }
    Property Value
    Type Description
    List<XElement>

    Methods

    AddGroup(Guid, Category, string, string, double, double, bool, bool, string)

    CeVIOのトラックを定義するGroup要素を追加する

    Declaration
    public void AddGroup(Guid groupId, Category category, string name, string castId = "Mixed", double volume = 0, double pan = 0, bool isSolo = false, bool isMuted = false, string language = "Japanaese")
    Parameters
    Type Name Description
    Guid groupId

    トラックGroupのGuid

    Category category

    トラックの種類

    string name

    トラック名

    string castId

    トラックのキャストID。複数キャストやキャストが居ない場合はMixed

    double volume

    トラックの音量

    double pan

    トラックのパン

    bool isSolo

    ソロ再生

    bool isMuted

    再生ミュート

    string language

    トラックの言語

    See Also
    AddGroup(XElement)
    TrackSet<TUnit>

    AddGroup(XElement)

    CeVIOのトラックを定義するGroup要素を追加する

    Declaration
    public void AddGroup(XElement group)
    Parameters
    Type Name Description
    XElement group

    追加するGroup要素

    See Also
    AddGroup(Guid, Category, string, string, double, double, bool, bool, string)
    TrackSet<TUnit>

    AddUnits(IEnumerable<XElement>)

    Unit要素リストを追加する

    Declaration
    public void AddUnits(IEnumerable<XElement> units)
    Parameters
    Type Name Description
    IEnumerable<XElement> units

    追加するUnit要素リスト

    DuplicateAndAddTrackSetAsync(Guid, Guid?)

    指定したIDのトラックデータセット(GroupとUnit)を複製・追加

    Declaration
    public ValueTask<(XElement group, List<XElement> units)> DuplicateAndAddTrackSetAsync(Guid targetId, Guid? newId = null)
    Parameters
    Type Name Description
    Guid targetId

    指定GroupのGUID

    Guid? newId

    新規GUID

    Returns
    Type Description
    ValueTask<(XElement group, List<XElement> units)>

    DuplicateTrackSetAsync(Guid, Guid?)

    指定したIDのトラックデータセット(GroupとUnit)を複製
    see also:DuplicateAndAddTrackSetAsync(Guid, Guid?)

    Declaration
    public ValueTask<(XElement group, List<XElement> units)> DuplicateTrackSetAsync(Guid targetId, Guid? newId = null)
    Parameters
    Type Name Description
    Guid targetId

    指定GroupのGUID

    Guid? newId

    新規GUID

    Returns
    Type Description
    ValueTask<(XElement group, List<XElement> units)>

    GetSongTuneRawParamters()

    Declaration
    public List<(string id, XElement param)> GetSongTuneRawParamters()
    Returns
    Type Description
    List<(string id, XElement param)>

    GetTrackSet(Guid)

    指定したIDのトラックデータセット(GroupとUnit)を取得

    Declaration
    public (XElement group, List<XElement> units) GetTrackSet(Guid id)
    Parameters
    Type Name Description
    Guid id

    指定ID

    Returns
    Type Description
    (XElement group, List<XElement> units)
    See Also
    GetTrackSet<T>(Guid)

    GetTrackSet<T>(Guid)

    指定したIDのトラックデータセット(GroupとUnit)を取得

    Declaration
    public TrackSet<T> GetTrackSet<T>(Guid id) where T : UnitBase
    Parameters
    Type Name Description
    Guid id

    指定ID

    Returns
    Type Description
    TrackSet<T>
    Type Parameters
    Name Description
    T
    See Also
    GetTrackSets<T>()

    GetTrackSets()

    トラックデータ(GroupとUnit)のリストを返す

    Declaration
    public List<(XElement group, List<XElement> units)> GetTrackSets()
    Returns
    Type Description
    List<(XElement group, List<XElement> units)>
    See Also
    GetTrackSets<T>()

    GetTrackSets<T>()

    Declaration
    public List<TrackSet<T>> GetTrackSets<T>() where T : UnitBase
    Returns
    Type Description
    List<TrackSet<T>>
    Type Parameters
    Name Description
    T

    GetUnits()

    Unit管理オブジェクトで返す

    Declaration
    public List<UnitBase> GetUnits()
    Returns
    Type Description
    List<UnitBase>

    GetUnits(Category)

    Unit管理オブジェクトで返す

    Declaration
    public List<UnitBase> GetUnits(Category category)
    Parameters
    Type Name Description
    Category category
    Returns
    Type Description
    List<UnitBase>

    GetUnitsRaw()

    ボイスアイテム一覧を返す

    Declaration
    public List<XElement> GetUnitsRaw()
    Returns
    Type Description
    List<XElement>

    GetUnitsRaw(Category)

    ボイスアイテム一覧を返す

    Declaration
    public List<XElement> GetUnitsRaw(Category category)
    Parameters
    Type Name Description
    Category category

    フィルタする分類

    Returns
    Type Description
    List<XElement>

    RemoveAllGroups()

    Group要素を全て削除する

    Declaration
    public void RemoveAllGroups()
    See Also
    AddGroup(XElement)
    AddGroup(Guid, Category, string, string, double, double, bool, bool, string)

    SaveAsync(string)

    ccs/ccstファイルを保存

    Declaration
    public ValueTask SaveAsync(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    ValueTask
    Remarks

    SaveAsync(ICeVIOFile, string, bool)

    Implements

    ICeVIOFile

    Extension Methods

    SasaraCcs.SaveAsync(ICeVIOFile, string, bool)
    In this article
    Back to top LibSasara