GraphPortChunkDecoder.UnpackTRIVERTEX C# (CSharp) 메소드

UnpackTRIVERTEX() 개인적인 메소드

private UnpackTRIVERTEX ( BufferChunk chunk ) : TRIVERTEX[]
chunk NewTOAPIA.BufferChunk
리턴 TRIVERTEX[]
    TRIVERTEX[] UnpackTRIVERTEX(BufferChunk chunk)
    {
        int nVertices = chunk.NextInt32();

        TRIVERTEX[] pVertex = new TRIVERTEX[nVertices];

        // Pack the vertices, starting with the length
        for (int i = 0; i < nVertices; i++)
        {
            pVertex[i].x = chunk.NextInt32();
            pVertex[i].y = chunk.NextInt32();
            pVertex[i].Alpha = chunk.NextUInt16();
            pVertex[i].Blue = chunk.NextUInt16();
            pVertex[i].Green = chunk.NextUInt16();
            pVertex[i].Red = chunk.NextUInt16();
        }

        return pVertex;
    }