コード例 #1
0
ファイル: Subsector.cs プロジェクト: VenoMpie/DoomSharp
 public Subsector(World world,Sector sector)
 {
     if (world == null)
         throw new ArgumentNullException("world");
     if (sector == null)
         throw new ArgumentNullException("sector");
     if (sector.World != world)
         throw new ArgumentException("Sector is from another world.");
     this.world = world;
     this.sector = sector;
     this.segs = new List<Seg>();
 }
コード例 #2
0
ファイル: Sidedef.cs プロジェクト: VenoMpie/DoomSharp
 public Sidedef(World world,Sector sector)
 {
     if (world == null)
         throw new ArgumentNullException("world");
     if (sector == null)
         throw new ArgumentNullException("sector");
     if (sector.World != world)
         throw new ArgumentException("Sector is from another world.");
     this.world = world;
     // TODO :: sector
     // TODO :: xoffset
     // TODO :: yoffset
 }