Aura.Channel.World.Dungeons.Props.Door.Door C# (CSharp) Méthode

Door() public méthode

Creates new door prop.
public Door ( int propId, int regionId, int x, int y, int direction, DungeonBlockType doorType, string name, string state = "open" ) : Aura.Channel.Network.Sending
propId int
regionId int
x int
y int
direction int Direction the door faces in, in degree.
doorType DungeonBlockType
name string
state string
Résultat Aura.Channel.Network.Sending
		public Door(int propId, int regionId, int x, int y, int direction, DungeonBlockType doorType, string name, string state = "open")
			: base(propId, regionId, x, y, direction, 1, 0, state, "", "")
		{
			this.Name = name;
			this.DoorType = doorType;
			this.BlockBoss = false;
			this.Behavior = this.DefaultBehavior;
			_isSwitchDoor = false;
			_closedFrom = new Position(x / Dungeon.TileSize, y / Dungeon.TileSize);

			// Set direction and adjust Y for boss doors
			if (doorType == DungeonBlockType.BossDoor)
			{
				this.Info.Direction = MabiMath.DirectionToRadian(0, 1);
				this.Info.Y += Dungeon.TileSize + Dungeon.TileSize / 2;
			}
			else
			{
				this.Info.Direction = MabiMath.DegreeToRadian(direction);
			}
		}