Skip to content

Commit b933e41

Browse files
committed
开源多端共享工程FirCommon
1 parent 6ff498d commit b933e41

49 files changed

Lines changed: 108904 additions & 344 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
30 KB
Binary file not shown.

FirClient/Assets/Plugins/FirCommon.dll.meta

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FirClient/Assets/Scripts/Data/CommonClass.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

FirCommon.dll

30 KB
Binary file not shown.
File renamed without changes.

FirCommon/Define/CommonEnum.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace FirCommon.Data
2+
{
3+
public enum CountryType : byte
4+
{
5+
NONE = 0, //主角
6+
WEI = 1, //魏国
7+
SHU = 2, //蜀国
8+
WU = 3, //吴国
9+
}
10+
}

FirCommon/Define/Protocal.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace FirCommon.Define
2+
{
3+
public enum ProtoType : byte
4+
{
5+
CSProtoMsg = 0,
6+
LuaProtoMsg = 1,
7+
}
8+
9+
public static class Protocal
10+
{
11+
public const string Default = "Default"; //缺省消息
12+
public const string Connected = "Connected"; //链接完成
13+
public const string Disconnect = "Disconnect"; //异常掉线
14+
15+
public const string ReqLogin = "pb_user.ReqLogin"; //请求用户登录
16+
public const string ResLogin = "pb_user.ResLogin"; //返回用户登录
17+
}
18+
}

FirCommon/FirCommon.csproj

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
7+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
8+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
9+
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
10+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<Compile Remove="DataBase\**" />
15+
<EmbeddedResource Remove="DataBase\**" />
16+
<None Remove="DataBase\**" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<Compile Remove="Define\CommonEnum.cs" />
21+
</ItemGroup>
22+
23+
24+
<ItemGroup>
25+
<Folder Include="Mono.Xml\" />
26+
</ItemGroup>
27+
28+
29+
<ItemGroup>
30+
<None Include="Define\CommonEnum.cs" />
31+
</ItemGroup>
32+
33+
34+
<ItemGroup>
35+
<Reference Include="Google.Protobuf">
36+
<HintPath>Libraries\Protobuf\Google.Protobuf.dll</HintPath>
37+
</Reference>
38+
<Reference Include="UnityEngine">
39+
<HintPath>Libraries\UnityEngine.dll</HintPath>
40+
</Reference>
41+
</ItemGroup>
42+
43+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
44+
<Exec Command="copy $(TargetPath) $(SolutionDir)..\&#xD;&#xA;copy $(TargetPath) $(SolutionDir)..\FirServer\Libraries&#xD;&#xA;copy $(TargetPath) $(SolutionDir)..\FirClient\Assets\Plugins&#xD;&#xA;copy $(TargetPath) $(SolutionDir)..\FirToolkit\Libraries&#xD;&#xA;&#xD;&#xA;copy $(ProjectDir)Define\CommonEnum.cs $(SolutionDir)..\FirClient\Assets\Scripts\Data&#xD;&#xA;copy $(ProjectDir)Define\CommonEnum.cs $(SolutionDir)..\FirServer\FirSango\Data&#xD;&#xA;" />
45+
</Target>
46+
47+
</Project>

FirCommon/FirCommon.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30804.86
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FirCommon", "FirCommon.csproj", "{22B25DCE-999D-4CE1-9013-0962DC56A4B7}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {97FDD024-01B6-4DC5-ABA9-9493FB977206}
24+
EndGlobalSection
25+
EndGlobal
255 KB
Binary file not shown.

0 commit comments

Comments
 (0)