|
|
@@ -10,6 +10,7 @@ using Svelto.ECS; |
|
|
|
using Svelto.Tasks; |
|
|
|
using Svelto.Tasks.Lean; |
|
|
|
using RobocraftX.Blocks; |
|
|
|
using RobocraftX.ScreenshotTaker; |
|
|
|
using TechbloxModdingAPI.Blocks; |
|
|
|
using TechbloxModdingAPI.Engines; |
|
|
|
using TechbloxModdingAPI.Utility; |
|
|
@@ -129,5 +130,14 @@ namespace TechbloxModdingAPI.App |
|
|
|
return blockEGIDs.ToArray(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void EnableScreenshotTaker() |
|
|
|
{ |
|
|
|
ref var local = ref entitiesDB.QueryEntity<ScreenshotModeEntityStruct>(ScreenshotTakerEgids.ScreenshotTaker); |
|
|
|
if (local.enabled) |
|
|
|
return; |
|
|
|
local.enabled = true; |
|
|
|
entitiesDB.PublishEntityChange<ScreenshotModeEntityStruct>(ScreenshotTakerEgids.ScreenshotTaker); |
|
|
|
} |
|
|
|
} |
|
|
|
} |