-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/feature/template-overhaul' into develop
- Loading branch information
Showing
74 changed files
with
1,300 additions
and
1,132 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
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
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,46 @@ | ||
using Microsoft.Xna.Framework; | ||
using Monofoxe.Engine.Drawing; | ||
using Monofoxe.Engine.EC; | ||
using Monofoxe.Engine.SceneSystem; | ||
using Monofoxe.Engine.Utils; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace $rootnamespace$ | ||
{ | ||
public class $safeitemname$ : Component | ||
{ | ||
|
||
|
||
public override void Initialize() | ||
{ | ||
|
||
} | ||
|
||
|
||
public override void FixedUpdate() | ||
{ | ||
|
||
} | ||
|
||
|
||
public override void Update() | ||
{ | ||
|
||
} | ||
|
||
|
||
public override void Draw() | ||
{ | ||
|
||
} | ||
|
||
|
||
public override void Destroy() | ||
{ | ||
|
||
} | ||
|
||
} | ||
} |
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,15 @@ | ||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"> | ||
<TemplateData> | ||
<Name>Monofoxe Component</Name> | ||
<Description>A component class for Monofoxe Engine.</Description> | ||
<ProjectType>CSharp</ProjectType> | ||
<DefaultName>Component.cs</DefaultName> | ||
<Icon>__TemplateIcon.png</Icon> | ||
<TemplateID>Monofoxe.Component</TemplateID> | ||
<AppliesTo>CSharp + SharedAssetsProject</AppliesTo> | ||
</TemplateData> | ||
<TemplateContent> | ||
<References /> | ||
<ProjectItem SubType="" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">Component.cs</ProjectItem> | ||
</TemplateContent> | ||
</VSTemplate> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,54 @@ | ||
using Microsoft.Xna.Framework; | ||
using Monofoxe.Engine.Drawing; | ||
using Monofoxe.Engine.EC; | ||
using Monofoxe.Engine.SceneSystem; | ||
using Monofoxe.Engine.Utils; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace $rootnamespace$ | ||
{ | ||
public class $safeitemname$ : Entity | ||
{ | ||
|
||
|
||
public $safeitemname$(Layer layer) : base(layer) | ||
{ | ||
|
||
} | ||
|
||
|
||
public override void FixedUpdate() | ||
{ | ||
base.FixedUpdate(); | ||
|
||
|
||
} | ||
|
||
|
||
public override void Update() | ||
{ | ||
base.Update(); | ||
|
||
|
||
} | ||
|
||
|
||
public override void Draw() | ||
{ | ||
base.Draw(); | ||
|
||
|
||
} | ||
|
||
|
||
public override void Destroy() | ||
{ | ||
base.Destroy(); | ||
|
||
|
||
} | ||
|
||
} | ||
} |
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,15 @@ | ||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"> | ||
<TemplateData> | ||
<Name>Monofoxe Entity</Name> | ||
<Description>An entity class for Monofoxe Engine.</Description> | ||
<ProjectType>CSharp</ProjectType> | ||
<DefaultName>Entity.cs</DefaultName> | ||
<Icon>__TemplateIcon.png</Icon> | ||
<TemplateID>Monofoxe.Entity</TemplateID> | ||
<AppliesTo>CSharp + SharedAssetsProject</AppliesTo> | ||
</TemplateData> | ||
<TemplateContent> | ||
<References /> | ||
<ProjectItem SubType="" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">Entity.cs</ProjectItem> | ||
</TemplateContent> | ||
</VSTemplate> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
using Microsoft.Xna.Framework; | ||
using Monofoxe.Engine.Drawing; | ||
using Monofoxe.Engine.EC; | ||
using Monofoxe.Engine.SceneSystem; | ||
using Monofoxe.Engine.Utils; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace $rootnamespace$ | ||
{ | ||
public class $safeitemname$ : IEntityTemplate | ||
{ | ||
public string Tag => "$itemname$"; | ||
|
||
public Entity Make(Layer layer) | ||
{ | ||
|
||
|
||
return null; | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
Templates/ItemTemplates/EntityTemplate/EntityTemplate.vstemplate
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,15 @@ | ||
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item"> | ||
<TemplateData> | ||
<Name>Monofoxe Entity Template</Name> | ||
<Description>An entity template class for Monofoxe Engine.</Description> | ||
<ProjectType>CSharp</ProjectType> | ||
<DefaultName>EntityTemplate.cs</DefaultName> | ||
<Icon>__TemplateIcon.png</Icon> | ||
<TemplateID>Monofoxe.EntityTemplate</TemplateID> | ||
<AppliesTo>CSharp + SharedAssetsProject</AppliesTo> | ||
</TemplateData> | ||
<TemplateContent> | ||
<References /> | ||
<ProjectItem SubType="" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">EntityTemplate.cs</ProjectItem> | ||
</TemplateContent> | ||
</VSTemplate> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.