Upgrades spawners to have parameters/properties and optimized timers (#6)

Upgrades spawners to have:
- [X] Parameter support
- [X] Property support
- [X] Optimized timers
- [X] Support for Proximity Spawners
- [X] Probabilities
This commit is contained in:
Kamron Batman 2018-02-20 22:33:25 -08:00 • committed by GitHub
parent 20ae1b3989
commit 1030bb7675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1043 additions and 735 deletions

View file

@ -27,6 +27,7 @@ namespace Server
Serial Serial{ get; }
Point3D Location{ get; }
Map Map{ get; }
void MoveToWorld(Point3D location, Map map);
bool Deleted { get; }
void Delete();
@ -105,6 +106,12 @@ namespace Server
}
}
public virtual void MoveToWorld(Point3D newLocation, Map map)
{
m_Location = newLocation;
m_Map = map;
}
public bool Deleted {
get {
return m_Deleted;
@ -119,4 +126,4 @@ namespace Server
{
}
}
}
}