public AreaTrigger(uint id, MapId mapId, float x, float y, float z, float radius, float boxLength, float boxWidth, float boxHeight, float boxYaw) { Id = id; ATId = (AreaTriggerId)Id; MapId = mapId; Position.X = x; Position.Y = y; Position.Z = z; Radius = radius; BoxLength = boxLength; BoxWidth = boxWidth; BoxHeight = boxHeight; BoxYaw = boxYaw; MaxDistSq = (Radius + tollerance) * (Radius + tollerance); }
public AreaTrigger(uint id, MapId mapId, float x, float y, float z, float radius, float boxLength, float boxWidth, float boxHeight, float boxYaw) { this.Id = id; this.ATId = (AreaTriggerId)this.Id; this.MapId = mapId; this.Position.X = x; this.Position.Y = y; this.Position.Z = z; this.Radius = radius; this.BoxLength = boxLength; this.BoxWidth = boxWidth; this.BoxHeight = boxHeight; this.BoxYaw = boxYaw; this.MaxDistSq = (float)(((double)this.Radius + 55.0) * ((double)this.Radius + 55.0)); }
public static AreaTrigger GetTrigger(AreaTriggerId id) { return AreaTriggers.Get((uint)id); }
public static AreaTrigger GetTrigger(AreaTriggerId id) { return(AreaTriggers.Get((uint)id)); }