public async Task <IObject> GetHotspotAsync(string maskPath, string hotspot, string [] sayWhenLook = null, string [] sayWhenInteract = null, string id = null) { _maskLoader = _maskLoader ?? _resolver.Container.Resolve <IMaskLoader>(); IMask mask = await _maskLoader.LoadAsync(maskPath, debugDrawColor : Colors.White, id : id ?? hotspot); if (mask == null) { return(new AGSObject(id ?? hotspot, _resolver)); } setMask(mask, hotspot, sayWhenLook, sayWhenInteract); return(mask.DebugDraw); }
public async Task <IObject> GetHotspotAsync(string maskPath, string hotspot, IRoom room = null, string[] sayWhenLook = null, string[] sayWhenInteract = null, string id = null) { id = id ?? $"{hotspot} {maskPath}"; _maskLoader = _maskLoader ?? _resolver.Container.Resolve <IMaskLoader>(); IMask mask = await _maskLoader.LoadAsync(maskPath, debugDrawColor : Colors.White, id : id); if (mask == null) { return(newAdventureObject(id)); } setMask(mask, hotspot, room, sayWhenLook, sayWhenInteract); return(mask.DebugDraw); }