Skip to content

Commit

Permalink
开源多端共享工程FirCommon
Browse files Browse the repository at this point in the history
  • Loading branch information
jarjin committed Feb 23, 2021
1 parent 6ff498d commit b933e41
Show file tree
Hide file tree
Showing 49 changed files with 108,904 additions and 344 deletions.
Binary file added FirClient/Assets/Plugins/FirCommon.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions FirClient/Assets/Plugins/FirCommon.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions FirClient/Assets/Scripts/Data/CommonClass.cs.meta

This file was deleted.

Binary file added FirCommon.dll
Binary file not shown.
File renamed without changes.
10 changes: 10 additions & 0 deletions FirCommon/Define/CommonEnum.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace FirCommon.Data
{
public enum CountryType : byte
{
NONE = 0, //主角
WEI = 1, //魏国
SHU = 2, //蜀国
WU = 3, //吴国
}
}
18 changes: 18 additions & 0 deletions FirCommon/Define/Protocal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace FirCommon.Define
{
public enum ProtoType : byte
{
CSProtoMsg = 0,
LuaProtoMsg = 1,
}

public static class Protocal
{
public const string Default = "Default"; //缺省消息
public const string Connected = "Connected"; //链接完成
public const string Disconnect = "Disconnect"; //异常掉线

public const string ReqLogin = "pb_user.ReqLogin"; //请求用户登录
public const string ResLogin = "pb_user.ResLogin"; //返回用户登录
}
}
47 changes: 47 additions & 0 deletions FirCommon/FirCommon.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
</PropertyGroup>

<ItemGroup>
<Compile Remove="DataBase\**" />
<EmbeddedResource Remove="DataBase\**" />
<None Remove="DataBase\**" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Define\CommonEnum.cs" />
</ItemGroup>


<ItemGroup>
<Folder Include="Mono.Xml\" />
</ItemGroup>


<ItemGroup>
<None Include="Define\CommonEnum.cs" />
</ItemGroup>


<ItemGroup>
<Reference Include="Google.Protobuf">
<HintPath>Libraries\Protobuf\Google.Protobuf.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>Libraries\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<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;" />
</Target>

</Project>
25 changes: 25 additions & 0 deletions FirCommon/FirCommon.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FirCommon", "FirCommon.csproj", "{22B25DCE-999D-4CE1-9013-0962DC56A4B7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22B25DCE-999D-4CE1-9013-0962DC56A4B7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {97FDD024-01B6-4DC5-ABA9-9493FB977206}
EndGlobalSection
EndGlobal
Binary file added FirCommon/Libraries/Protobuf/Google.Protobuf.dll
Binary file not shown.
Loading

0 comments on commit b933e41

Please sign in to comment.