HandsomeMatt pull request accepted
This commit is contained in:
parent
9a32b3afdd
commit
f511c36ad3
|
@ -51,15 +51,15 @@ namespace StardewModdingAPI.Inheritance
|
||||||
Program.Log("XNA Initialize");
|
Program.Log("XNA Initialize");
|
||||||
ModItems = new Dictionary<Int32, SObject>();
|
ModItems = new Dictionary<Int32, SObject>();
|
||||||
PreviouslyPressedKeys = new Keys[0];
|
PreviouslyPressedKeys = new Keys[0];
|
||||||
Events.InvokeInitialize();
|
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
|
Events.InvokeInitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadContent()
|
protected override void LoadContent()
|
||||||
{
|
{
|
||||||
Program.Log("XNA LoadContent");
|
Program.Log("XNA LoadContent");
|
||||||
Events.InvokeLoadContent();
|
|
||||||
base.LoadContent();
|
base.LoadContent();
|
||||||
|
Events.InvokeLoadContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update(GameTime gameTime)
|
protected override void Update(GameTime gameTime)
|
||||||
|
@ -97,16 +97,16 @@ namespace StardewModdingAPI.Inheritance
|
||||||
if (CurrentLocation != null)
|
if (CurrentLocation != null)
|
||||||
CurrentLocation.update(gameTime);
|
CurrentLocation.update(gameTime);
|
||||||
|
|
||||||
Events.InvokeUpdateTick();
|
|
||||||
base.Update(gameTime);
|
base.Update(gameTime);
|
||||||
|
Events.InvokeUpdateTick();
|
||||||
|
|
||||||
PreviouslyPressedKeys = CurrentlyPressedKeys;
|
PreviouslyPressedKeys = CurrentlyPressedKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Draw(GameTime gameTime)
|
protected override void Draw(GameTime gameTime)
|
||||||
{
|
{
|
||||||
Events.InvokeDrawTick();
|
|
||||||
base.Draw(gameTime);
|
base.Draw(gameTime);
|
||||||
|
Events.InvokeDrawTick();
|
||||||
spriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, SamplerState.PointClamp, (DepthStencilState)null, (RasterizerState)null);
|
spriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, SamplerState.PointClamp, (DepthStencilState)null, (RasterizerState)null);
|
||||||
if (CurrentLocation != null)
|
if (CurrentLocation != null)
|
||||||
CurrentLocation.draw(Game1.spriteBatch);
|
CurrentLocation.draw(Game1.spriteBatch);
|
||||||
|
|
Loading…
Reference in New Issue