Skip to content
Browse files

initial commit

  • Loading branch information...
0 parents commit 9c6b18473f84169f7eb5e300b2c5db2a3757aeba Karl Seguin committed Oct 31, 2010
Showing with 241 additions and 0 deletions.
  1. +20 −0 .gitignore
  2. +55 −0 Mogade.Tests/Mogade.Tests.csproj
  3. +15 −0 Mogade.Tests/Properties/AssemblyInfo.cs
  4. +26 −0 Mogade.sln
  5. +49 −0 Mogade/Mogade.csproj
  6. +15 −0 Mogade/Properties/AssemblyInfo.cs
  7. +48 −0 README.textile
  8. +13 −0 license.txt
20 .gitignore
@@ -0,0 +1,20 @@
+TestResult.xml
+Tests.VisualState.xml
+[Bb]in
+[Oo]bj
+[Rr]elease
+[Dd]ebug
+*.bak
+*.manifest
+*.exe
+*.dll
+*.pdb
+*.cache
+*.suo
+*.orig
+*.user
+.svn
+_ReSharper*
+.DS_Store
+*.usertasks
+*.userprefs
55 Mogade.Tests/Mogade.Tests.csproj
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C52F53E2-55D7-4627-967C-937700C4A20A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mogade.Tests</RootNamespace>
+ <AssemblyName>Mogade.Tests</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="Microsoft.CSharp" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Mogade\Mogade.csproj">
+ <Project>{B1BF8760-7C28-410E-813E-AC86514B2C8A}</Project>
+ <Name>Mogade</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
15 Mogade.Tests/Properties/AssemblyInfo.cs
@@ -0,0 +1,15 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Mogade.NET Tests")]
+[assembly: AssemblyDescription("Tests for Mogade.com's Official .NET Library")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Mogade")]
+[assembly: AssemblyProduct("Mogade.NET")]
+[assembly: AssemblyCopyright("Copyright © Mogade 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+[assembly: Guid("c6f54d52-3824-431a-af9d-3e531a862d92")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
26 Mogade.sln
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mogade", "Mogade\Mogade.csproj", "{B1BF8760-7C28-410E-813E-AC86514B2C8A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mogade.Tests", "Mogade.Tests\Mogade.Tests.csproj", "{C52F53E2-55D7-4627-967C-937700C4A20A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B1BF8760-7C28-410E-813E-AC86514B2C8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B1BF8760-7C28-410E-813E-AC86514B2C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B1BF8760-7C28-410E-813E-AC86514B2C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B1BF8760-7C28-410E-813E-AC86514B2C8A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C52F53E2-55D7-4627-967C-937700C4A20A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C52F53E2-55D7-4627-967C-937700C4A20A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C52F53E2-55D7-4627-967C-937700C4A20A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C52F53E2-55D7-4627-967C-937700C4A20A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
49 Mogade/Mogade.csproj
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{B1BF8760-7C28-410E-813E-AC86514B2C8A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mogade</RootNamespace>
+ <AssemblyName>Mogade</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="Microsoft.CSharp" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
15 Mogade/Properties/AssemblyInfo.cs
@@ -0,0 +1,15 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Mogade.NET")]
+[assembly: AssemblyDescription("Mogade.com's Official .NET Library")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Mogade")]
+[assembly: AssemblyProduct("Mogade.NET")]
+[assembly: AssemblyCopyright("Copyright © Mogade 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+[assembly: Guid("dbc3f308-ac79-4279-916f-2ba1b8b42e08")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
48 README.textile
@@ -0,0 +1,48 @@
+h2. Mogade For .NET
+
+Mogade is a free service web-based service which allows game developers to quickly enchance their games with auxiliary functionality (such as leaderboards).
+
+This is the official .NET library - which is meant not only to be used within games, but also to serve as the basis for platform specific implementations. Developers interested in building a library for their own language will hopefully find this library to be decent documentation of the mogade API.
+
+h3. Other Libraries
+
+For a list of other libraries, please visit "http://mogade.com/libraries":http://mogade.com/libraries
+
+h3. Support
+
+The "http://groups.google.com/group/mogadedev":http://groups.google.com/group/mogadedev google group is the best place for developers, either of games or libraries, to visit.
+
+h3. Usage
+
+Coming soon
+
+h3. API Overview
+
+Mogade is based around a _RESTish_ API, accepting and returning JSON messages. All message into the mogade service require at least 3 parameters:
+
+* v - the api version (currently set to 1)
+* key - the game key (which developers get when they create a game at "http://mogade.com":http://mogade.com)
+* sig - an md5 signature of the parameters including the game's secret key (also received from the website)
+
+A request to save a score might look something like:
+<pre>
+PUT http://api.mogade.com/api/scores
+{
+ key: '4cc3cb835346ed081f00003e',
+ v: 1,
+ sig: '97773672963b1f4c6160f31afd25da97',
+ leaderboard_id:'4cc425bf5346ed081f0000ee',
+ score:
+ {
+ username: 'goku',
+ points: 9001
+ }
+}
+</pre>
+
+In this case, the response might yield something along the lines of:
+<pre>
+{ daily: 10; weekly: 239: overall: 3044}
+</pre>
+
+Which are the daily, weekly and overall ranks for a score of 9001 for the specified leaderboard
13 license.txt
@@ -0,0 +1,13 @@
+Copyright 2010 Karl Seguin
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.

0 comments on commit 9c6b184

Please sign in to comment.
Something went wrong with that request. Please try again.