コード例 #1
0
ファイル: CompressedBlock.cs プロジェクト: And-G/Magellan
 public CompressedBlock( int offset, int size, Lightmap parent )
 {
     this.parent = parent;
     this.offset = offset;
     this.size = size;
     this.data = null;
 }
コード例 #2
0
ファイル: CompressedBlock.cs プロジェクト: And-G/Magellan
        public CompressedBlock( Stream stream, int size, Lightmap parent  )
        {
            this.parent = parent;
            this.offset = (int)stream.Position;
            this.size = size;
            this.data = null;

            Read( stream );
        }
コード例 #3
0
ファイル: Map.cs プロジェクト: And-G/Magellan
        public Map( EU2.Install install )
            : base(install)
        {
            lightmaps = new Lightmap[5];

            lightmaps[0] = new Lightmap( 0, install.GetMapFile("lightmap1.tbl"), install );
            lightmaps[1] = new Lightmap( 1, install.GetMapFile("lightmap2.tbl"), install );
            lightmaps[2] = new Lightmap( 2, install.GetMapFile("lightmap3.tbl"), install );
            lightmaps[3] = new Lightmap( 4, install.GetMapFile("lightmap4.tbl"), install );
        }