コード例 #1
0
    public void TMU_Build_ShouldHaveSpecifics()
    {
        var node = new CGameCtnMediaClipBuilder().ForTMU().Build();

        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk03079003>());
        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk03079004>());
    }
コード例 #2
0
    public void TMUF_Build_ShouldHaveSpecifics()
    {
        var node = new CGameCtnMediaClipBuilder().ForTMUF()
                   .WithLocalPlayerClipEntIndex(1)
                   .Build();

        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk03079004>());
        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk03079005>());
        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk03079007>());
        Assert.Equal(expected: 1, actual: node.LocalPlayerClipEntIndex);
    }
コード例 #3
0
    public void TM2020_Build_ShouldHaveSpecifics()
    {
        var node = new CGameCtnMediaClipBuilder().ForTM2020()
                   .WithLocalPlayerClipEntIndex(1)
                   .StopsWhenRespawn()
                   .StopsWhenLeave()
                   .Build();

        Assert.NotNull(node.GetChunk <CGameCtnMediaClip.Chunk0307900D>());
        Assert.Equal(expected: 1, actual: node.LocalPlayerClipEntIndex);
        Assert.True(node.StopWhenRespawn);
        Assert.True(node.StopWhenLeave);
    }