private void OnRawTextureLoaded(TextureLoadedEventArgs obj) { if (obj.Image is Image <Rgba32> rgba) { _textureMaps[obj.Resource] = ClickMap.FromImage(rgba, Threshold); } }
private void OnOnRsiLoaded(RsiLoadedEventArgs obj) { if (obj.Atlas is Image <Rgba32> rgba) { var clickMap = ClickMap.FromImage(rgba, Threshold); var rsiData = new RsiClickMapData(clickMap, obj.AtlasOffsets); _rsiMaps[obj.Resource.RSI] = rsiData; } }