forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpawnLocation.cs
More file actions
37 lines (33 loc) · 923 Bytes
/
Copy pathSpawnLocation.cs
File metadata and controls
37 lines (33 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using L2dotNET.Models.Zones;
namespace L2dotNET.Models.Npcs
{
public class SpawnLocation : Location
{
int _respawnDelay;
public int Heading { get; set; }
public int RespawnDelay {
get
{
return _respawnDelay;
}
set
{
_respawnDelay = value * 1000;
}
}
public SpawnLocation(int x, int y, int z,int heading, int respawnDelay) : base(x, y, z)
{
Heading = heading;
RespawnDelay = respawnDelay;
}
public SpawnLocation(SpawnLocation loc) : base(loc)
{
Heading = loc.Heading;
}
public override bool Equals(object obj)
{
SpawnLocation loc = obj as SpawnLocation;
return (loc?.X == X && loc?.Y == Y && loc?.Z == Z && loc.Heading == Heading);
}
}
}