[longomatch] Add GameUnitsEnabler addin



commit 38a0ba3193e3eaafd774b3297a0644f50ca73602
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Dec 14 22:28:32 2011 +0100

    Add GameUnitsEnabler addin

 LongoMatch.Addins.COE/GameUnitsEnabler.cs       |   36 +++++++++++++++++++++++
 LongoMatch.Addins.COE/LongoMatch.Addins.COE.mdp |   24 +++++++++++++++
 LongoMatch.mds                                  |    4 ++
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Addins.COE/GameUnitsEnabler.cs b/LongoMatch.Addins.COE/GameUnitsEnabler.cs
new file mode 100644
index 0000000..767f9f8
--- /dev/null
+++ b/LongoMatch.Addins.COE/GameUnitsEnabler.cs
@@ -0,0 +1,36 @@
+// 
+//  Copyright (C) 2011 Andoni Morales Alastruey
+// 
+//  This program is free software; you can redistribute it and/or modify
+//  it under the terms of the GNU General Public License as published by
+//  the Free Software Foundation; either version 2 of the License, or
+//  (at your option) any later version.
+// 
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+//  GNU General Public License for more details.
+//  
+//  You should have received a copy of the GNU General Public License
+//  along with this program; if not, write to the Free Software
+//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+// 
+using System;
+using Mono.Addins;
+
+using LongoMatch;
+using LongoMatch.Addins.ExtensionPoints;
+
+[assembly:Addin]
+[assembly:AddinDependency ("LongoMatch", "1.0")]
+
+[Extension]
+public class GameUnitsEnabler: IConfigModifier
+{
+	public void ModifyConfig() {
+		LongoMatch.Config.useGameUnits = true;
+		Log.Information("Loading GameUnitsEnabler addin");
+		Log.Information("'useGameUnits' modified to " + LongoMatch.Config.useGameUnits);
+	}
+}
+
diff --git a/LongoMatch.Addins.COE/LongoMatch.Addins.COE.mdp b/LongoMatch.Addins.COE/LongoMatch.Addins.COE.mdp
new file mode 100644
index 0000000..fb89974
--- /dev/null
+++ b/LongoMatch.Addins.COE/LongoMatch.Addins.COE.mdp
@@ -0,0 +1,24 @@
+<Project name="LongoMatch.Addins.COE" fileversion="2.0" DefaultNamespace="LongoMatch.Addins.COE" language="C#" targetFramework="4.0" ctype="DotNetProject">
+  <Configurations active="Release">
+    <Configuration name="Debug" ctype="DotNetProjectConfiguration">
+      <Output directory="../bin" assembly="LongoMatch.Addins.COE" />
+      <Build debugmode="True" target="Library" />
+      <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" />
+      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
+    </Configuration>
+    <Configuration name="Release" ctype="DotNetProjectConfiguration">
+      <Output directory="../bin" assembly="LongoMatch.Addins.COE" />
+      <Build debugmode="False" target="Library" />
+      <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" />
+      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
+    </Configuration>
+  </Configurations>
+  <Contents>
+    <File subtype="Code" buildaction="Compile" name="GameUnitsEnabler.cs" />
+  </Contents>
+  <References>
+    <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.6.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
+    <ProjectReference type="Project" localcopy="True" refto="LongoMatch.Addins" />
+    <ProjectReference type="Project" localcopy="True" refto="LongoMatch.Core" />
+  </References>
+</Project>
\ No newline at end of file
diff --git a/LongoMatch.mds b/LongoMatch.mds
index 68d28fa..26745c4 100644
--- a/LongoMatch.mds
+++ b/LongoMatch.mds
@@ -26,6 +26,7 @@
       <Entry build="True" name="LongoMatch.Services" configuration="Debug" />
       <Entry build="True" name="LongoMatch.GUI.Multimedia" configuration="Debug" />
       <Entry build="True" name="LongoMatch.Addins" configuration="Debug" />
+      <Entry build="True" name="LongoMatch.Addins.COE" configuration="Debug" />
     </Configuration>
     <Configuration name="Release" ctype="CombineConfiguration">
       <Entry build="True" name="LongoMatch.GUI" configuration="Release" />
@@ -36,6 +37,7 @@
       <Entry build="True" name="LongoMatch.Services" configuration="Release" />
       <Entry build="True" name="LongoMatch.GUI.Multimedia" configuration="Release" />
       <Entry build="True" name="LongoMatch.Addins" configuration="Release" />
+      <Entry build="True" name="LongoMatch.Addins.COE" configuration="Release" />
     </Configuration>
   </Configurations>
   <StartMode startupentry="LongoMatchGtk" single="True">
@@ -47,6 +49,7 @@
     <Execute type="None" entry="LongoMatch.Services" />
     <Execute type="None" entry="LongoMatch.GUI.Multimedia" />
     <Execute type="None" entry="LongoMatch.Addins" />
+    <Execute type="None" entry="LongoMatch.Addins.COE" />
   </StartMode>
   <Entries>
     <Entry filename="LongoMatch.GUI/LongoMatch.GUI.mdp" />
@@ -57,5 +60,6 @@
     <Entry filename="LongoMatch.Services/LongoMatch.Services.mdp" />
     <Entry filename="LongoMatch.GUI.Multimedia/LongoMatch.GUI.Multimedia.mdp" />
     <Entry filename="LongoMatch.Addins/LongoMatch.Addins.mdp" />
+    <Entry filename="LongoMatch.Addins.COE/LongoMatch.Addins.COE.mdp" />
   </Entries>
 </Combine>
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]