-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OK Here we go. Now all we need is a better example
- Loading branch information
Ignacio Tampe
authored and
Ignacio Tampe
committed
Jul 19, 2020
1 parent
c5b8ea3
commit 7c93b10
Showing
51 changed files
with
724 additions
and
1,076 deletions.
There are no files selected for viewing
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,17 @@ | ||
using System; | ||
using System.IO; | ||
|
||
namespace Igtampe.BasicGraphics{ | ||
|
||
/// <summary>Holds a BasicGraphic from a file</summary> | ||
public class BasicGraphicFromFile:BasicGraphic { | ||
|
||
/// <summary>Generates a BasicGraphic item from a file</summary> | ||
public BasicGraphicFromFile(String Filename) { | ||
if(!File.Exists(Filename)) { throw new FileNotFoundException(); } | ||
Name = Filename; | ||
Contents = File.ReadAllLines(Filename); | ||
} | ||
|
||
} | ||
} |
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,16 @@ | ||
using System; | ||
|
||
namespace Igtampe.BasicGraphics { | ||
/// <summary>Holds a BasicGraphic from a Resource</summary> | ||
public class BasicGraphicFromResource:BasicGraphic { | ||
|
||
public BasicGraphicFromResource(byte[] Resource):this("Graphic From Resource",Resource) { } | ||
|
||
/// <summary>Generates a BasicGraphic item from a file</summary> | ||
public BasicGraphicFromResource(String Name, byte[] Resource) { | ||
this.Name = Name; | ||
Contents = GraphicUtils.ResourceToStringArray(Resource); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
//Look ma! No dependencies! | ||
|
||
namespace Igtampe.BasicGraphics.ExampleGraphics { | ||
/// <summary>A Cloud graphic, used for testing.</summary> | ||
public class Cloud:BasicGraphic { | ||
|
||
public Cloud() { | ||
|
||
string[] Cloud = { | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
"111111177771111111111111", | ||
"111117777777711111111111", | ||
"111177777777777777111111", | ||
"111777777777777777771111", | ||
"117777777777777777777711", | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
"111111111111111111111111", | ||
}; | ||
|
||
Contents = Cloud; | ||
Name = "Cloud Graphic"; | ||
} | ||
|
||
|
||
} | ||
} |
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 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,17 @@ | ||
using System; | ||
using System.IO; | ||
|
||
namespace Igtampe.BasicGraphics { | ||
/// <summary>Holds a HiColorGraphic from a file</summary> | ||
public class HiColorGraphicFromFile:HiColorGraphic { | ||
|
||
/// <summary>Generates a HiColorGraphic item from a file</summary> | ||
public HiColorGraphicFromFile(String Filename) { | ||
|
||
if(!File.Exists(Filename)) { throw new FileNotFoundException(); } | ||
Name = Filename; | ||
Contents = File.ReadAllLines(Filename); | ||
} | ||
} | ||
|
||
} |
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,17 @@ | ||
using System; | ||
|
||
namespace Igtampe.BasicGraphics { | ||
|
||
/// <summary>Holds a HiColorGraphic from a resource</summary> | ||
public class HiColorGraphicFromResource:HiColorGraphic { | ||
|
||
public HiColorGraphicFromResource(byte[] Resource) : this("Graphic From Resource",Resource) { } | ||
|
||
/// <summary>Generates a BasicGraphic item from a file</summary> | ||
public HiColorGraphicFromResource(String Name,byte[] Resource) { | ||
this.Name = Name; | ||
Contents = GraphicUtils.ResourceToStringArray(Resource); | ||
} | ||
|
||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.