-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BlurOne-GIT/develop
Port to new MmgEngine
- Loading branch information
Showing
56 changed files
with
2,564 additions
and
3,302 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.Graphics; | ||
using MmgEngine; | ||
|
||
namespace Logical.Blocks; | ||
|
||
public abstract class Block : SimpleImage | ||
{ | ||
#region Fields | ||
public readonly byte FileValue; | ||
public readonly bool HasArgument = false; | ||
public readonly byte Argument; | ||
protected Point Pos; | ||
#endregion | ||
|
||
public Block(Game game, Texture2D texture2D, Point arrayPosition, byte xx, byte yy = 0) | ||
: base( | ||
game, | ||
texture2D, | ||
new Vector2(16 + arrayPosition.X * 36, 46 + arrayPosition.Y * 36), | ||
0 | ||
) | ||
{ | ||
Pos = arrayPosition; | ||
FileValue = xx; | ||
|
||
if (yy == 0) | ||
return; | ||
|
||
HasArgument = false; | ||
Argument = yy; | ||
} | ||
} | ||
|
||
public interface IReloadable | ||
{ | ||
public void Reload(Block[,] blocks); | ||
} | ||
|
||
public interface IOverlayable | ||
{ | ||
public IEnumerable<DrawableGameComponent> GetOverlayables(); | ||
} |
Oops, something went wrong.