49 public virtual void Update(
float dt) {
68 AnimatedBlocksTexture.Tag = blocksTexture.
Tag;
99 Display.RenderTarget = renderTarget;
100 Display.ScissorRectangle = scissorRectangle;
141 byte b = (byte)(255f * num5);
142 byte b2 = (byte)(255f * num6);
158 float num8 = 0f - num7 + 1f;
160 float num10 = 0f - num9 + 1f;
182 tc2 =
new Vector2(num7 + 1f, 1f);
202 tc2 =
new Vector2(num8 + 1f, 1f);
222 tc2 =
new Vector2(1f, num7 + 1f);
242 tc2 =
new Vector2(1f, num8 + 1f);
262 tc2 =
new Vector2(num9 + 1f, num10 + 1f);
281 tc =
new Vector2(num10, num10);
282 tc2 =
new Vector2(num10 + 1f, num10 + 1f);
302 tc2 =
new Vector2(num9 + 1f, num9 + 1f);
322 tc2 =
new Vector2(num10 + 1f, num9 + 1f);
359 byte b = (byte)(255f * num5);
360 byte b2 = (byte)(255f * num6);
376 float num8 = 0f - num7 + 1f;
378 float num10 = 0f - num9 + 1f;
400 tc2 =
new Vector2(num7 + 1f, 1f);
420 tc2 =
new Vector2(num8 + 1f, 1f);
440 tc2 =
new Vector2(1f, num7 + 1f);
460 tc2 =
new Vector2(1f, num8 + 1f);
480 tc2 =
new Vector2(num9 + 1f, num10 + 1f);
499 tc =
new Vector2(num10, num10);
500 tc2 =
new Vector2(num10 + 1f, num10 + 1f);
520 tc2 =
new Vector2(num9 + 1f, num9 + 1f);
540 tc2 =
new Vector2(num10 + 1f, num9 + 1f);
563 float num = m_animatedBlocksTexture.Width / 16;
564 int num2 = defaultTextureSlot % 16;
565 int num3 = defaultTextureSlot / 16;
566 m_screenSpaceFireRenderer.ParticleSize = 1f * num;
567 m_screenSpaceFireRenderer.ParticleSpeed = 1.9f * num;
568 m_screenSpaceFireRenderer.ParticlesPerSecond = 24f;
569 m_screenSpaceFireRenderer.MinTimeToLive =
float.PositiveInfinity;
570 m_screenSpaceFireRenderer.MaxTimeToLive =
float.PositiveInfinity;
571 m_screenSpaceFireRenderer.ParticleAnimationOffset = 1f;
572 m_screenSpaceFireRenderer.ParticleAnimationPeriod = 3f;
574 m_screenSpaceFireRenderer.Width = num;
575 m_screenSpaceFireRenderer.CutoffPosition = num3 * num;
578 return new Rectangle((
int)(num2 * num), (
int)(num3 * num), (
int)num, (
int)(num * 3f));
588 float s = m_animatedBlocksTexture.Width / 16f;
591 new Vector2(slotX + 1, slotY + 1) * s,
593 (tc1 + tcOffset) / 16f,
594 (tc2 + tcOffset) / 16f,
static readonly BlendState Opaque
static readonly BlendState AlphaBlend
static readonly DepthStencilState None
static void Clear(Vector4? color, float? depth=null, int? stencil=null)
static Rectangle ScissorRectangle
static RenderTarget2D RenderTarget
static readonly RasterizerState CullNone
static SamplerState PointClamp
void QueueQuad(Vector2 corner1, Vector2 corner2, float depth, Vector2 texCoord1, Vector2 texCoord2, Color color)
static float Remainder(float x, float y)
static int Min(int x1, int x2)
static bool PeriodicEvent(double period, double offset)
static int AnimatedTextureRefreshLimit
static bool TerrainMipmapsEnabled
virtual void Update(float dt)
RenderTarget2D m_animatedBlocksTexture
Texture2D AnimatedBlocksTexture
bool DisableTextureAnimation
double m_lastAnimateGameTime
void AnimateMagmaBlocksTexture()
PrimitivesRenderer2D m_primitivesRenderer
ScreenSpaceFireRenderer m_screenSpaceFireRenderer
void AnimateWaterBlocksTexture()
SubsystemTime m_subsystemTime
Rectangle AnimateFireBlocksTexture(float dt)
virtual void DrawBlocksTextureSlot(TexturedBatch2D batch, int slotX, int slotY, Vector2 tc1, Vector2 tc2, Vector2 tcOffset, Color color)
SubsystemBlocksTexture m_subsystemBlocksTexture
override void Load(ValuesDictionary valuesDictionary)
void Display_DeviceReset()
ValuesDictionary ValuesDictionary
static readonly Matrix Identity
static readonly Vector2 Zero
static readonly Vector2 One