コード例 #1
0
        public ComponentMineshaftCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1)
        {
            CoordBaseMode = par4;
            BoundingBox   = par3StructureBoundingBox;
            HasRails      = par2Random.Next(3) == 0;
            HasSpiders    = !HasRails && par2Random.Next(23) == 0;

            if (CoordBaseMode == 2 || CoordBaseMode == 0)
            {
                SectionCount = par3StructureBoundingBox.GetZSize() / 5;
            }
            else
            {
                SectionCount = par3StructureBoundingBox.GetXSize() / 5;
            }
        }
コード例 #2
0
 public ComponentVillagePathGen(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1)
 {
     CoordBaseMode      = par4;
     BoundingBox        = par3StructureBoundingBox;
     AverageGroundLevel = Math.Max(par3StructureBoundingBox.GetXSize(), par3StructureBoundingBox.GetZSize());
 }
コード例 #3
0
 public ComponentStrongholdCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1)
 {
     CoordBaseMode = par4;
     BoundingBox   = par3StructureBoundingBox;
     Field_35052_a = par4 != 2 && par4 != 0 ? par3StructureBoundingBox.GetXSize() : par3StructureBoundingBox.GetZSize();
 }