RandomSpawnLocation() public méthode

public RandomSpawnLocation ( int spawnHeight, bool land, bool water ) : Point3D
spawnHeight int
land bool
water bool
Résultat 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 );
		}
Exemple #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 );
		}