Candide.DebugTools.Timelapse.GameTimelapseManager
Type JSONpublic class in Candide.DebugTools.Timelapse
Type metadata
- Assembly
Romestead - Namespace
Candide.DebugTools.Timelapse - Base type
System.Object - Hash
26B81504691E81D800CB4BB0862A687BF2DCE9FD33D46E81D3F2DBCB65C45599
Relationships
Base type
System.Object
Properties
| Name | Visibility | Signature |
|---|---|---|
LastShot# | public | public System.DateTime LastShot |
Methods
ImageFromRawBgraArray
#
private System.Drawing.Image ImageFromRawBgraArray(System.Byte[] arr, System.Int32 arrSize, System.Int32 width, System.Int32 height)
Method metadata
- Visibilityprivate
- Return type
System.Drawing.Image - StaticTrue
- VirtualFalse
- Hash
4F5561CBEDEACECBD5936449F2B807875BBDA27E013E6561FEB40BFE0A930265 - Body hash
E2D24B12554361015F7FD90849E049E1551DC94D64A7601F68816BB8FF84654A - IL size54
Referenced calls
System.Drawing.Bitmap::.ctor(System.Int32, System.Int32)System.Drawing.Rectangle::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)System.Drawing.Image::get_PixelFormat()System.Drawing.Bitmap::LockBits(System.Drawing.Rectangle, System.Drawing.Imaging.ImageLockMode, System.Drawing.Imaging.PixelFormat)System.Drawing.Imaging.BitmapData::get_Scan0()System.Runtime.InteropServices.Marshal::Copy(System.Byte[], System.Int32, System.IntPtr, System.Int32)System.Drawing.Bitmap::UnlockBits(System.Drawing.Imaging.BitmapData)
ImageFromRawBgraArray
#
private System.Drawing.Image ImageFromRawBgraArray(System.Byte[] arr, System.Int32 width, System.Int32 height, System.Drawing.Imaging.PixelFormat pixelFormat)
Method metadata
- Visibilityprivate
- Return type
System.Drawing.Image - StaticTrue
- VirtualFalse
- Hash
E645B260119C81A16CE7A6C657C2334970BB2918F92B0B86D08A0A12B03097FE - Body hash
5BD18D1A7F3BBEBC1524B78585EEBA10CE9A381E85412B28DBAAC1E3DFC634FB - IL size109
Referenced calls
System.Drawing.Bitmap::.ctor(System.Int32, System.Int32, System.Drawing.Imaging.PixelFormat)System.Drawing.Rectangle::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)System.Drawing.Image::get_PixelFormat()System.Drawing.Bitmap::LockBits(System.Drawing.Rectangle, System.Drawing.Imaging.ImageLockMode, System.Drawing.Imaging.PixelFormat)System.Drawing.Image::GetPixelFormatSize(System.Drawing.Imaging.PixelFormat)System.Drawing.Imaging.BitmapData::get_Scan0()System.Runtime.InteropServices.Marshal::Copy(System.Byte[], System.Int32, System.IntPtr, System.Int32)System.Drawing.Imaging.BitmapData::get_Stride()System.Drawing.Bitmap::UnlockBits(System.Drawing.Imaging.BitmapData)
SaveImage
#
private System.Void SaveImage(System.String filePath, System.Byte[] screenData, System.Int32 dataSize, System.Int32 width, System.Int32 height)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
9AE843DCFB51E4233898BC1D4A72D4482954A7D525CCA2D8E73727FB01BF8A43 - Body hash
CBD3AEE545F1C166408875B525B9DA89D0C2F628695B8CE3B028B23F80B59C03 - IL size55
Referenced calls
Candide.DebugTools.Timelapse.GameTimelapseManager::SwapRandB(System.Byte[], System.Int32)Candide.DebugTools.Timelapse.GameTimelapseManager::ImageFromRawBgraArray(System.Byte[], System.Int32, System.Int32, System.Int32)System.Buffers.ArrayPool<System.Byte>::get_Shared()System.Buffers.ArrayPool<System.Byte>::Return(!0[], System.Boolean)System.Drawing.Imaging.ImageFormat::get_Png()System.Drawing.Image::Save(System.String, System.Drawing.Imaging.ImageFormat)System.IDisposable::Dispose()
Screenshot
#
public System.Void Screenshot(System.String subFolder, Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
622E98DF2A7F2312263E704B4DC4FC694A1CDC0A62297CF6EF5D395E16739BA1 - Body hash
EB5D6F6E94D8924DC93D2B3301850918B587B2A4DB525CDF58C683E047CDD270 - IL size204
Referenced calls
GameTimelapseManager.<>c__DisplayClass5_0::.ctor()Candide.UserSettings.TimelapseUserSettings::get_TimelapseDirectory()System.IO.Path::Combine(System.String, System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.DateTime::get_Now()System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0, System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()System.IO.Directory::CreateDirectory(System.String)Microsoft.Xna.Framework.Graphics.GraphicsDevice::get_PresentationParameters()Microsoft.Xna.Framework.Graphics.PresentationParameters::get_BackBufferWidth()Microsoft.Xna.Framework.Graphics.PresentationParameters::get_BackBufferHeight()System.Buffers.ArrayPool<System.Byte>::get_Shared()System.Buffers.ArrayPool<System.Byte>::Rent(System.Int32)Microsoft.Xna.Framework.Graphics.GraphicsDevice::GetBackBufferData(!!0[], System.Int32, System.Int32)GameTimelapseManager.<>c__DisplayClass5_0::<Screenshot>b__0()System.Action::.ctor(System.Object, System.IntPtr)System.Threading.Tasks.Task::Run(System.Action)
String literals
yyyy-MM-ddTHH-mm-ss.png
SwapRandB
#
private System.Void SwapRandB(System.Byte[] rgba, System.Int32 arrSize)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
DE328DE1A1B5E70BC66E1984AA1F50C4E57E7F4C6270145F011F3FB726FD84B2 - Body hash
2A651C5536A62D6BFA3221974937EA1EE404EC64B061B1BFC1F3AB0C101224B2 - IL size61
Update
#
public System.Void Update()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A5E6FBA46C9C3C8AC786D062972D3351B462D7D712AC51C18F422CBB54DB7A3F - Body hash
FBC2B95F6FE09CB8C5F1548B26B338771E9D8264E919280D0C681DE586554AB8 - IL size148
Referenced calls
Candide.UserSettings.TimelapseUserSettings::get_TimelapseEnabled()Candide.UserSettings.TimelapseUserSettings::get_TimelapseDirectory()System.String::IsNullOrWhiteSpace(System.String)System.IO.Directory::Exists(System.String)Candide.UserSettings.TimelapseUserSettings::get_TimelapseTime()System.TimeSpan::op_Equality(System.TimeSpan, System.TimeSpan)System.DateTime::get_UtcNow()Candide.DebugTools.Timelapse.GameTimelapseManager::get_LastShot()System.DateTime::op_Subtraction(System.DateTime, System.DateTime)System.TimeSpan::op_LessThan(System.TimeSpan, System.TimeSpan)Candide.Scene.GameScene::get_IsActive()Candide.DebugTools.Timelapse.GameTimelapseManager::set_LastShot(System.DateTime)Candide.DebugTools.Timelapse.GameTimelapseManager::Screenshot(System.String, Microsoft.Xna.Framework.Graphics.GraphicsDevice)
Called by
String literals
ingame