├── W2Open.API
├── Views
│ ├── _ViewStart.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ └── _Layout.cshtml
│ ├── Home
│ │ └── Index.cshtml
│ └── Web.config
├── favicon.ico
├── Global.asax
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── Areas
│ └── HelpPage
│ │ ├── Views
│ │ ├── Help
│ │ │ ├── DisplayTemplates
│ │ │ │ ├── ImageSample.cshtml
│ │ │ │ ├── TextSample.cshtml
│ │ │ │ ├── SimpleTypeModelDescription.cshtml
│ │ │ │ ├── ComplexTypeModelDescription.cshtml
│ │ │ │ ├── CollectionModelDescription.cshtml
│ │ │ │ ├── InvalidSample.cshtml
│ │ │ │ ├── DictionaryModelDescription.cshtml
│ │ │ │ ├── KeyValuePairModelDescription.cshtml
│ │ │ │ ├── EnumTypeModelDescription.cshtml
│ │ │ │ ├── Samples.cshtml
│ │ │ │ ├── ModelDescriptionLink.cshtml
│ │ │ │ ├── ApiGroup.cshtml
│ │ │ │ ├── Parameters.cshtml
│ │ │ │ └── HelpPageApiModel.cshtml
│ │ │ ├── ResourceModel.cshtml
│ │ │ ├── Api.cshtml
│ │ │ └── Index.cshtml
│ │ ├── _ViewStart.cshtml
│ │ ├── Shared
│ │ │ └── _Layout.cshtml
│ │ └── Web.config
│ │ ├── ModelDescriptions
│ │ ├── SimpleTypeModelDescription.cs
│ │ ├── DictionaryModelDescription.cs
│ │ ├── CollectionModelDescription.cs
│ │ ├── ParameterAnnotation.cs
│ │ ├── EnumValueDescription.cs
│ │ ├── KeyValuePairModelDescription.cs
│ │ ├── IModelDocumentationProvider.cs
│ │ ├── ModelDescription.cs
│ │ ├── ComplexTypeModelDescription.cs
│ │ ├── EnumTypeModelDescription.cs
│ │ ├── ModelNameAttribute.cs
│ │ ├── ParameterDescription.cs
│ │ └── ModelNameHelper.cs
│ │ ├── SampleGeneration
│ │ ├── SampleDirection.cs
│ │ ├── TextSample.cs
│ │ ├── InvalidSample.cs
│ │ ├── ImageSample.cs
│ │ └── HelpPageSampleKey.cs
│ │ ├── HelpPageAreaRegistration.cs
│ │ ├── ApiDescriptionExtensions.cs
│ │ ├── Controllers
│ │ └── HelpController.cs
│ │ ├── HelpPage.css
│ │ ├── Models
│ │ └── HelpPageApiModel.cs
│ │ ├── App_Start
│ │ └── HelpPageConfig.cs
│ │ └── XmlDocumentationProvider.cs
├── App_Start
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ ├── WebApiConfig.cs
│ ├── BundleConfig.cs
│ ├── IdentityConfig.cs
│ └── Startup.Auth.cs
├── Content
│ └── Site.css
├── Startup.cs
├── Controllers
│ ├── HomeController.cs
│ └── ValuesController.cs
├── Global.asax.cs
├── Results
│ └── ChallengeResult.cs
├── Models
│ ├── AccountViewModels.cs
│ ├── IdentityModels.cs
│ └── AccountBindingModels.cs
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
├── Providers
│ └── ApplicationOAuthProvider.cs
├── packages.config
├── Web.config
└── Scripts
│ └── jquery.validate.unobtrusive.min.js
├── W2Open.Server
├── icon1.ico
├── packages.config
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Program.cs
├── ProcessSecTimer
│ └── MainSecTimer.cs
└── W2Open.Server.csproj
├── W2Open.GameState
├── packages.config
├── ERequestResult.cs
├── ProcessSecTimer
│ ├── SecTimer.cs
│ ├── ProcessImportUser.cs
│ ├── ProcessUpdateUser.cs
│ └── ProcessImportItem.cs
├── Properties
│ └── AssemblyInfo.cs
└── W2Open.GameState.csproj
├── W2Open.GameState.Plugin
├── packages.config
├── IGameStatePlugin.cs
├── Properties
│ └── AssemblyInfo.cs
├── PluginController.cs
├── DefaultPlayerRequestHandler
│ └── ProcessClientMessage.cs
└── W2Open.GameState.Plugin.csproj
├── W2Open.DataServer
├── PersistencyBasics.cs
├── Properties
│ └── AssemblyInfo.cs
└── W2Open.DataServer.csproj
├── W2Open.Common
├── packages.config
├── ProjectBasics.cs
├── Utility
│ ├── W2GenericExtensionMethods.cs
│ ├── W2Random.cs
│ ├── W2Log.cs
│ ├── CCompoundBuffer.cs
│ ├── ConfigServer.cs
│ └── W2Marshal.cs
├── GameBasics.cs
├── GameStructure
│ ├── Enuns.cs
│ └── MPacketHeader.cs
├── Properties
│ └── AssemblyInfo.cs
├── W2Open.Common.csproj
└── Defines.cs
├── config.json
├── README.md
├── .gitattributes
├── W2Open Code Project.sln
└── .gitignore
/W2Open.API/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/W2Open.API/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.API/favicon.ico
--------------------------------------------------------------------------------
/W2Open.Server/icon1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.Server/icon1.ico
--------------------------------------------------------------------------------
/W2Open.API/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="W2Open.API.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/W2Open.API/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.API/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/W2Open.API/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.API/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/W2Open.API/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.API/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/W2Open.API/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/seitbnao/W2-DataBase/HEAD/W2Open.API/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/W2Open.API/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml:
--------------------------------------------------------------------------------
1 | @using W2Open.API.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/W2Open.API/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml:
--------------------------------------------------------------------------------
1 | @using W2Open.API.Areas.HelpPage
2 | @model TextSample
3 |
4 |
5 | @Model.Text 6 |-------------------------------------------------------------------------------- /W2Open.GameState/packages.config: -------------------------------------------------------------------------------- 1 | 2 |
Sample not available.
13 | } -------------------------------------------------------------------------------- /W2Open.API/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace W2Open.API.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /W2Open.API/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace W2Open.API.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ServerName": "WYD", 3 | "IPAddrs": "127.0.0.1", 4 | "Port": 7514, 5 | "MYSQL_Server": "localhost", 6 | "MYSQL_DataBase": "wyd2pp", 7 | "MYSQL_User": "root", 8 | "MYSQL_Pass": "", 9 | "ChargedGuildList": { 10 | "Guild": [ 11 | 0, 12 | 0, 13 | 0, 14 | 0, 15 | 0 16 | ] 17 | }, 18 | "Sapphire": 8, 19 | "LastCapsule": 1 20 | } -------------------------------------------------------------------------------- /W2Open.API/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | -------------------------------------------------------------------------------- /W2Open.API/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |10 | @Html.ActionLink("Help Page Home", "Index") 11 |
12 |@Model.Documentation
16 |15 | @Html.ActionLink("Help Page Home", "Index") 16 |
17 |Possible enumeration values:
5 | 6 || Name | Value | Description |
|---|---|---|
| @value.Name | 15 |
16 | @value.Value 17 | |
18 |
19 | @value.Documentation 20 | |
21 |
Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |28 | Provide a general description of your APIs here. 29 |
30 |@controllerDocumentation
18 | } 19 || API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | 28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation 32 | } 33 | else 34 | { 35 |No documentation available. 36 | } 37 | |
38 |
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.
4 | 5 |ASP.NET Web API is a framework that makes it easy to build HTTP services that reach 10 | a broad range of clients, including browsers and mobile devices. ASP.NET Web API 11 | is an ideal platform for building RESTful applications on the .NET Framework.
12 | 13 |NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
17 | 18 |You can easily find a web hosting company that offers the right mix of features and price for your applications.
22 | 23 || Name | Description | Type | Additional information |
|---|---|---|---|
| @parameter.Name | 20 |
21 | @parameter.Documentation 22 | |
23 | 24 | @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription }) 25 | | 26 |
27 | @if (parameter.Annotations.Count > 0)
28 | {
29 | foreach (var annotation in parameter.Annotations)
30 | {
31 | @annotation.Documentation 32 | } 33 | } 34 | else 35 | { 36 |None. 37 | } 38 | |
39 |
None.
47 | } 48 | 49 | -------------------------------------------------------------------------------- /W2Open.API/Areas/HelpPage/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 |@description.Documentation
13 | 14 |@Model.RequestDocumentation
22 | 23 | @if (Model.RequestModelDescription != null) 24 | { 25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription }) 26 | if (Model.RequestBodyParameters != null) 27 | { 28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters") 29 | } 30 | } 31 | else 32 | { 33 |None.
34 | } 35 | 36 | @if (Model.SampleRequests.Count > 0) 37 | { 38 |@description.ResponseDescription.Documentation
47 | 48 | @if (Model.ResourceDescription != null) 49 | { 50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription }) 51 | if (Model.ResourceProperties != null) 52 | { 53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters") 54 | } 55 | } 56 | else 57 | { 58 |None.
59 | } 60 | 61 | @if (Model.SampleResponses.Count > 0) 62 | { 63 |