public BoundingBox(IGameServerConnection gameServerConnection, BoundingBoxInfo boundingBoxInfo) { PlayersInArea = new List <Player>(); _playfield = gameServerConnection.GetPlayfield(boundingBoxInfo.Playfield); _rect = new Rect3( new Vector3(boundingBoxInfo.Rect.min.x, boundingBoxInfo.Rect.min.y, boundingBoxInfo.Rect.min.z), new Vector3(boundingBoxInfo.Rect.max.x, boundingBoxInfo.Rect.max.y, boundingBoxInfo.Rect.max.z)); }
public BoundingBox(Playfield playfield, Rect3 rect) { PlayersInArea = new List <Player>(); _playfield = playfield; _rect = rect; }