mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-25 02:13:32 +02:00
added target finding within box (thanks kjLotus!)
- added function to return position as Vector3 to Actor (todo: maybe we should just use the class instead of 3 separate floats?) - added function to return all actors in Area - actually added documentation to TargetFind stuff (kill me pls) - todo: actually test this..
This commit is contained in:
parent
4ed8f3e5e2
commit
1637bba167
4 changed files with 196 additions and 26 deletions
|
@ -368,6 +368,20 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
}
|
||||
}
|
||||
|
||||
// todo: for zones override this to seach contentareas (assuming flag is passed)
|
||||
public virtual List<Actor> GetAllActors()
|
||||
{
|
||||
lock (mActorList)
|
||||
{
|
||||
List<Actor> actorList = new List<Actor>(mActorList.Count);
|
||||
foreach (var actor in mActorList.Values)
|
||||
{
|
||||
actorList.Add(actor);
|
||||
}
|
||||
return actorList;
|
||||
}
|
||||
}
|
||||
|
||||
public void BroadcastPacketsAroundActor(Actor actor, List<SubPacket> packets)
|
||||
{
|
||||
foreach (SubPacket packet in packets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue