RandomSpawnLocation() public method

public RandomSpawnLocation ( int spawnHeight, bool land, bool water ) : Point3D
spawnHeight int
land bool
water bool
return Point3D
		public override object Spawn( SpawnEntry entry )
		{
			Region region = entry.Region;
			Map map = region.Map;

			Point3D loc = entry.RandomSpawnLocation( this.Height, this.Land, this.Water );
			if ( loc == Point3D.Zero )
				return null;

			return Construct( entry, loc, map );
		}
示例#2
0
        public override ISpawnable Spawn(SpawnEntry entry)
        {
            Region region = entry.Region;
            Map    map    = region.Map;

            Point3D loc = entry.RandomSpawnLocation(this.Height, this.Land, this.Water);

            if (loc == Point3D.Zero)
            {
                return(null);
            }

            return(Construct(entry, loc, map));
        }
		public override ISpawnable Spawn( SpawnEntry entry )
		{
			Region region = entry.Region;
			Map map = region.Map;

			Point3D loc = entry.RandomSpawnLocation( this.Height, this.Land, this.Water );
			if ( loc == Point3D.Zero )
				return null;

			return Construct( entry, loc, map );
		}