├── server
├── tools
│ ├── moonfly.bat
│ ├── ProtoEnum.lua
│ ├── protoc
│ └── protoc.exe
├── protocol
│ ├── proto.pb
│ ├── center.proto
│ ├── common.proto
│ ├── mail.proto
│ ├── annotations.proto
│ ├── user.proto
│ └── room.proto
├── static
│ ├── www
│ │ ├── favicon.ico
│ │ ├── img
│ │ │ ├── loading.gif
│ │ │ └── loading-sm.gif
│ │ ├── fonts
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ └── glyphicons-halflings-regular.woff2
│ │ ├── css
│ │ │ ├── theme.css
│ │ │ ├── bootstrap-submenu.min.css
│ │ │ ├── global.css
│ │ │ ├── bootstrap-submenu.css
│ │ │ ├── signin.css
│ │ │ └── fileinput-rtl.min.css
│ │ ├── gmlist.json
│ │ └── js
│ │ │ └── utils.js
│ └── table
│ │ ├── constant.lua
│ │ └── example.lua
├── start_game.sh
├── start_hub.sh
├── game
│ ├── service_node.lua
│ ├── service_center.lua
│ ├── service_mail.lua
│ ├── service_room.lua
│ ├── service_auth.lua
│ └── user
│ │ └── UserModel.lua
├── start_server.bat
├── common
│ ├── GameCfg.lua
│ ├── CreateTable.lua
│ ├── init.lua
│ ├── vector2.lua
│ ├── ErrorCode.lua
│ ├── GameDef.lua
│ └── CmdCode.lua
├── node.json
├── serverconf.lua
├── .vscode
│ └── launch.json
└── .emmyrc.json
├── .DS_Store
├── BallAction
├── Assets
│ ├── Resources
│ │ ├── BillingMode.json
│ │ ├── Texture
│ │ │ ├── bg.png
│ │ │ ├── Common
│ │ │ │ └── touming.jpg
│ │ │ ├── bean_polygon3_1.png
│ │ │ ├── bean_polygon3_2.png
│ │ │ ├── bean_polygon3_3.png
│ │ │ ├── bean_polygon3_4.png
│ │ │ ├── bean_polygon3_5.png
│ │ │ ├── bean_polygon3_6.png
│ │ │ ├── bean_polygon4_1.png
│ │ │ ├── bean_polygon4_2.png
│ │ │ ├── bean_polygon4_3.png
│ │ │ ├── bean_polygon4_4.png
│ │ │ ├── bean_polygon4_5.png
│ │ │ ├── bean_polygon4_6.png
│ │ │ ├── bean_polygon5_1.png
│ │ │ ├── bean_polygon5_2.png
│ │ │ ├── bean_polygon5_3.png
│ │ │ ├── bean_polygon5_4.png
│ │ │ ├── bean_polygon5_5.png
│ │ │ ├── bean_polygon5_6.png
│ │ │ └── Common.meta
│ │ ├── BillingMode.json.meta
│ │ ├── Prefab.meta
│ │ ├── Texture.meta
│ │ └── Prefab
│ │ │ ├── Food.prefab.meta
│ │ │ ├── MessageBox.prefab.meta
│ │ │ ├── Player.prefab.meta
│ │ │ └── TextName.prefab.meta
│ ├── Proto
│ │ ├── Mail.cs.meta
│ │ ├── Center.cs.meta
│ │ ├── CmdCode.cs.meta
│ │ ├── Common.cs.meta
│ │ ├── Room.cs.meta
│ │ ├── User.cs.meta
│ │ ├── Center.cs
│ │ ├── CmdCode.cs
│ │ ├── Common.cs
│ │ ├── Mail.cs
│ │ └── User.cs
│ ├── .DS_Store
│ ├── Scripts
│ │ ├── Network
│ │ │ ├── IConnection.cs.meta
│ │ │ ├── WSConnection.cs.meta
│ │ │ ├── Buffer.cs.meta
│ │ │ ├── SocketManager.cs.meta
│ │ │ ├── TcpConnection.cs.meta
│ │ │ └── IConnection.cs
│ │ ├── .DS_Store
│ │ ├── Common.meta
│ │ ├── Game.meta
│ │ ├── Login.meta
│ │ ├── Network.meta
│ │ ├── Prepare.meta
│ │ ├── MatchWait.meta
│ │ ├── MessageBox.meta
│ │ ├── Components.cs
│ │ ├── UserData.cs
│ │ ├── Components.cs.meta
│ │ ├── Game
│ │ │ └── Game.cs.meta
│ │ ├── Network.cs.meta
│ │ ├── UserData.cs.meta
│ │ ├── Common
│ │ │ ├── Crypt.cs.meta
│ │ │ └── UnityUtils.cs.meta
│ │ ├── Login
│ │ │ └── Login.cs.meta
│ │ ├── Prepare
│ │ │ ├── Prepare.cs.meta
│ │ │ └── Prepare.cs
│ │ ├── MatchWait
│ │ │ ├── MatchWait.cs.meta
│ │ │ └── MatchWait.cs
│ │ └── MessageBox
│ │ │ ├── MessageBox.cs.meta
│ │ │ ├── MessageBoxWnd.cs.meta
│ │ │ ├── MessageBox.cs
│ │ │ └── MessageBoxWnd.cs
│ ├── Plugins
│ │ ├── .DS_Store
│ │ ├── Protobuf-net
│ │ │ ├── GlobalSuppressions.cs
│ │ │ ├── protobuf-net.csproj.meta
│ │ │ ├── Meta.meta
│ │ │ ├── Compiler.meta
│ │ │ ├── Serializers.meta
│ │ │ ├── Serializers
│ │ │ │ ├── ISerializerProxy.cs
│ │ │ │ ├── ArrayDecorator.cs.meta
│ │ │ │ ├── BlobSerializer.cs.meta
│ │ │ │ ├── ByteSerializer.cs.meta
│ │ │ │ ├── CharSerializer.cs.meta
│ │ │ │ ├── EnumSerializer.cs.meta
│ │ │ │ ├── FieldDecorator.cs.meta
│ │ │ │ ├── GuidSerializer.cs.meta
│ │ │ │ ├── Int16Serializer.cs.meta
│ │ │ │ ├── Int32Serializer.cs.meta
│ │ │ │ ├── Int64Serializer.cs.meta
│ │ │ │ ├── ListDecorator.cs.meta
│ │ │ │ ├── MapDecorator.cs.meta
│ │ │ │ ├── NullDecorator.cs.meta
│ │ │ │ ├── SByteSerializer.cs.meta
│ │ │ │ ├── TagDecorator.cs.meta
│ │ │ │ ├── TupleSerializer.cs.meta
│ │ │ │ ├── TypeSerializer.cs.meta
│ │ │ │ ├── UriDecorator.cs.meta
│ │ │ │ ├── BooleanSerializer.cs.meta
│ │ │ │ ├── CompiledSerializer.cs.meta
│ │ │ │ ├── DateTimeSerializer.cs.meta
│ │ │ │ ├── DecimalSerializer.cs.meta
│ │ │ │ ├── DoubleSerializer.cs.meta
│ │ │ │ ├── IProtoSerializer.cs.meta
│ │ │ │ ├── IProtoTypeSerializer.cs.meta
│ │ │ │ ├── ISerializerProxy.cs.meta
│ │ │ │ ├── NetObjectSerializer.cs.meta
│ │ │ │ ├── ParseableSerializer.cs.meta
│ │ │ │ ├── PropertyDecorator.cs.meta
│ │ │ │ ├── ProtoDecoratorBase.cs.meta
│ │ │ │ ├── SingleSerializer.cs.meta
│ │ │ │ ├── StringSerializer.cs.meta
│ │ │ │ ├── SubItemSerializer.cs.meta
│ │ │ │ ├── SurrogateSerializer.cs.meta
│ │ │ │ ├── SystemTypeSerializer.cs.meta
│ │ │ │ ├── TimeSpanSerializer.cs.meta
│ │ │ │ ├── UInt16Serializer.cs.meta
│ │ │ │ ├── UInt32Serializer.cs.meta
│ │ │ │ ├── UInt64Serializer.cs.meta
│ │ │ │ ├── DefaultValueDecorator.cs.meta
│ │ │ │ ├── MemberSpecifiedDecorator.cs.meta
│ │ │ │ ├── ReflectedUriDecorator.cs.meta
│ │ │ │ ├── ImmutableCollectionDecorator.cs.meta
│ │ │ │ ├── IProtoTypeSerializer.cs
│ │ │ │ ├── CharSerializer.cs
│ │ │ │ ├── ProtoDecoratorBase.cs
│ │ │ │ ├── Int64Serializer.cs
│ │ │ │ ├── Int32Serializer.cs
│ │ │ │ ├── Int16Serializer.cs
│ │ │ │ ├── BooleanSerializer.cs
│ │ │ │ ├── ByteSerializer.cs
│ │ │ │ ├── DoubleSerializer.cs
│ │ │ │ ├── StringSerializer.cs
│ │ │ │ ├── UInt64Serializer.cs
│ │ │ │ ├── SByteSerializer.cs
│ │ │ │ ├── UInt32Serializer.cs
│ │ │ │ ├── SingleSerializer.cs
│ │ │ │ ├── UInt16Serializer.cs
│ │ │ │ ├── SystemTypeSerializer.cs
│ │ │ │ ├── GuidSerializer.cs
│ │ │ │ ├── DecimalSerializer.cs
│ │ │ │ ├── BlobSerializer.cs
│ │ │ │ └── TimeSpanSerializer.cs
│ │ │ ├── ServiceModel.meta
│ │ │ ├── Compiler
│ │ │ │ ├── CompilerDelegates.cs
│ │ │ │ ├── Local.cs.meta
│ │ │ │ ├── CompilerContext.cs.meta
│ │ │ │ ├── CompilerDelegates.cs.meta
│ │ │ │ └── Local.cs
│ │ │ ├── Helpers.cs.meta
│ │ │ ├── BclHelpers.cs.meta
│ │ │ ├── BufferPool.cs.meta
│ │ │ ├── DataFormat.cs.meta
│ │ │ ├── Extensible.cs.meta
│ │ │ ├── IExtensible.cs.meta
│ │ │ ├── IExtension.cs.meta
│ │ │ ├── IProtoInputT.cs.meta
│ │ │ ├── Meta
│ │ │ │ ├── SubType.cs.meta
│ │ │ │ ├── AttributeMap.cs.meta
│ │ │ │ ├── BasicList.cs.meta
│ │ │ │ ├── CallbackSet.cs.meta
│ │ │ │ ├── MetaType.cs.meta
│ │ │ │ ├── ProtoSyntax.cs.meta
│ │ │ │ ├── TypeModel.cs.meta
│ │ │ │ ├── ValueMember.cs.meta
│ │ │ │ ├── RuntimeTypeModel.cs.meta
│ │ │ │ ├── TypeAddedEventArgs.cs.meta
│ │ │ │ ├── TypeFormatEventArgs.cs.meta
│ │ │ │ ├── TypeModel.InputOutput.cs.meta
│ │ │ │ ├── ProtoSyntax.cs
│ │ │ │ ├── TypeAddedEventArgs.cs
│ │ │ │ └── TypeModel.InputOutput.cs
│ │ │ ├── PrefixStyle.cs.meta
│ │ │ ├── ProtoReader.cs.meta
│ │ │ ├── ProtoWriter.cs.meta
│ │ │ ├── Serializer.cs.meta
│ │ │ ├── SubItemToken.cs.meta
│ │ │ ├── WireType.cs.meta
│ │ │ ├── BufferExtension.cs.meta
│ │ │ ├── ExtensibleUtil.cs.meta
│ │ │ ├── IProtoOutputT.cs.meta
│ │ │ ├── ImplicitFields.cs.meta
│ │ │ ├── KeyValuePairProxy.cs.meta
│ │ │ ├── NetObjectCache.cs.meta
│ │ │ ├── ProtoException.cs.meta
│ │ │ ├── ProtoMapAttribute.cs.meta
│ │ │ ├── CallbackAttributes.cs.meta
│ │ │ ├── DiscriminatedUnion.cs.meta
│ │ │ ├── GlobalSuppressions.cs.meta
│ │ │ ├── ProtoContractAttribute.cs.meta
│ │ │ ├── ProtoEnumAttribute.cs.meta
│ │ │ ├── ProtoIgnoreAttribute.cs.meta
│ │ │ ├── ProtoIncludeAttribute.cs.meta
│ │ │ ├── ProtoMemberAttribute.cs.meta
│ │ │ ├── SerializationContext.cs.meta
│ │ │ ├── ProtoConverterAttribute.cs.meta
│ │ │ ├── DiscriminatedUnion.Serializable.cs.meta
│ │ │ ├── ServiceModel
│ │ │ │ ├── XmlProtoSerializer.cs.meta
│ │ │ │ ├── ProtoBehaviorAttribute.cs.meta
│ │ │ │ ├── ProtoEndpointBehavior.cs.meta
│ │ │ │ ├── ProtoOperationBehavior.cs.meta
│ │ │ │ ├── ProtoBehaviorExtensionElement.cs.meta
│ │ │ │ ├── ProtoBehaviorExtensionElement.cs
│ │ │ │ ├── ProtoBehaviorAttribute.cs
│ │ │ │ └── ProtoOperationBehavior.cs
│ │ │ ├── IProtoInputT.cs
│ │ │ ├── SubItemToken.cs
│ │ │ ├── ProtoConverterAttribute.cs
│ │ │ ├── PrefixStyle.cs
│ │ │ ├── IExtensible.cs
│ │ │ ├── ProtoException.cs
│ │ │ ├── ProtoMapAttribute.cs
│ │ │ ├── ProtoEnumAttribute.cs
│ │ │ ├── ImplicitFields.cs
│ │ │ ├── WireType.cs
│ │ │ ├── ProtoIgnoreAttribute.cs
│ │ │ ├── CallbackAttributes.cs
│ │ │ ├── DataFormat.cs
│ │ │ └── KeyValuePairProxy.cs
│ │ └── Protobuf-net.meta
│ ├── Scenes
│ │ ├── Game.unity.meta
│ │ ├── Login.unity.meta
│ │ ├── MatchWait.unity.meta
│ │ ├── Prepare.unity.meta
│ │ ├── LoginSettings.lighting.meta
│ │ └── LoginSettings.lighting
│ ├── Proto.meta
│ ├── Scenes.meta
│ ├── Plugins.meta
│ ├── Resources.meta
│ └── Scripts.meta
├── ProjectSettings
│ ├── Packages
│ │ └── com.unity.services.core
│ │ │ └── Settings.json
│ ├── ProjectVersion.txt
│ ├── ClusterInputManager.asset
│ ├── NetworkManager.asset
│ ├── MultiplayerManager.asset
│ ├── XRSettings.asset
│ ├── VersionControlSettings.asset
│ ├── TimeManager.asset
│ ├── VFXManager.asset
│ ├── PresetManager.asset
│ ├── AudioManager.asset
│ ├── TimelineSettings.asset
│ ├── EditorBuildSettings.asset
│ ├── TagManager.asset
│ ├── UnityConnectSettings.asset
│ ├── PackageManagerSettings.asset
│ ├── DynamicsManager.asset
│ ├── EditorSettings.asset
│ ├── MemorySettings.asset
│ ├── Physics2DSettings.asset
│ ├── NavMeshAreas.asset
│ └── GraphicsSettings.asset
├── .DS_Store
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── 001
│ └── TemplateData
│ │ ├── favicon.ico
│ │ ├── webmemd-icon.png
│ │ ├── MemoryProfiler.png
│ │ ├── unity-logo-dark.png
│ │ ├── fullscreen-button.png
│ │ ├── unity-logo-light.png
│ │ ├── progress-bar-empty-dark.png
│ │ ├── progress-bar-full-dark.png
│ │ ├── progress-bar-full-light.png
│ │ ├── unity-logo-title-footer.png
│ │ ├── progress-bar-empty-light.png
│ │ └── style.css
├── .vsconfig
├── UserSettings
│ ├── Search.index
│ ├── EditorUserSettings.asset
│ └── Search.settings
├── .gitignore
├── BallAction.sln
└── Packages
│ └── manifest.json
├── image
├── debug.png
├── game.png
├── start.png
├── message.png
└── setting.png
├── .gitignore
├── .gitattributes
├── .gitmodules
└── .vscode
└── launch.json
/server/tools/moonfly.bat:
--------------------------------------------------------------------------------
1 | python3 moonfly.py
--------------------------------------------------------------------------------
/server/tools/ProtoEnum.lua:
--------------------------------------------------------------------------------
1 |
2 |
3 | return {
4 | }
5 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/.DS_Store
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/BillingMode.json:
--------------------------------------------------------------------------------
1 | {"androidStore":"GooglePlay"}
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/Packages/com.unity.services.core/Settings.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/image/debug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/image/debug.png
--------------------------------------------------------------------------------
/image/game.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/image/game.png
--------------------------------------------------------------------------------
/image/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/image/start.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | server/.vscode/settings.json
2 | server/log/*.log
3 | BallAction/Logs
4 |
--------------------------------------------------------------------------------
/image/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/image/message.png
--------------------------------------------------------------------------------
/image/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/image/setting.png
--------------------------------------------------------------------------------
/BallAction/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/.DS_Store
--------------------------------------------------------------------------------
/server/tools/protoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/tools/protoc
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Mail.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ae91d42d7a8c54ad1acdcd62f0e0dfeb
--------------------------------------------------------------------------------
/server/protocol/proto.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/protocol/proto.pb
--------------------------------------------------------------------------------
/server/tools/protoc.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/tools/protoc.exe
--------------------------------------------------------------------------------
/BallAction/Assets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/.DS_Store
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=lua
2 | *.css linguist-language=lua
3 | *.html linguist-language=lua
4 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "server/moon"]
2 | path = server/moon
3 | url = https://github.com/sniper00/moon.git
4 |
--------------------------------------------------------------------------------
/server/static/www/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/favicon.ico
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/IConnection.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7461916227b9f4e48aca348eb06f02e0
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/WSConnection.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: da9d33c0d9e3a4968b11b393e1bc8261
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Plugins/.DS_Store
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Scripts/.DS_Store
--------------------------------------------------------------------------------
/server/static/www/img/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/img/loading.gif
--------------------------------------------------------------------------------
/server/static/www/img/loading-sm.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/img/loading-sm.gif
--------------------------------------------------------------------------------
/BallAction/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "visualstudiotoolsforunity.vstuc"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/favicon.ico
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bg.png
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 6000.0.33f1
2 | m_EditorVersionWithRevision: 6000.0.33f1 (433b0a79340b)
3 |
--------------------------------------------------------------------------------
/BallAction/.vsconfig:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "components": [
4 | "Microsoft.VisualStudio.Workload.ManagedGame"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/webmemd-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/webmemd-icon.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/MemoryProfiler.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/MemoryProfiler.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/unity-logo-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/unity-logo-dark.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/fullscreen-button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/fullscreen-button.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/unity-logo-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/unity-logo-light.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/progress-bar-empty-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/progress-bar-empty-dark.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/progress-bar-full-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/progress-bar-full-dark.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/progress-bar-full-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/progress-bar-full-light.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/unity-logo-title-footer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/unity-logo-title-footer.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/Common/touming.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/Common/touming.jpg
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_1.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_2.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_3.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_4.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_5.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon3_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon3_6.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_1.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_2.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_3.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_4.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_5.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon4_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon4_6.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_1.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_2.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_3.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_4.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_5.png
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/bean_polygon5_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Resources/Texture/bean_polygon5_6.png
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/progress-bar-empty-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/001/TemplateData/progress-bar-empty-light.png
--------------------------------------------------------------------------------
/server/static/www/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/server/static/www/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/server/static/www/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/GlobalSuppressions.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/BallAction/Assets/Plugins/Protobuf-net/GlobalSuppressions.cs
--------------------------------------------------------------------------------
/server/static/www/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sniper00/MoonDemo/HEAD/server/static/www/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/server/start_game.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if [ -x "./moon/moon" ]; then
3 | ./moon/moon main_game.lua 1
4 | else
5 | cd moon && premake5 run --release ../main_game.lua 1
6 | fi
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/server/start_hub.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ -x "./moon/moon" ]; then
4 | ./moon/moon main_hub.lua 10000 node.json
5 | else
6 | cd moon && premake5 run --release ../main_hub.lua 10000 node.json
7 | fi
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/Game.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2967181af8cda414499e7fe9bac17c7d
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/Login.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c016c30e326e1c14e91eb1b7900ce89c
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/MatchWait.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9561f1445870880408c22083620fcdc0
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/Prepare.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2cda990e2423bbf4892e6590ba056729
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fe4edf0324c117b458dfe489ead76751
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 131a6b21c8605f84396be9f6751fb6e3
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!149 &1
4 | NetworkManager:
5 | m_ObjectHideFlags: 0
6 | m_DebugLevel: 0
7 | m_Sendrate: 15
8 | m_AssetToPrefab: {}
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 274032db31c75964aa9a5b33871b71fe
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 41ba7197fcabcb343bfbff7701f657f6
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/BillingMode.json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 968448360b9ba7d40bcf538d60d1d0f1
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9a5d237c430271243a79e0ec059a42eb
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/MultiplayerManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!655991488 &1
4 | MultiplayerManager:
5 | m_ObjectHideFlags: 0
6 | m_EnableMultiplayerRoles: 0
7 | m_StrippingTypes: {}
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 07c6dcdf32654a740a5ca3766b02558e
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Common.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 54294fc9a0c016542ad709de57f13a4d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Game.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b6536299ed82edd4aad9a2948077ac52
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Login.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 560152930cffeb6418b79a2e466a0d97
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5718c28ce900b604c9752465a82f89de
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Prepare.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 676bca3869bef234fab2de3d21129d3b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b83a48320d6174b9289fd46379e6a29d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/protobuf-net.csproj.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3b9128b665b538746a11489aee369030
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e3d825e5b9ace544296a0960de803b39
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MatchWait.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0631149dc6161b84187b8dadb5f3433a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MessageBox.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2c2d49d5b93b44144ad4313b057ecd34
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/XRSettings.asset:
--------------------------------------------------------------------------------
1 | {
2 | "m_SettingKeys": [
3 | "VR Device Disabled",
4 | "VR Device User Alert"
5 | ],
6 | "m_SettingValues": [
7 | "False",
8 | "False"
9 | ]
10 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a70a85c13dddce74d9a6395c440c9156
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Texture/Common.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 12db6079845252c4b8d57761ef599b15
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Attach to Unity",
6 | "type": "vstuc",
7 | "request": "attach"
8 | }
9 | ]
10 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2cdd9eb2afa3ed24480a6035f507aad4
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 90bd17a736284764ca22da41661472de
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ISerializerProxy.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 |
3 | namespace ProtoBuf.Serializers
4 | {
5 | interface ISerializerProxy
6 | {
7 | IProtoSerializer Serializer { get; }
8 | }
9 | }
10 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: af34a7ba57dbd6340b8d3fa0bfdbd0a1
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Components.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace Component
4 | {
5 | [System.Serializable]
6 | public class Color
7 | {
8 | public int r;
9 | public int g;
10 | public int b;
11 | }
12 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Prefab/Food.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6bf39702990ca574d939eb32a243a1b0
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 100100000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Prefab/MessageBox.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 077c6b7af51461747989e7b52a86b308
3 | timeCreated: 1452848431
4 | licenseType: Free
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Prefab/Player.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 618dc9ae883a1bc4b87836fbc3d37615
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 100100000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Resources/Prefab/TextName.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0e1528e056d1a194fbefce04f33f870d
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 100100000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/UserData.cs:
--------------------------------------------------------------------------------
1 | public class UserData
2 | {
3 | static public string username { get; set; }
4 | static public long uid { get; set; }
5 | static public long GameSeverID { get; set; } = 0;
6 | static public long time { get; set; }
7 | }
8 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/VersionControlSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!890905787 &1
4 | VersionControlSettings:
5 | m_ObjectHideFlags: 0
6 | m_Mode: Visible Meta Files
7 | m_CollabEditorSettings:
8 | inProgressEnabled: 1
9 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/LoginSettings.lighting.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 68ec25b5856b24a92ab81cdb4d6e1865
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 4890085278179872738
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!5 &1
4 | TimeManager:
5 | m_ObjectHideFlags: 0
6 | Fixed Timestep: 0.0167
7 | Maximum Allowed Timestep: 0.1
8 | m_TimeScale: 1
9 | Maximum Particle Timestep: 0.03
10 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler/CompilerDelegates.cs:
--------------------------------------------------------------------------------
1 | #if FEAT_COMPILER
2 | namespace ProtoBuf.Compiler
3 | {
4 | internal delegate void ProtoSerializer(object value, ProtoWriter dest);
5 | internal delegate object ProtoDeserializer(object value, ProtoReader source);
6 | }
7 | #endif
--------------------------------------------------------------------------------
/server/static/table/constant.lua:
--------------------------------------------------------------------------------
1 | ---@class constant
2 | local constant = {
3 | room = {
4 | --- 匹配人数达到100就创建房间
5 | max_player_number = 100,
6 | --- 每局持续60s
7 | round_time = 60,
8 | },
9 | --- 登录99个机器人, 留下一个用unity登录
10 | robot_num = 99,
11 | }
12 |
13 | return constant
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Center.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fc73aa12b100a8342901810205c5ac11
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/CmdCode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4e5e12c5031482040af4668df51e9a79
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Common.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b2b9e6fbbc4cea74ba010d08eecbc073
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Room.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8fdf3d308ed6c92419e85498da139f83
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/User.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e4a0312cb89ecf8449c1f649436b37be
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Components.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f05ab2e911eb83945a961734179f8e14
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Game/Game.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9e012fa2395d9e54cb4660f053c06b99
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8a9108642e8e0a343a4a6417e17c0f23
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/UserData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 08c901783ad0d1a4292db641a683d1ff
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Common/Crypt.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5cb7fdae2f11d134193f00f2fe3178ed
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Login/Login.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ea23b8690f0842741afe458cc733f57a
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/Buffer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 81bac7d14292079479bdaf1db2221e34
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Prepare/Prepare.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0d71f3379431a424884e8c266c23554e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Helpers.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 227f762ea287cdf42a9293ea6c481ff8
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Common/UnityUtils.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9fac3b4ce6676f540a1998ec307f5319
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MatchWait/MatchWait.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f77f3b60679a94d46b174987d4e26d94
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/server/protocol/center.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | option csharp_namespace = "NetMessage";
3 | // import "common.proto";
4 |
5 | message C2SMatch
6 | {
7 | }
8 |
9 | message S2CMatch
10 | {
11 | bool res = 1;
12 | }
13 |
14 | message S2CMatchSuccess
15 | {
16 | }
17 |
18 | message S2CGameOver
19 | {
20 | int64 score = 1;
21 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/BclHelpers.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5072fbed211eb9f43a3cd2805dd75ef7
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/BufferPool.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 423b228ed060b91458bc6d4e6aa0f570
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/DataFormat.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 875f2f7de4b03ff409de70d226359e8f
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Extensible.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fc24b62dbd0b19642bce397e2b061aa0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IExtensible.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b9cd5092c5d6d9d4299fc0c88ebb9390
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IExtension.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8018fb363175787478148842225e7d16
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IProtoInputT.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6514bacfd3143a49a027f15434586f7
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/SubType.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a2912d37917b74846bdcffe3daa174d2
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/PrefixStyle.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c6f16948bce1f2d4eb805ed31a2bb878
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoReader.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bd9c8ee218e18b14b9058926b6bbc8fe
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoWriter.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63b2636e44dc3824ca2dbc35316e96ec
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dbd7fc6a1f1a0e34b8a1bce7e93c4f61
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/SubItemToken.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bbb510795b4f3fa46aeecbd4521adfc0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/WireType.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0a8403cbfeff31942997d1726a909e89
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/SocketManager.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: beb82fb898855864cae594f193514620
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/TcpConnection.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4cc0e6682a5975244a7218ec7b65204d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/server/game/service_node.lua:
--------------------------------------------------------------------------------
1 | local moon = require("moon")
2 | local setup = require("common.setup")
3 | local conf = ...
4 |
5 | ---@class node_context:base_context
6 | ---@field scripts node_scripts
7 | local context ={
8 | logics = {},
9 | }
10 |
11 | setup(context)
12 |
13 | moon.shutdown(function()
14 | moon.quit()
15 | end)
16 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/BufferExtension.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a9cf66041a027e94892d5014c2b905b3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler/Local.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 07d12d9a9b7d45b498e28b7c39bdca01
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ExtensibleUtil.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dc71d3f5e8f25ad41bb04ea933cee56e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IProtoOutputT.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 17c52d90924d69d4aaf31925ea2c90bf
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ImplicitFields.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b838f9e3c6536bc438e7c31f73c49160
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/KeyValuePairProxy.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b6221476e2339494cb5ee2bdc10ffd81
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/AttributeMap.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a3e64de7ef1358447843db562f78060f
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/BasicList.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: be5fc2a1ac0731a44b0365987d942485
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/CallbackSet.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: de0e7cb7bfcf4904aa31e910f241a8aa
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/MetaType.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 170c607ac9d3b9346a8f4197e9e4d86a
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/ProtoSyntax.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8df2b30e0bc1f274a8170e86c9d08f96
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeModel.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e5eb182ec8bc8c5469c7819c0e3f7fb4
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/ValueMember.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dba7fd2d1d1c883469e153f7ac5fdd86
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/NetObjectCache.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a7ec59f6037764d43b3d585baf2343e2
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoException.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8629683d41766534fa00bcb5d1a324e0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoMapAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2d41a983b561e9043a8ce693aeb9c835
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/CallbackAttributes.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 53de2cb3784c9dd43aa6f30d7df072a4
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/DiscriminatedUnion.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ab51817e163a1144bb8518368ba0a465
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/GlobalSuppressions.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c110f96e5d6da4f498bcb6d5fa673be7
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/RuntimeTypeModel.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0e4440bfa9e92f84d81d48e6c5b0022e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoContractAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e5d57dba877f0854c999b91a6514d93d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoEnumAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3b3e030ed91e74b49b87bb0cd9acf139
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoIgnoreAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b012b09d39a7c2445aba79ffee82b117
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoIncludeAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 40d89f2230d5a4f4badf122df4ed9fae
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoMemberAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 262c0823543b1b3499e2b67ca22f4e62
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/SerializationContext.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9361aaa524d95b14fbf398ba5bc075a1
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Network/IConnection.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Net;
3 |
4 | namespace Moon
5 | {
6 | public interface IConnection
7 | {
8 | void ConnectAsync(string addr, long session, long timeout);
9 | void Send(Buffer data);
10 | bool Connected();
11 | void Close();
12 | }
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler/CompilerContext.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a58d20a1d8c7730499ef29a11532d07e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler/CompilerDelegates.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3b923d7ab8e95f740b059ca797596261
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeAddedEventArgs.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1500030a10d2168408f75fe907ce0568
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeFormatEventArgs.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d27afe6e96660d1418a49cf374e84ad0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeModel.InputOutput.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d683bc55be70e8e46824012108beb15f
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoConverterAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 399681000a748834f87d721feda5f459
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ArrayDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3689dde3ac5fd544a9e66158c9713872
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/BlobSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c04427a4647d6314e82d8a63882dcb8b
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ByteSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c17779da4eb6b1d489531294afcb2a32
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/CharSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 526090cb730f087469b7f20948f4932a
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/EnumSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ef6c6d630a8f5ca449eec10513147563
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/FieldDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f7c1c3141cd2fad47b3112747b44314a
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/GuidSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 362fe2dd035b0cb4eaff2c7b7337fc66
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int16Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e45229312d2a4fe45b519e513326b708
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int32Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4a7c49bc45156f442bfe84fc7eef04b9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int64Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 03f2770a306f45046b6e8eab757c9188
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ListDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: eb7a73aa78c887c478b0af6d506337d5
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/MapDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 522b5c8a0fa5be14591bc9cbe3b194d3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/NullDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4728d79a9a96bde4097e4c599266a6e4
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SByteSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 09de0f3e56d4834428cb8ba75929d216
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/TagDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f807f0cbd3358f6479b78ab47c89ad48
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/TupleSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7e57d0cd813299f40a1a32236d9931a9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/TypeSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b3f577c98285d56469b3eb1c9190e174
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UriDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b784c432eb5cbf742b3d96161e7c8d73
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!937362698 &1
4 | VFXManager:
5 | m_ObjectHideFlags: 0
6 | m_IndirectShader: {fileID: 0}
7 | m_CopyBufferShader: {fileID: 0}
8 | m_SortShader: {fileID: 0}
9 | m_RenderPipeSettingsPath:
10 | m_FixedTimeStep: 0.016666668
11 | m_MaxDeltaTime: 0.05
12 |
--------------------------------------------------------------------------------
/BallAction/UserSettings/Search.index:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Assets",
3 | "roots": ["Assets"],
4 | "includes": [],
5 | "excludes": ["Assets/Temp/", "Assets/External/"],
6 | "options": {
7 | "types": true,
8 | "properties": true,
9 | "extended": false,
10 | "dependencies": true
11 | },
12 | "baseScore": 999
13 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/DiscriminatedUnion.Serializable.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7a3aeec9c8a4c734e9ad022627502d1d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/BooleanSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8b73f749f97802947812dc66867ed1f5
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/CompiledSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 90821da5568834a4682d1a42d7f66963
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DateTimeSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dfba0a8c252b2e54c96478c9e690c7d3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DecimalSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 80efe6cca6916ab46b430c27dc58369c
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DoubleSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 65b598b3ebee04946abf8957a0f92762
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/IProtoSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6acc35442de99c94aade5d43c7992338
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/IProtoTypeSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6974491708512ec41b7a5f29805e4c69
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ISerializerProxy.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f717dd1190cbe174587e3bff7dd3dd76
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/NetObjectSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dd6edd815f76150449f39f7571679912
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ParseableSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 562e4dd519901854fba22d511f594b82
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/PropertyDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2b21fd2b2435fed4da28bd193e2ce80d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ProtoDecoratorBase.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1e9afbb9465ade140ab0fcd217ea0b66
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SingleSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9b89c111cae2d81469987d208a41af4b
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/StringSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 80c8f3efc5f697845b352b56780105ae
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SubItemSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6d29a14abe6c62349930c948a6d438c4
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SurrogateSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 517911a690de2bd4c97e81f35104a81a
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SystemTypeSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f3b3869287521554a816dba994928f83
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/TimeSpanSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 88ce40638421a9d4abd295d84d1991e8
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt16Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 95fff5b2239c48c4cbb32346fee1be94
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt32Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 79149f5f69e868c45a17d389322e4bb7
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt64Serializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e549c20b3409c4a4dbf0e7fc25062c71
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/XmlProtoSerializer.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bca9bc75e9bb7c841b04b85204a0c9f6
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DefaultValueDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ad3a3e386e17b67488f858d409d3e8a7
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/MemberSpecifiedDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 58836f822e85e2447817d187f3bcd5de
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ReflectedUriDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6cf63470b1970d84ead637b9ee2bface
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoBehaviorAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: feda16667cbcb8248951368dfbfef6b9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoEndpointBehavior.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6776c4cee4f69a94e9507afa458fdb50
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoOperationBehavior.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bc6637ab509d5ba41b14e428ed365764
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MessageBox/MessageBox.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0ac2ce31596cf694bb0e9907bd1164f5
3 | timeCreated: 1480403556
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MessageBox/MessageBoxWnd.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5f60513d3e6905e42a8989b1d99065c5
3 | timeCreated: 1480403556
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ImmutableCollectionDecorator.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 00a3af58286d1674ca64bcf5fd9f0228
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoBehaviorExtensionElement.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c70aaa3829dd1fa45b0530efc37727f5
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/server/static/www/css/theme.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 70px;
3 | padding-bottom: 30px;
4 | }
5 |
6 | .theme-dropdown .dropdown-menu {
7 | position: static;
8 | display: block;
9 | margin-bottom: 20px;
10 | }
11 |
12 | .theme-showcase > p > .btn {
13 | margin: 5px 0;
14 | }
15 |
16 | .theme-showcase .navbar .container {
17 | width: auto;
18 | }
19 |
--------------------------------------------------------------------------------
/server/game/service_center.lua:
--------------------------------------------------------------------------------
1 | --require("common.LuaPanda").start("127.0.0.1", 8818)
2 | local moon = require("moon")
3 | local common = require("common")
4 | local setup = require("common.setup")
5 |
6 | local conf = ...
7 |
8 | ---@class center_context:base_context
9 | ---@field scripts center_scripts
10 | local context ={
11 | conf = conf,
12 | match_map={},
13 | match_queue={}
14 | }
15 |
16 | setup(context)
17 |
--------------------------------------------------------------------------------
/server/game/service_mail.lua:
--------------------------------------------------------------------------------
1 | local moon = require("moon")
2 | local setup = require("common.setup")
3 | local conf = ...
4 |
5 | ---@class mail_context:base_context
6 | ---@field scripts mail_scripts
7 | local context ={
8 | conf = conf,
9 | models = {},
10 | uid_address = {}
11 | }
12 |
13 | setup(context,"mail")
14 |
15 | moon.shutdown(function()
16 | --- rewrite default behavior: quit immediately
17 | end)
18 |
--------------------------------------------------------------------------------
/server/game/service_room.lua:
--------------------------------------------------------------------------------
1 | local moon = require("moon")
2 | local setup = require("common.setup")
3 | local conf = ...
4 |
5 | ---@class room_context:base_context
6 | ---@field scripts room_scripts
7 | local context ={
8 | conf = conf,
9 | models = {},
10 | uid_address = {}
11 | }
12 |
13 | setup(context,"room")
14 |
15 | moon.shutdown(function()
16 | --- rewrite default behavior: quit immediately
17 | end)
18 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1386491679 &1
4 | PresetManager:
5 | m_ObjectHideFlags: 0
6 | m_DefaultList:
7 | - type:
8 | m_NativeTypeID: 20
9 | m_ManagedTypePPtr: {fileID: 0}
10 | m_ManagedTypeFallback:
11 | defaultPresets:
12 | - m_Preset: {fileID: 2655988077585873504, guid: bfcfc320427f8224bbb7a96f3d3aebad,
13 | type: 2}
14 |
--------------------------------------------------------------------------------
/server/start_server.bat:
--------------------------------------------------------------------------------
1 | IF EXIST moon\moon.exe (
2 | start cmd /k moon\moon.exe main_hub.lua 10000 node.json
3 | ) ELSE (
4 | cd moon && premake5 build --release
5 | cd ..
6 | start cmd /k "cd moon && premake5 run --release ..\main_hub.lua 10000 node.json"
7 | )
8 | timeout /t 1
9 | IF EXIST moon\moon.exe (
10 | start cmd /k moon\moon.exe main_game.lua 1
11 | ) ELSE (
12 | start cmd /k "cd moon && premake5 run --release ..\main_game.lua 1"
13 | )
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!11 &1
4 | AudioManager:
5 | m_ObjectHideFlags: 0
6 | m_Volume: 1
7 | Rolloff Scale: 1
8 | Doppler Factor: 1
9 | Default Speaker Mode: 2
10 | m_SampleRate: 0
11 | m_DSPBufferSize: 1024
12 | m_VirtualVoiceCount: 512
13 | m_RealVoiceCount: 32
14 | m_SpatializerPlugin:
15 | m_AmbisonicDecoderPlugin:
16 | m_DisableAudio: 0
17 | m_VirtualizeEffects: 1
18 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IProtoInputT.cs:
--------------------------------------------------------------------------------
1 | namespace ProtoBuf
2 | {
3 | ///
4 | /// Represents the ability to deserialize values from an input of type
5 | ///
6 | public interface IProtoInput
7 | {
8 | ///
9 | /// Deserialize a value from the input
10 | ///
11 | T Deserialize(TInput source, T value = default, object userState = null);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/server/common/GameCfg.lua:
--------------------------------------------------------------------------------
1 | local sharetable = require("sharetable")
2 |
3 | ---@class GameCfg : static_conf
4 | local M = {}
5 |
6 | ---@type static_conf
7 | local static
8 |
9 | function M.Load()
10 | static = sharetable.queryall()
11 | static.__index = static
12 | setmetatable(M, static)
13 | end
14 |
15 | function M.Reload(names)
16 | local res = sharetable.queryall(names)
17 | for k,v in pairs(res) do
18 | static[k] = v
19 | end
20 | end
21 |
22 | return M
23 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/TimelineSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | assetDefaultFramerate: 60
16 |
--------------------------------------------------------------------------------
/server/common/CreateTable.lua:
--------------------------------------------------------------------------------
1 | local pgsql = require("sqldriver")
2 |
3 | ---@param res pg_result|pg_error
4 | local function check_err(res)
5 | assert(not res.code, table.tostring(res))
6 | end
7 |
8 | return function (addr_db)
9 | local sql = string.format([[
10 | --create userdata table
11 | create table if not exists userdata (
12 | uid bigint PRIMARY KEY NOT NULL,
13 | data text
14 | );
15 | ]])
16 | check_err(pgsql.query(addr_db, sql))
17 | end
18 |
19 |
--------------------------------------------------------------------------------
/server/common/init.lua:
--------------------------------------------------------------------------------
1 | ---降低require多个文件查找消耗,注意内部避免递归require
2 |
3 | return {
4 | vector2 = require("common.vector2"),
5 | protocol = require("common.protocol_pb"), -- protobuf
6 | --protocol = require("common.protocol"), -- json
7 |
8 | CmdCode = require("common.CmdCode"),
9 | Database = require("common.Database"),
10 | GameCfg = require("common.GameCfg"),
11 | GameDef = require("common.GameDef"),
12 | ErrorCode = require("common.ErrorCode"),
13 | CreateTable = require("common.CreateTable")
14 | }
15 |
--------------------------------------------------------------------------------
/server/node.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "node":1,
4 | "type":"game",
5 | "host":"127.0.0.1:12345",
6 | "cluster":"127.0.0.1:9101"
7 | },
8 | {
9 | "node":2,
10 | "type":"game",
11 | "host":"127.0.0.1:12346",
12 | "cluster":"127.0.0.1:9102"
13 | },
14 | {
15 | "node":10000,
16 | "type":"hub",
17 | "host":"127.0.0.1:8003"
18 | },
19 | {
20 | "node":10001,
21 | "type":"hub",
22 | "host":"127.0.0.1:8003"
23 | }
24 | ]
--------------------------------------------------------------------------------
/server/static/www/gmlist.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "index":1,
4 | "name":"通用",
5 | "items":[
6 | "command"
7 | ]
8 | },
9 | {
10 | "index":2,
11 | "name":"重载游戏配表",
12 | "subcommand": "reload",
13 | "items":[
14 | "serverid"
15 | ]
16 | },
17 | {
18 | "index":3,
19 | "name":"增加积分",
20 | "subcommand":"addscore",
21 | "items":[
22 | "uid",
23 | "count"
24 | ]
25 | }
26 | ]
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/ProtoSyntax.cs:
--------------------------------------------------------------------------------
1 | namespace ProtoBuf.Meta
2 | {
3 | ///
4 | /// Indiate the variant of the protobuf .proto DSL syntax to use
5 | ///
6 | public enum ProtoSyntax
7 | {
8 | ///
9 | /// https://developers.google.com/protocol-buffers/docs/proto
10 | ///
11 | Proto2 = 0,
12 | ///
13 | /// https://developers.google.com/protocol-buffers/docs/proto3
14 | ///
15 | Proto3 = 1,
16 | }
17 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/SubItemToken.cs:
--------------------------------------------------------------------------------
1 |
2 | using System;
3 |
4 | namespace ProtoBuf
5 | {
6 | ///
7 | /// Used to hold particulars relating to nested objects. This is opaque to the caller - simply
8 | /// give back the token you are given at the end of an object.
9 | ///
10 | public readonly struct SubItemToken
11 | {
12 | internal readonly long value64;
13 | internal SubItemToken(int value) => value64 = value;
14 | internal SubItemToken(long value) => value64 = value;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Center.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using ProtoBuf;
3 |
4 | namespace NetMessage{
5 | [ProtoContract]
6 | class C2SMatch{
7 | }
8 |
9 | [ProtoContract]
10 | class S2CMatch{
11 | [ProtoMember(1, Name = @"res")]
12 | public bool Res { get; set; }
13 | }
14 |
15 | [ProtoContract]
16 | class S2CMatchSuccess{
17 | }
18 |
19 | [ProtoContract]
20 | class S2CGameOver{
21 | [ProtoMember(1, Name = @"score")]
22 | public long Score { get; set; }
23 | }
24 |
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoConverterAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ProtoBuf
4 | {
5 | ///
6 | /// Indicates that a static member should be considered the same as though
7 | /// were an implicit / explicit conversion operator; in particular, this
8 | /// is useful for conversions that operator syntax does not allow, such as
9 | /// to/from interface types.
10 | ///
11 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
12 | public class ProtoConverterAttribute : Attribute { }
13 | }
--------------------------------------------------------------------------------
/BallAction/.gitignore:
--------------------------------------------------------------------------------
1 | [Ll]ibrary/
2 | [Tt]emp/
3 | [Oo]bj/
4 | [Bb]uild/
5 | [Bb]uilds/
6 | Assets/AssetStoreTools*
7 |
8 | # Visual Studio cache directory
9 | .vs/
10 |
11 | # Autogenerated VS/MD/Consulo solution and project files
12 | ExportedObj/
13 | .consulo/
14 | *.csproj
15 | *.unityproj
16 | *.sln
17 | *.suo
18 | *.tmp
19 | *.user
20 | *.userprefs
21 | *.pidb
22 | *.booproj
23 | *.svd
24 | *.pdb
25 | *.opendb
26 |
27 | # Unity3D generated meta files
28 | *.pidb.meta
29 | *.pdb.meta
30 |
31 | # Unity3D Generated File On Crash Reports
32 | sysinfo.txt
33 |
34 | # Builds
35 | *.apk
36 | *.unitypackage
--------------------------------------------------------------------------------
/server/static/www/css/bootstrap-submenu.min.css:
--------------------------------------------------------------------------------
1 | .dropdown-submenu.dropright .dropdown-menu{margin-left:1px}.dropdown-submenu.dropleft .dropdown-menu{margin-right:1px}.navbar .dropdown-submenu .dropdown-menu,[x-placement^=bottom-] .dropdown-submenu .dropdown-menu{bottom:auto;margin-top:calc(-.5rem - 1px)}[x-placement^=top-] .dropdown-submenu .dropdown-menu{top:auto;bottom:0;margin-bottom:calc(-.5rem - 1px)}.dropdown-submenu.dropright>.dropdown-toggle{display:flex;justify-content:space-between;align-items:center}.dropdown-submenu.dropright>.dropdown-toggle::after{margin-right:-12px}
2 | /*# sourceMappingURL=bootstrap-submenu.min.css.map */
--------------------------------------------------------------------------------
/server/common/vector2.lua:
--------------------------------------------------------------------------------
1 | local FLOAT_MIN = 0.0000001
2 |
3 | local M = {}
4 |
5 | function M.normalize(v)
6 | local n = v.x^2+v.y^2
7 | if n==1.0 then
8 | return
9 | end
10 | n = math.sqrt(n)
11 | if n<=FLOAT_MIN then
12 | return
13 | end
14 | n = 1.0/n
15 | v.x=v.x*n
16 | v.y=v.y*n
17 | return v
18 | end
19 |
20 | function M.distance(v)
21 | return math.sqrt( v.x^2+v.y^2 )
22 | end
23 |
24 | function M.add(v1, v2 )
25 | return {x = v1.x + v2.x, y = v1.y + v2.y}
26 | end
27 |
28 | function M.mul(v, delta )
29 | return {x = v.x*delta, y = v.y*delta}
30 | end
31 |
32 | return M
--------------------------------------------------------------------------------
/server/protocol/common.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | option csharp_namespace = "NetMessage";
3 |
4 | message Vector2
5 | {
6 | float x = 1;
7 | float y = 2;
8 | }
9 |
10 | message ItemData
11 | {
12 | int32 id = 1;//道具id
13 | int64 count =2;//道具数量
14 | }
15 |
16 | message MailData{
17 | int64 id = 1;//邮件唯一ID
18 | string mail_key = 2;//邮件配置key, 因为要在代码里面写死,推荐用有意义的字符串做key
19 | int64 ctime = 3;//邮件创建时间
20 | int32 flag = 4;//1<<0:是否可领取 1<<1:是否只展示 1<<2:是否已读 1<<3:是否锁定
21 | repeated ItemData rewards = 5;//可领取奖励列表 或者 奖励展示列表
22 | int32 trace = 6;//追踪奖励邮件的来源
23 | string parmas = 7;//json格式邮件自定义参数
24 | }
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1045 &1
4 | EditorBuildSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Scenes:
8 | - enabled: 1
9 | path: Assets/Scenes/Prepare.unity
10 | guid: 2cda990e2423bbf4892e6590ba056729
11 | - enabled: 1
12 | path: Assets/Scenes/Login.unity
13 | guid: c016c30e326e1c14e91eb1b7900ce89c
14 | - enabled: 1
15 | path: Assets/Scenes/Game.unity
16 | guid: 2967181af8cda414499e7fe9bac17c7d
17 | - enabled: 1
18 | path: Assets/Scenes/MatchWait.unity
19 | guid: 9561f1445870880408c22083620fcdc0
20 | m_configObjects: {}
21 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MatchWait/MatchWait.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Text;
5 | using UnityEngine;
6 | using UnityEngine.SceneManagement;
7 | using UnityEngine.UI;
8 |
9 | public class MatchWait : MonoBehaviour
10 | {
11 | Text countDown;
12 | int time = 0;
13 | // Use this for initialization
14 | void Start()
15 | {
16 | countDown = transform.Find("CountDown").GetComponent();
17 |
18 | InvokeRepeating("CountDown", 0f, 1.0f);
19 | }
20 |
21 | void CountDown()
22 | {
23 | time++;
24 | countDown.text = string.Format("{0}s", time);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BallAction/UserSettings/EditorUserSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!162 &1
4 | EditorUserSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_ConfigSettings:
8 | RecentlyUsedScenePath-0:
9 | value: 22424703114646680e0b0227036c6f02130719382966333e243d04
10 | flags: 0
11 | vcSharedLogLevel:
12 | value: 0d5e400f0650
13 | flags: 0
14 | m_VCAutomaticAdd: 1
15 | m_VCDebugCom: 0
16 | m_VCDebugCmd: 0
17 | m_VCDebugOut: 0
18 | m_SemanticMergeMode: 2
19 | m_VCShowFailedCheckout: 1
20 | m_VCOverwriteFailedCheckoutAssets: 1
21 | m_VCProjectOverlayIcons: 1
22 | m_VCHierarchyOverlayIcons: 1
23 | m_VCOtherOverlayIcons: 1
24 | m_VCAllowAsyncUpdate: 1
25 |
--------------------------------------------------------------------------------
/server/protocol/mail.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | import "common.proto";
3 |
4 | message C2SMailList
5 | {
6 |
7 | }
8 |
9 | message S2CMailList
10 | {
11 | map mail_list = 1;
12 | }
13 |
14 | message S2CUpdateMail
15 | {
16 | repeated MailData mail_list = 1;
17 | }
18 |
19 | message C2SMailRead
20 | {
21 | int64 id = 1;
22 | }
23 |
24 | message C2SMailLock
25 | {
26 | int64 id = 1;
27 | }
28 |
29 | message C2SMailReward
30 | {
31 | repeated int64 mail_id_list = 1;
32 | }
33 |
34 | message C2SMailMark
35 | {
36 | int64 id = 1;
37 | }
38 |
39 | message C2SMailDel
40 | {
41 | repeated int64 mail_id_list = 1;
42 | }
43 |
44 | message S2CMailDel
45 | {
46 | repeated int64 mail_id_list = 1;
47 | }
--------------------------------------------------------------------------------
/server/static/www/css/global.css:
--------------------------------------------------------------------------------
1 |
2 | .login-container {
3 | padding-top: 20%;
4 | }
5 |
6 | .login-panel {
7 | background-color: rgb(242, 242, 242);
8 | }
9 |
10 | .login-content{
11 | margin: 0 auto;
12 | width: 300px;
13 | }
14 |
15 | .login-label{
16 | font-size: 150%;
17 | font-weight:bold;
18 | }
19 |
20 | .layui-input:focus
21 | {
22 | border-color:rgb(44, 201, 5)!important;
23 | box-shadow: 0 0 10px 0px #3b99fc;
24 | }
25 |
26 | .header{height: 59px; border-bottom: 1px solid #404553; background-color: #393D49;}
27 |
28 | .header .layui-nav{position: absolute;right: 0;top: 0;padding: 0;background: none;}
29 |
30 | .layui-nav-right{position: absolute;right: 100px;top: 0;padding: 0;background: none;}
31 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!78 &1
4 | TagManager:
5 | serializedVersion: 2
6 | tags: []
7 | layers:
8 | - Default
9 | - TransparentFX
10 | - Ignore Raycast
11 | -
12 | - Water
13 | - UI
14 | -
15 | -
16 | - Background
17 | -
18 | -
19 | -
20 | -
21 | -
22 | -
23 | -
24 | -
25 | -
26 | -
27 | -
28 | -
29 | -
30 | -
31 | -
32 | -
33 | -
34 | -
35 | -
36 | -
37 | -
38 | -
39 | -
40 | m_SortingLayers:
41 | - name: Default
42 | uniqueID: 0
43 | locked: 0
44 | - name: BG
45 | uniqueID: 3432636791
46 | locked: 0
47 | - name: Player
48 | uniqueID: 3006373207
49 | locked: 0
50 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/IProtoTypeSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using ProtoBuf.Meta;
3 | namespace ProtoBuf.Serializers
4 | {
5 | interface IProtoTypeSerializer : IProtoSerializer
6 | {
7 | bool HasCallbacks(TypeModel.CallbackType callbackType);
8 | bool CanCreateInstance();
9 | object CreateInstance(ProtoReader source);
10 | void Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context);
11 |
12 | #if FEAT_COMPILER
13 | void EmitCallback(Compiler.CompilerContext ctx, Compiler.Local valueFrom, TypeModel.CallbackType callbackType);
14 | #endif
15 | #if FEAT_COMPILER
16 | void EmitCreateInstance(Compiler.CompilerContext ctx);
17 | #endif
18 | }
19 | }
20 | #endif
--------------------------------------------------------------------------------
/server/protocol/annotations.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | option csharp_namespace = "NetMessage";
3 |
4 | import "common.proto";
5 |
6 | //本文件只用于描述游戏内逻辑数据结构,生成代码注解
7 |
8 | message AuthUser{
9 | uint32 addr_user = 1;//玩家服务address
10 | string openid = 2;//
11 | int64 uid = 3;//玩家uid
12 | int64 logouttime = 4;//玩家登出时间,0表示在线
13 | bool online = 5;//@是否在线
14 | }
15 |
16 | message UserData{
17 | string openid = 1;//
18 | int64 uid = 2;//玩家uid
19 | string name = 3;//玩家名字
20 | int32 level = 4;//玩家等级
21 | int32 score = 5;//玩家分数
22 | int64 logintime = 6;//玩家上线时间
23 | int64 diamond = 7;//宝石
24 | int64 gold = 8;//金币
25 | int32 chapterid = 9;//当前章节ID
26 | int64 exp = 10;//当前经验
27 | map itemlist = 11;//道具列表
28 | }
29 |
--------------------------------------------------------------------------------
/server/static/www/css/bootstrap-submenu.css:
--------------------------------------------------------------------------------
1 | .dropdown-submenu.dropright .dropdown-menu {
2 | margin-left: 1px;
3 | }
4 |
5 | .dropdown-submenu.dropleft .dropdown-menu {
6 | margin-right: 1px;
7 | }
8 |
9 | [x-placement^="bottom-"] .dropdown-submenu .dropdown-menu,
10 | .navbar .dropdown-submenu .dropdown-menu {
11 | bottom: auto;
12 | margin-top: calc(-0.5rem - 1px);
13 | }
14 |
15 | [x-placement^="top-"] .dropdown-submenu .dropdown-menu {
16 | top: auto;
17 | bottom: 0;
18 | margin-bottom: calc(-0.5rem - 1px);
19 | }
20 |
21 | .dropdown-submenu.dropright > .dropdown-toggle {
22 | display: flex;
23 | justify-content: space-between;
24 | align-items: center;
25 | }
26 |
27 | .dropdown-submenu.dropright > .dropdown-toggle::after {
28 | margin-right: -12px;
29 | }
30 |
--------------------------------------------------------------------------------
/server/protocol/user.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | option csharp_namespace = "NetMessage";
3 | import "common.proto";
4 |
5 | message S2CErrorCode
6 | {
7 | int32 code = 1;//错误码
8 | }
9 |
10 | message C2SLogin
11 | {
12 | string openid = 1;//openid
13 | }
14 |
15 | message S2CLogin
16 | {
17 | bool ok = 1; //是否登录成功
18 | int64 time = 2; //服务器当前时间ms
19 | int64 timezone = 3; //服务器当前时区
20 | }
21 |
22 | //请求到道具列表
23 | message C2SItemList
24 | {
25 |
26 | }
27 |
28 | message S2CItemList
29 | {
30 | map list = 11;//道具列表
31 | }
32 |
33 | message C2SUseItem
34 | {
35 | int32 id = 1;
36 | int64 count = 2;
37 | }
38 |
39 | message S2CUpdateItem
40 | {
41 | repeated ItemData list = 1;
42 | }
43 |
44 | message C2SHello
45 | {
46 | string hello = 1;
47 | }
48 |
49 | message S2CWorld
50 | {
51 | string world = 1;
52 | }
53 |
--------------------------------------------------------------------------------
/server/static/www/css/signin.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 40px;
3 | padding-bottom: 40px;
4 | background-color: #eee;
5 | }
6 |
7 | .form-gm {
8 | max-width: 800px;
9 | padding: 15px;
10 | margin: 0 auto;
11 | }
12 |
13 | .form-gm .form-gm-heading,
14 | .form-gm .checkbox {
15 | margin-bottom: 10px;
16 | }
17 | .form-gm .checkbox {
18 | font-weight: normal;
19 | }
20 | .form-gm .form-control {
21 | position: relative;
22 | height: auto;
23 | -webkit-box-sizing: border-box;
24 | -moz-box-sizing: border-box;
25 | box-sizing: border-box;
26 | padding: 10px;
27 | font-size: 16px;
28 | }
29 | .form-gm .form-control:focus {
30 | z-index: 2;
31 | }
32 | .form-gm input[type="command"] {
33 | margin-bottom: -1px;
34 | border-bottom-right-radius: 0;
35 | border-bottom-left-radius: 0;
36 | }
37 |
--------------------------------------------------------------------------------
/server/game/service_auth.lua:
--------------------------------------------------------------------------------
1 | local moon = require("moon")
2 | local setup = require("common.setup")
3 |
4 | ---@class auth_context:base_context
5 | ---@field uid_map table @内存加载的玩家服务信息
6 | ---@field scripts auth_scripts
7 | local context = {
8 | uid_map = {},
9 | openid_map = {},--- map
10 | auth_queue = {},
11 | service_counter = 0,
12 | scripts = {},
13 | }
14 |
15 | local command = setup(context)
16 |
17 | ---@diagnostic disable-next-line: duplicate-set-field
18 | command.hotfix = function(names)
19 | for _,u in pairs(context.uid_map) do
20 | moon.send("lua", u.addr_user, "hotfix", names)
21 | end
22 |
23 | for uid, q in pairs(context.auth_queue) do
24 | if q("counter") >0 then
25 | moon.async(function()
26 | context.scripts.Auth.SendUser(uid, "hotfix", names)
27 | end)
28 | end
29 | end
30 | end
31 |
32 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/CmdCode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Generated by the moonfly tool. DO NOT EDIT!
3 | //
4 |
5 | public enum CmdCode
6 | {
7 | C2SLogin = 1,
8 | S2CLogin = 2,
9 | C2SMatch = 3,
10 | C2SEnterRoom = 4,
11 | C2SMove = 5,
12 | S2CMatch = 6,
13 | S2CMatchSuccess = 7,
14 | S2CEnterRoom = 8,
15 | S2CMove = 9,
16 | S2CEnterView = 10,
17 | S2CLeaveView = 11,
18 | S2CUpdateRadius = 12,
19 | S2CDead = 13,
20 | S2CErrorCode = 14,
21 | S2CGameOver = 15,
22 | C2SItemList = 16,
23 | S2CItemList = 17,
24 | C2SUseItem = 18,
25 | S2CUpdateItem = 19,
26 | C2SHello = 20,
27 | S2CWorld = 21,
28 | C2SMailList = 22,
29 | S2CMailList = 23,
30 | S2CUpdateMail = 24,
31 | C2SMailRead = 25,
32 | C2SMailLock = 26,
33 | C2SMailReward = 27,
34 | C2SMailMark = 28,
35 | C2SMailDel = 29,
36 | S2CMailDel = 30,
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/server/common/ErrorCode.lua:
--------------------------------------------------------------------------------
1 |
2 | ---@enum ErrorCode
3 | local ErrorCode = {
4 | None = 0,
5 | ServerInternalError = 1,
6 | ParamInvalid = 2,
7 | ConfigError =3,
8 | OperationNotPermit = 4,
9 |
10 | ---没有这个装备
11 | EquipNotFound = 101,
12 | ---这个部位没有装备
13 | EquipSlotEmpty = 102,
14 | ---无效的装备槽位
15 | EquipInvalidSlot = 103,
16 | ---分解不存在的装备或者穿戴中的装备
17 | EquipInvalidDecompose = 104,
18 |
19 | ---正在战斗中
20 | FightAlreadyStart = 201,
21 |
22 | ---道具不足
23 | ItemNotEnough = 301,
24 | ---道具不存在
25 | ItemNotExist = 302,
26 |
27 | ---宝物相关错误码
28 | ---没有拥有该宝物
29 | TreasureNotFound = 401,
30 | ---宝物CD中
31 | TreasureInCD = 402,
32 |
33 | ---没有这个商品ID
34 | ShopItemNotExist = 501,
35 |
36 | ---商品已售
37 | ShopItemSoldOut = 502,
38 |
39 | ---兑换次数不够
40 | ExchangeNotEnough = 503,
41 |
42 |
43 | ---奖励已经领取过
44 | DailyTaskReceived = 701,
45 | }
46 |
47 | return ErrorCode
--------------------------------------------------------------------------------
/server/serverconf.lua:
--------------------------------------------------------------------------------
1 | local db_redis = {
2 | [1] = {host = "127.0.0.1", port = 6379, timeout = 1000},
3 | [2] = {host = "127.0.0.1", port = 6379, timeout = 1000}
4 | }
5 |
6 | ---注意:修改你的数据库名
7 | local db_pg = {
8 | [1] = { user = "postgres", database = "postgres", password = "123456", host = "127.0.0.1", port = 5432, connect_timeout = 1000 },
9 | [2] = { user = "postgres", database = "postgres", password = "123456", host = "127.0.0.1", port = 5432, connect_timeout = 1000 },
10 | }
11 |
12 | ---服务器相关配置
13 | local conf = {
14 | ---动态获取服务器配置地址,保证和node.json中hub的host一致
15 | ---如果有多个hub节点建议用nginx做一个负载均衡http代理
16 | NODE_ETC_URL = "http://127.0.0.1:8003/conf.node?node=%s",
17 | CLUSTER_ETC_URL = "http://127.0.0.1:8003/conf.cluster?node=%s",
18 | }
19 |
20 | ---每个区服的数据库配置
21 | conf.db = {}
22 |
23 | conf.db[1] = {redis = db_redis[1], pg = db_pg[1]}
24 | conf.db[2] = {redis = db_redis[1], pg = db_pg[1]}
25 | conf.db[3] = {redis = db_redis[1], pg = db_pg[1]}
26 |
27 | return conf
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!310 &1
4 | UnityConnectSettings:
5 | m_ObjectHideFlags: 0
6 | m_Enabled: 0
7 | m_TestMode: 0
8 | m_TestEventUrl:
9 | m_TestConfigUrl:
10 | m_TestInitMode: 0
11 | CrashReportingSettings:
12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes
13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate
14 | m_Enabled: 0
15 | m_CaptureEditorExceptions: 1
16 | UnityPurchasingSettings:
17 | m_Enabled: 0
18 | m_TestMode: 0
19 | UnityAnalyticsSettings:
20 | m_Enabled: 1
21 | m_InitializeOnStartup: 1
22 | m_TestMode: 0
23 | m_TestEventUrl:
24 | m_TestConfigUrl:
25 | UnityAdsSettings:
26 | m_Enabled: 0
27 | m_InitializeOnStartup: 1
28 | m_TestMode: 0
29 | m_IosGameId:
30 | m_AndroidGameId:
31 | m_GameIds: {}
32 | m_GameId:
33 | PerformanceReportingSettings:
34 | m_Enabled: 0
35 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "lua",
6 | "request": "launch",
7 | "tag": "normal",
8 | "name": "LuaPanda",
9 | "description": "通用模式,通常调试项目请选择此模式 | launchVer:3.2.0",
10 | "cwd": "${workspaceFolder}",
11 | "luaFileExtension": "",
12 | "connectionPort": 8818,
13 | "stopOnEntry": true,
14 | "useCHook": true,
15 | "autoPathMode": true
16 | },
17 | {
18 | "type": "lua",
19 | "request": "launch",
20 | "tag": "independent_file",
21 | "name": "LuaPanda-IndependentFile",
22 | "description": "独立文件调试模式,使用前请参考文档",
23 | "luaPath": "",
24 | "packagePath": [],
25 | "luaFileExtension": "",
26 | "connectionPort": 8820,
27 | "stopOnEntry": true,
28 | "useCHook": true
29 | }
30 | ]
31 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/CharSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class CharSerializer : UInt16Serializer
7 | {
8 | static readonly Type expectedType = typeof(char);
9 |
10 | public CharSerializer(ProtoBuf.Meta.TypeModel model) : base(model)
11 | {
12 |
13 | }
14 |
15 | public override Type ExpectedType => expectedType;
16 |
17 | public override void Write(object value, ProtoWriter dest)
18 | {
19 | ProtoWriter.WriteUInt16((ushort)(char)value, dest);
20 | }
21 |
22 | public override object Read(object value, ProtoReader source)
23 | {
24 | Helpers.DebugAssert(value == null); // since replaces
25 | return (char)source.ReadUInt16();
26 | }
27 |
28 | // no need for any special IL here; ushort and char are
29 | // interchangeable as long as there is no boxing/unboxing
30 | }
31 | }
32 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/PrefixStyle.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace ProtoBuf
3 | {
4 | ///
5 | /// Specifies the type of prefix that should be applied to messages.
6 | ///
7 | public enum PrefixStyle
8 | {
9 | ///
10 | /// No length prefix is applied to the data; the data is terminated only be the end of the stream.
11 | ///
12 | None = 0,
13 | ///
14 | /// A base-128 ("varint", the default prefix format in protobuf) length prefix is applied to the data (efficient for short messages).
15 | ///
16 | Base128 = 1,
17 | ///
18 | /// A fixed-length (little-endian) length prefix is applied to the data (useful for compatibility).
19 | ///
20 | Fixed32 = 2,
21 | ///
22 | /// A fixed-length (big-endian) length prefix is applied to the data (useful for compatibility).
23 | ///
24 | Fixed32BigEndian = 3
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/server/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "lua",
6 | "request": "launch",
7 | "tag": "normal",
8 | "name": "LuaPanda",
9 | "description": "通用模式,通常调试项目请选择此模式 | launchVer:3.2.0",
10 | "cwd": "${workspaceFolder}",
11 | "luaFileExtension": "",
12 | "connectionPort": 8818,
13 | "stopOnEntry": true,
14 | "useCHook": false,
15 | "autoPathMode": true,
16 | "updateTips": true
17 | },
18 | {
19 | "type": "lua",
20 | "request": "launch",
21 | "tag": "independent_file",
22 | "name": "LuaPanda-IndependentFile",
23 | "description": "独立文件调试模式,使用前请参考文档",
24 | "luaPath": "",
25 | "packagePath": [],
26 | "luaFileExtension": "",
27 | "connectionPort": 8820,
28 | "stopOnEntry": true,
29 | "useCHook": true
30 | }
31 | ]
32 | }
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/PackageManagerSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_ScopedRegistriesSettingsExpanded: 1
16 | oneTimeWarningShown: 0
17 | m_Registries:
18 | - m_Id: main
19 | m_Name:
20 | m_Url: https://packages.unity.com
21 | m_Scopes: []
22 | m_IsDefault: 1
23 | m_UserSelectedRegistryName:
24 | m_UserAddingNewScopedRegistry: 0
25 | m_RegistryInfoDraft:
26 | m_ErrorMessage:
27 | m_Original:
28 | m_Id:
29 | m_Name:
30 | m_Url:
31 | m_Scopes: []
32 | m_IsDefault: 0
33 | m_Modified: 0
34 | m_Name:
35 | m_Url:
36 | m_Scopes:
37 | -
38 | m_SelectedScopeIndex: 0
39 |
--------------------------------------------------------------------------------
/server/protocol/room.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 | option csharp_namespace = "NetMessage";
3 | import "common.proto";
4 |
5 | message C2SEnterRoom
6 | {
7 | string name = 1; //玩家名字
8 | }
9 |
10 | message S2CEnterRoom
11 | {
12 | int64 id = 1; //对象唯一ID
13 | int64 time = 2; //当前服务器时间ms
14 | }
15 |
16 | message C2SMove
17 | {
18 | float x = 1; //方向
19 | float y = 2;
20 | }
21 |
22 | message S2CMove
23 | {
24 | int64 id = 1; //对象唯一ID
25 | float x = 2; //当前位置x
26 | float y = 3; //当前位置y
27 | float dirx = 4; //当前方向x
28 | float diry = 5; //当前方向y
29 | int64 movetime = 6; //当前服务器时间ms
30 | }
31 |
32 | message S2CEnterView
33 | {
34 | int64 id = 1;
35 | float x = 2;
36 | float y = 3;
37 | float radius = 4;
38 | int64 spriteid = 5;
39 | float speed = 6;
40 | Vector2 dir = 7;
41 | string name = 8;
42 | int64 movetime = 9;
43 | }
44 |
45 | message S2CLeaveView
46 | {
47 | int64 id = 1; //对象唯一ID
48 | }
49 |
50 | message S2CUpdateRadius
51 | {
52 | int64 id = 1;
53 | float radius = 2;
54 | }
55 |
56 | message S2CDead
57 | {
58 | int64 id = 1;
59 | }
60 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeAddedEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ProtoBuf.Meta
4 | {
5 | ///
6 | /// Event data associated with new types being added to a model
7 | ///
8 | public sealed class TypeAddedEventArgs : EventArgs
9 | {
10 | internal TypeAddedEventArgs(MetaType metaType)
11 | {
12 | MetaType = metaType;
13 | ApplyDefaultBehaviour = true;
14 | }
15 |
16 | ///
17 | /// Whether or not to apply the default mapping behavior
18 | ///
19 | public bool ApplyDefaultBehaviour { get; set; }
20 | ///
21 | /// The configuration of the type being added
22 | ///
23 | public MetaType MetaType { get; }
24 | ///
25 | /// The type that was added to the model
26 | ///
27 | public Type Type => MetaType.Type;
28 | ///
29 | /// The model that is being changed
30 | ///
31 | public RuntimeTypeModel Model => MetaType.Model as RuntimeTypeModel;
32 | }
33 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/IExtensible.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace ProtoBuf
3 | {
4 | ///
5 | /// Indicates that the implementing type has support for protocol-buffer
6 | /// extensions.
7 | ///
8 | /// Can be implemented by deriving from Extensible.
9 | public interface IExtensible
10 | {
11 | ///
12 | /// Retrieves the extension object for the current
13 | /// instance, optionally creating it if it does not already exist.
14 | ///
15 | /// Should a new extension object be
16 | /// created if it does not already exist?
17 | /// The extension object if it exists (or was created), or null
18 | /// if the extension object does not exist or is not available.
19 | /// The createIfMissing argument is false during serialization,
20 | /// and true during deserialization upon encountering unexpected fields.
21 | IExtension GetExtensionObject(bool createIfMissing);
22 | }
23 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ProtoDecoratorBase.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | abstract class ProtoDecoratorBase : IProtoSerializer
7 | {
8 | public abstract Type ExpectedType { get; }
9 | protected readonly IProtoSerializer Tail;
10 | protected ProtoDecoratorBase(IProtoSerializer tail) { this.Tail = tail; }
11 | public abstract bool ReturnsValue { get; }
12 | public abstract bool RequiresOldValue { get; }
13 | public abstract void Write(object value, ProtoWriter dest);
14 | public abstract object Read(object value, ProtoReader source);
15 |
16 | #if FEAT_COMPILER
17 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { EmitWrite(ctx, valueFrom); }
18 | protected abstract void EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom);
19 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { EmitRead(ctx, valueFrom); }
20 | protected abstract void EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom);
21 | #endif
22 | }
23 | }
24 | #endif
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!55 &1
4 | PhysicsManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 7
7 | m_Gravity: {x: 0, y: -9.81, z: 0}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_BounceThreshold: 2
10 | m_SleepThreshold: 0.005
11 | m_DefaultContactOffset: 0.01
12 | m_DefaultSolverIterations: 6
13 | m_DefaultSolverVelocityIterations: 1
14 | m_QueriesHitBackfaces: 0
15 | m_QueriesHitTriggers: 1
16 | m_EnableAdaptiveForce: 0
17 | m_ClothInterCollisionDistance: 0
18 | m_ClothInterCollisionStiffness: 0
19 | m_ContactsGeneration: 1
20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 | m_AutoSimulation: 1
22 | m_AutoSyncTransforms: 1
23 | m_ClothInterCollisionSettingsToggle: 0
24 | m_ContactPairsMode: 0
25 | m_BroadphaseType: 0
26 | m_WorldBounds:
27 | m_Center: {x: 0, y: 0, z: 0}
28 | m_Extent: {x: 250, y: 250, z: 250}
29 | m_WorldSubdivisions: 8
30 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | #if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
4 | using System.Runtime.Serialization;
5 | #endif
6 | namespace ProtoBuf
7 | {
8 | ///
9 | /// Indicates an error during serialization/deserialization of a proto stream.
10 | ///
11 | #if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
12 | [Serializable]
13 | #endif
14 | public class ProtoException : Exception
15 | {
16 | /// Creates a new ProtoException instance.
17 | public ProtoException() { }
18 |
19 | /// Creates a new ProtoException instance.
20 | public ProtoException(string message) : base(message) { }
21 |
22 | /// Creates a new ProtoException instance.
23 | public ProtoException(string message, Exception innerException) : base(message, innerException) { }
24 |
25 | #if PLAT_BINARYFORMATTER && !(COREFX || PROFILE259)
26 | /// Creates a new ProtoException instance.
27 | protected ProtoException(SerializationInfo info, StreamingContext context) : base(info, context) { }
28 | #endif
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoBehaviorExtensionElement.cs:
--------------------------------------------------------------------------------
1 | #if FEAT_SERVICEMODEL && PLAT_XMLSERIALIZER && FEAT_SERVICECONFIGMODEL
2 | using System;
3 | using System.ServiceModel.Configuration;
4 |
5 | namespace ProtoBuf.ServiceModel
6 | {
7 | ///
8 | /// Configuration element to swap out DatatContractSerilaizer with the XmlProtoSerializer for a given endpoint.
9 | ///
10 | ///
11 | public class ProtoBehaviorExtension : BehaviorExtensionElement
12 | {
13 | ///
14 | /// Creates a new ProtoBehaviorExtension instance.
15 | ///
16 | public ProtoBehaviorExtension() { }
17 | ///
18 | /// Gets the type of behavior.
19 | ///
20 | public override Type BehaviorType => typeof(ProtoEndpointBehavior);
21 |
22 | ///
23 | /// Creates a behavior extension based on the current configuration settings.
24 | ///
25 | /// The behavior extension.
26 | protected override object CreateBehavior() => new ProtoEndpointBehavior();
27 | }
28 | }
29 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MessageBox/MessageBox.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using System.Collections.Generic;
3 |
4 | public class MessageBox : MonoBehaviour
5 | {
6 | List waringList = new List();
7 |
8 | static MessageBox instace;
9 | MessageBoxWnd wnd;
10 |
11 | void Awake()
12 | {
13 | instace = this;
14 | wnd = GetComponent();
15 | }
16 |
17 | // Use this for initialization
18 | void Start()
19 | {
20 | }
21 |
22 | // Update is called once per frame
23 | void Update()
24 | {
25 | if (waringList.Count > 0)
26 | {
27 | MessageBoxContext err = waringList[0];
28 | waringList.RemoveAt(0);
29 | wnd.active(err);
30 | }
31 | }
32 |
33 | void Add(MessageBoxContext ctx)
34 | {
35 | waringList.Add(ctx);
36 | Update();
37 | }
38 |
39 | public static void Show(string text, MessageBoxCallBack callBack = null)
40 | {
41 | instace.Add(new MessageBoxContext(text, callBack));
42 | }
43 |
44 | public static void SetVisible(bool show)
45 | {
46 | instace.wnd.SetVisible(show);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoMapAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ProtoBuf
4 | {
5 | ///
6 | /// Controls the formatting of elements in a dictionary, and indicates that
7 | /// "map" rules should be used: duplicates *replace* earlier values, rather
8 | /// than throwing an exception
9 | ///
10 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
11 | public class ProtoMapAttribute : Attribute
12 | {
13 | ///
14 | /// Describes the data-format used to store the key
15 | ///
16 | public DataFormat KeyFormat { get; set; }
17 | ///
18 | /// Describes the data-format used to store the value
19 | ///
20 | public DataFormat ValueFormat { get; set; }
21 |
22 | ///
23 | /// Disables "map" handling; dictionaries will use ".Add(key,value)" instead of "[key] = value",
24 | /// which means duplicate keys will cause an exception (instead of retaining the final value); if
25 | /// a proto schema is emitted, it will be produced using "repeated" instead of "map"
26 | ///
27 | public bool DisableMap { get; set; }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!159 &1
4 | EditorSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 9
7 | m_ExternalVersionControlSupport: Visible Meta Files
8 | m_SerializationMode: 2
9 | m_LineEndingsForNewScripts: 2
10 | m_DefaultBehaviorMode: 1
11 | m_PrefabRegularEnvironment: {fileID: 0}
12 | m_PrefabUIEnvironment: {fileID: 0}
13 | m_SpritePackerMode: 2
14 | m_SpritePackerPaddingPower: 1
15 | m_EtcTextureCompressorBehavior: 1
16 | m_EtcTextureFastCompressor: 1
17 | m_EtcTextureNormalCompressor: 2
18 | m_EtcTextureBestCompressor: 4
19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref
20 | m_ProjectGenerationRootNamespace:
21 | m_CollabEditorSettings:
22 | inProgressEnabled: 1
23 | m_EnableTextureStreamingInEditMode: 1
24 | m_EnableTextureStreamingInPlayMode: 1
25 | m_AsyncShaderCompilation: 1
26 | m_EnterPlayModeOptionsEnabled: 0
27 | m_EnterPlayModeOptions: 3
28 | m_ShowLightmapResolutionOverlay: 1
29 | m_UseLegacyProbeSampleCount: 1
30 | m_AssetPipelineMode: 1
31 | m_CacheServerMode: 0
32 | m_CacheServerEndpoint:
33 | m_CacheServerNamespacePrefix: default
34 | m_CacheServerEnableDownload: 1
35 | m_CacheServerEnableUpload: 1
36 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoEnumAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ProtoBuf
4 | {
5 | ///
6 | /// Used to define protocol-buffer specific behavior for
7 | /// enumerated values.
8 | ///
9 | [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
10 | public sealed class ProtoEnumAttribute : Attribute
11 | {
12 | ///
13 | /// Gets or sets the specific value to use for this enum during serialization.
14 | ///
15 | public int Value
16 | {
17 | get { return enumValue; }
18 | set { this.enumValue = value; hasValue = true; }
19 | }
20 |
21 | ///
22 | /// Indicates whether this instance has a customised value mapping
23 | ///
24 | /// true if a specific value is set
25 | public bool HasValue() => hasValue;
26 |
27 | private bool hasValue;
28 | private int enumValue;
29 |
30 | ///
31 | /// Gets or sets the defined name of the enum, as used in .proto
32 | /// (this name is not used during serialization).
33 | ///
34 | public string Name { get; set; }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/Prepare/Prepare.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using UnityEngine.SceneManagement;
3 |
4 | public class Prepare: MonoBehaviour {
5 |
6 | static public Prepare instance;
7 | bool isInit = false;
8 | GameObject go;
9 | GameObject mbox;
10 |
11 | void Awake()
12 | {
13 | instance = this;
14 | if (!isInit)
15 | {
16 | go = new GameObject("DontDestroy");
17 | go.AddComponent();
18 | mbox = Instantiate((GameObject)Resources.Load("Prefab/MessageBox"));
19 | mbox.transform.parent = go.transform;
20 | isInit = true;
21 | DontDestroyOnLoad(go);
22 |
23 | Network.OnError = (connectId, errmsg) =>
24 | {
25 | var str = string.Format("Sessonid: {0} ErrorMessage: {1}", connectId, errmsg);
26 | if(connectId == UserData.GameSeverID)
27 | {
28 | MessageBox.Show(str, (res) => {
29 | SceneManager.LoadScene("Login");
30 | });
31 | }
32 | Debug.Log(str);
33 | };
34 | }
35 | }
36 |
37 | // Use this for initialization
38 | void Start () {
39 | SceneManager.LoadScene("Login");
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ImplicitFields.cs:
--------------------------------------------------------------------------------
1 | namespace ProtoBuf
2 | {
3 | ///
4 | /// Specifies the method used to infer field tags for members of the type
5 | /// under consideration. Tags are deduced using the invariant alphabetic
6 | /// sequence of the members' names; this makes implicit field tags very brittle,
7 | /// and susceptible to changes such as field names (normally an isolated
8 | /// change).
9 | ///
10 | public enum ImplicitFields
11 | {
12 | ///
13 | /// No members are serialized implicitly; all members require a suitable
14 | /// attribute such as [ProtoMember]. This is the recmomended mode for
15 | /// most scenarios.
16 | ///
17 | None = 0,
18 | ///
19 | /// Public properties and fields are eligible for implicit serialization;
20 | /// this treats the public API as a contract. Ordering beings from ImplicitFirstTag.
21 | ///
22 | AllPublic = 1,
23 | ///
24 | /// Public and non-public fields are eligible for implicit serialization;
25 | /// this acts as a state/implementation serializer. Ordering beings from ImplicitFirstTag.
26 | ///
27 | AllFields = 2
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int64Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class Int64Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(long);
9 |
10 | public Int64Serializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public object Read(object value, ProtoReader source)
19 | {
20 | Helpers.DebugAssert(value == null); // since replaces
21 | return source.ReadInt64();
22 | }
23 |
24 | public void Write(object value, ProtoWriter dest)
25 | {
26 | ProtoWriter.WriteInt64((long)value, dest);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteInt64", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead("ReadInt64", ExpectedType);
37 | }
38 | #endif
39 | }
40 | }
41 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int32Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class Int32Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(int);
9 |
10 | public Int32Serializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public object Read(object value, ProtoReader source)
19 | {
20 | Helpers.DebugAssert(value == null); // since replaces
21 | return source.ReadInt32();
22 | }
23 |
24 | public void Write(object value, ProtoWriter dest)
25 | {
26 | ProtoWriter.WriteInt32((int)value, dest);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteInt32", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead("ReadInt32", ExpectedType);
37 | }
38 | #endif
39 |
40 | }
41 | }
42 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/Int16Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class Int16Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(short);
9 |
10 | public Int16Serializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public object Read(object value, ProtoReader source)
19 | {
20 | Helpers.DebugAssert(value == null); // since replaces
21 | return source.ReadInt16();
22 | }
23 |
24 | public void Write(object value, ProtoWriter dest)
25 | {
26 | ProtoWriter.WriteInt16((short)value, dest);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteInt16", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead("ReadInt16", ExpectedType);
37 | }
38 | #endif
39 |
40 | }
41 | }
42 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/BooleanSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class BooleanSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(bool);
9 |
10 | public BooleanSerializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | public void Write(object value, ProtoWriter dest)
15 | {
16 | ProtoWriter.WriteBoolean((bool)value, dest);
17 | }
18 |
19 | public object Read(object value, ProtoReader source)
20 | {
21 | Helpers.DebugAssert(value == null); // since replaces
22 | return source.ReadBoolean();
23 | }
24 |
25 | bool IProtoSerializer.RequiresOldValue => false;
26 |
27 | bool IProtoSerializer.ReturnsValue => true;
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteBoolean", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead("ReadBoolean", ExpectedType);
37 | }
38 | #endif
39 | }
40 | }
41 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/ByteSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class ByteSerializer : IProtoSerializer
7 | {
8 | public Type ExpectedType { get { return expectedType; } }
9 |
10 | static readonly Type expectedType = typeof(byte);
11 |
12 | public ByteSerializer(ProtoBuf.Meta.TypeModel model) { }
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public void Write(object value, ProtoWriter dest)
19 | {
20 | ProtoWriter.WriteByte((byte)value, dest);
21 | }
22 |
23 | public object Read(object value, ProtoReader source)
24 | {
25 | Helpers.DebugAssert(value == null); // since replaces
26 | return source.ReadByte();
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteByte", valueFrom);
33 | }
34 |
35 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
36 | {
37 | ctx.EmitBasicRead("ReadByte", ExpectedType);
38 | }
39 | #endif
40 | }
41 | }
42 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DoubleSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class DoubleSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(double);
9 |
10 | public DoubleSerializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public object Read(object value, ProtoReader source)
19 | {
20 | Helpers.DebugAssert(value == null); // since replaces
21 | return source.ReadDouble();
22 | }
23 |
24 | public void Write(object value, ProtoWriter dest)
25 | {
26 | ProtoWriter.WriteDouble((double)value, dest);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteDouble", valueFrom);
33 | }
34 |
35 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
36 | {
37 | ctx.EmitBasicRead("ReadDouble", ExpectedType);
38 | }
39 | #endif
40 | }
41 | }
42 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/StringSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class StringSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(string);
9 |
10 | public StringSerializer(ProtoBuf.Meta.TypeModel model)
11 | {
12 | }
13 |
14 | public Type ExpectedType => expectedType;
15 |
16 | public void Write(object value, ProtoWriter dest)
17 | {
18 | ProtoWriter.WriteString((string)value, dest);
19 | }
20 | bool IProtoSerializer.RequiresOldValue => false;
21 |
22 | bool IProtoSerializer.ReturnsValue => true;
23 |
24 | public object Read(object value, ProtoReader source)
25 | {
26 | Helpers.DebugAssert(value == null); // since replaces
27 | return source.ReadString();
28 | }
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitBasicWrite("WriteString", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead("ReadString", ExpectedType);
37 | }
38 | #endif
39 | }
40 | }
41 | #endif
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/MemorySettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!387306366 &1
4 | MemorySettings:
5 | m_ObjectHideFlags: 0
6 | m_EditorMemorySettings:
7 | m_MainAllocatorBlockSize: -1
8 | m_ThreadAllocatorBlockSize: -1
9 | m_MainGfxBlockSize: -1
10 | m_ThreadGfxBlockSize: -1
11 | m_CacheBlockSize: -1
12 | m_TypetreeBlockSize: -1
13 | m_ProfilerBlockSize: -1
14 | m_ProfilerEditorBlockSize: -1
15 | m_BucketAllocatorGranularity: -1
16 | m_BucketAllocatorBucketsCount: -1
17 | m_BucketAllocatorBlockSize: -1
18 | m_BucketAllocatorBlockCount: -1
19 | m_ProfilerBucketAllocatorGranularity: -1
20 | m_ProfilerBucketAllocatorBucketsCount: -1
21 | m_ProfilerBucketAllocatorBlockSize: -1
22 | m_ProfilerBucketAllocatorBlockCount: -1
23 | m_TempAllocatorSizeMain: -1
24 | m_JobTempAllocatorBlockSize: -1
25 | m_BackgroundJobTempAllocatorBlockSize: -1
26 | m_JobTempAllocatorReducedBlockSize: -1
27 | m_TempAllocatorSizeGIBakingWorker: -1
28 | m_TempAllocatorSizeNavMeshWorker: -1
29 | m_TempAllocatorSizeAudioWorker: -1
30 | m_TempAllocatorSizeCloudWorker: -1
31 | m_TempAllocatorSizeGfx: -1
32 | m_TempAllocatorSizeJobWorker: -1
33 | m_TempAllocatorSizeBackgroundWorker: -1
34 | m_TempAllocatorSizePreloadManager: -1
35 | m_PlatformMemorySettings: {}
36 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt64Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class UInt64Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(ulong);
9 |
10 | public UInt64Serializer(ProtoBuf.Meta.TypeModel model)
11 | {
12 |
13 | }
14 | public Type ExpectedType => expectedType;
15 |
16 | bool IProtoSerializer.RequiresOldValue => false;
17 |
18 | bool IProtoSerializer.ReturnsValue => true;
19 |
20 | public object Read(object value, ProtoReader source)
21 | {
22 | Helpers.DebugAssert(value == null); // since replaces
23 | return source.ReadUInt64();
24 | }
25 |
26 | public void Write(object value, ProtoWriter dest)
27 | {
28 | ProtoWriter.WriteUInt64((ulong)value, dest);
29 | }
30 |
31 | #if FEAT_COMPILER
32 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
33 | {
34 | ctx.EmitBasicWrite("WriteUInt64", valueFrom);
35 | }
36 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
37 | {
38 | ctx.EmitBasicRead("ReadUInt64", ExpectedType);
39 | }
40 | #endif
41 | }
42 | }
43 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SByteSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class SByteSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(sbyte);
9 |
10 | public SByteSerializer(ProtoBuf.Meta.TypeModel model)
11 | {
12 |
13 | }
14 |
15 | public Type ExpectedType => expectedType;
16 |
17 | bool IProtoSerializer.RequiresOldValue => false;
18 |
19 | bool IProtoSerializer.ReturnsValue => true;
20 |
21 | public object Read(object value, ProtoReader source)
22 | {
23 | Helpers.DebugAssert(value == null); // since replaces
24 | return source.ReadSByte();
25 | }
26 |
27 | public void Write(object value, ProtoWriter dest)
28 | {
29 | ProtoWriter.WriteSByte((sbyte)value, dest);
30 | }
31 |
32 | #if FEAT_COMPILER
33 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
34 | {
35 | ctx.EmitBasicWrite("WriteSByte", valueFrom);
36 | }
37 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
38 | {
39 | ctx.EmitBasicRead("ReadSByte", ExpectedType);
40 | }
41 | #endif
42 |
43 | }
44 | }
45 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt32Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class UInt32Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(uint);
9 |
10 | public UInt32Serializer(ProtoBuf.Meta.TypeModel model)
11 | {
12 |
13 | }
14 |
15 | public Type ExpectedType => expectedType;
16 |
17 | bool IProtoSerializer.RequiresOldValue => false;
18 |
19 | bool IProtoSerializer.ReturnsValue => true;
20 |
21 | public object Read(object value, ProtoReader source)
22 | {
23 | Helpers.DebugAssert(value == null); // since replaces
24 | return source.ReadUInt32();
25 | }
26 |
27 | public void Write(object value, ProtoWriter dest)
28 | {
29 | ProtoWriter.WriteUInt32((uint)value, dest);
30 | }
31 | #if FEAT_COMPILER
32 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
33 | {
34 | ctx.EmitBasicWrite("WriteUInt32", valueFrom);
35 | }
36 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
37 | {
38 | ctx.EmitBasicRead("ReadUInt32", ctx.MapType(typeof(uint)));
39 | }
40 | #endif
41 | }
42 | }
43 | #endif
--------------------------------------------------------------------------------
/server/common/GameDef.lua:
--------------------------------------------------------------------------------
1 | local fs = require("fs")
2 |
3 | ---游戏逻辑相关配置
4 |
5 | local M = {
6 | PTYPE_C2S = 100,--- client to server
7 | PTYPE_S2C = 101,--- server to client
8 | PTYPE_SBC = 102,---server broadcast to client
9 |
10 | ---Entity Type Define
11 | TypeRoom = 1,
12 | TypeFood = 2,
13 | TypeMail = 3,
14 | ---
15 |
16 | AoiEvent = {
17 | UpdateDir = 10,
18 | UpdateRadius = 11,
19 | },
20 |
21 | ---@enum MailFlag
22 | MailFlag = {
23 | --- 已领取
24 | Taked = 1,
25 | --- 只展示
26 | ShowOnly = 2,
27 | --- 已读
28 | Read = 4,
29 | --- 已锁定
30 | Locked = 8,
31 | --- 已收藏
32 | Marked = 16,
33 | },
34 | }
35 |
36 | function M.LogShrinkToFit(dir, nameprefix, maxcount)
37 | local logfiles = {}
38 | local log_filename_start = nameprefix
39 | local list = fs.listdir(dir)
40 | for _, file in ipairs(list) do
41 | if not fs.isdir(file) then
42 | local match = string.gmatch(fs.stem(file), "%a+-%d+")()
43 | if match and match == log_filename_start then
44 | table.insert(logfiles, file)
45 | end
46 | end
47 | end
48 |
49 | table.sort(logfiles)
50 | while #logfiles > maxcount do
51 | fs.remove(table.remove(logfiles, 1))
52 | end
53 | end
54 |
55 | return M
56 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SingleSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 | using ProtoBuf.Meta;
4 |
5 | namespace ProtoBuf.Serializers
6 | {
7 | sealed class SingleSerializer : IProtoSerializer
8 | {
9 | static readonly Type expectedType = typeof(float);
10 |
11 | public Type ExpectedType { get { return expectedType; } }
12 |
13 | public SingleSerializer(TypeModel model)
14 | {
15 | }
16 |
17 | bool IProtoSerializer.RequiresOldValue => false;
18 |
19 | bool IProtoSerializer.ReturnsValue => true;
20 |
21 | public object Read(object value, ProtoReader source)
22 | {
23 | Helpers.DebugAssert(value == null); // since replaces
24 | return source.ReadSingle();
25 | }
26 |
27 | public void Write(object value, ProtoWriter dest)
28 | {
29 | ProtoWriter.WriteSingle((float)value, dest);
30 | }
31 |
32 |
33 | #if FEAT_COMPILER
34 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicWrite("WriteSingle", valueFrom);
37 | }
38 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
39 | {
40 | ctx.EmitBasicRead("ReadSingle", ExpectedType);
41 | }
42 | #endif
43 | }
44 | }
45 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/UInt16Serializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | class UInt16Serializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(ushort);
9 |
10 | public UInt16Serializer(ProtoBuf.Meta.TypeModel model)
11 | {
12 | }
13 |
14 | public virtual Type ExpectedType => expectedType;
15 |
16 | bool IProtoSerializer.RequiresOldValue => false;
17 |
18 | bool IProtoSerializer.ReturnsValue => true;
19 |
20 | public virtual object Read(object value, ProtoReader source)
21 | {
22 | Helpers.DebugAssert(value == null); // since replaces
23 | return source.ReadUInt16();
24 | }
25 |
26 | public virtual void Write(object value, ProtoWriter dest)
27 | {
28 | ProtoWriter.WriteUInt16((ushort)value, dest);
29 | }
30 |
31 | #if FEAT_COMPILER
32 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
33 | {
34 | ctx.EmitBasicWrite("WriteUInt16", valueFrom);
35 | }
36 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
37 | {
38 | ctx.EmitBasicRead("ReadUInt16", ctx.MapType(typeof(ushort)));
39 | }
40 | #endif
41 | }
42 | }
43 | #endif
--------------------------------------------------------------------------------
/server/static/table/example.lua:
--------------------------------------------------------------------------------
1 | ---@class example_cfg
2 | ---@field public id integer @序列号
3 | ---@field public name string @名字
4 | ---@field public rate integer @概率(万分比)
5 | ---@field public cost integer[] @等级消耗,数组类型
6 | ---@field public open boolean @是否开启
7 | ---@field public srcpath string @资源路径
8 | ---@field public values table @属性
9 | ---@field public map table @字典
10 |
11 | local M = {
12 | [3] = {
13 | id = 3,
14 | name = 'chui',
15 | rate = 1000,
16 | cost = {1,2,3,4},
17 | open = true,
18 | srcpath = 'D:/1.png',
19 | values = {
20 | v6 = 2,
21 | v61 = 3,
22 | },
23 | map = {[1] = 2,[3] = 4,[5] = 6},
24 | },
25 | [4] = {
26 | id = 4,
27 | name = '王大锤',
28 | rate = 1000,
29 | cost = {1,2,3,4},
30 | open = false,
31 | srcpath = 'D:/1.png',
32 | values = {
33 | v11 = 2,
34 | v12 = 3,
35 | },
36 | map = {[1] = 2,[3] = 4,[5] = 6},
37 | },
38 | [101] = {
39 | id = 101,
40 | name = 'wang',
41 | rate = 1000,
42 | cost = {1,2,3,4},
43 | open = true,
44 | srcpath = 'D:/1.png',
45 | values = {
46 | v1 = 2,
47 | v2 = 100,
48 | },
49 | map = {[1] = 2,[3] = 4,[5] = 6},
50 | },
51 | [201] = {
52 | id = 201,
53 | name = 'da',
54 | rate = 1000,
55 | cost = {1,2,3,4},
56 | open = false,
57 | srcpath = 'D:/1.png',
58 | values = {
59 | v5 = 2,
60 | v51 = 3,
61 | },
62 | map = {[1] = 2,[3] = 4,[5] = 6},
63 | },
64 | }
65 | return M
66 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/SystemTypeSerializer.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | #if !NO_RUNTIME
4 |
5 | namespace ProtoBuf.Serializers
6 | {
7 | sealed class SystemTypeSerializer : IProtoSerializer
8 | {
9 | static readonly Type expectedType = typeof(Type);
10 |
11 | public SystemTypeSerializer(ProtoBuf.Meta.TypeModel model)
12 | {
13 |
14 | }
15 |
16 | public Type ExpectedType => expectedType;
17 |
18 | void IProtoSerializer.Write(object value, ProtoWriter dest)
19 | {
20 | ProtoWriter.WriteType((Type)value, dest);
21 | }
22 |
23 | object IProtoSerializer.Read(object value, ProtoReader source)
24 | {
25 | Helpers.DebugAssert(value == null); // since replaces
26 | return source.ReadType();
27 | }
28 |
29 | bool IProtoSerializer.RequiresOldValue => false;
30 |
31 | bool IProtoSerializer.ReturnsValue => true;
32 |
33 | #if FEAT_COMPILER
34 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicWrite("WriteType", valueFrom);
37 | }
38 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
39 | {
40 | ctx.EmitBasicRead("ReadType", ExpectedType);
41 | }
42 | #endif
43 | }
44 | }
45 |
46 | #endif
47 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/GuidSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class GuidSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(Guid);
9 |
10 | public GuidSerializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType { get { return expectedType; } }
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public void Write(object value, ProtoWriter dest)
19 | {
20 | BclHelpers.WriteGuid((Guid)value, dest);
21 | }
22 |
23 | public object Read(object value, ProtoReader source)
24 | {
25 | Helpers.DebugAssert(value == null); // since replaces
26 | return BclHelpers.ReadGuid(source);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitWrite(ctx.MapType(typeof(BclHelpers)), "WriteGuid", valueFrom);
33 | }
34 |
35 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
36 | {
37 | ctx.EmitBasicRead(ctx.MapType(typeof(BclHelpers)), "ReadGuid", ExpectedType);
38 | }
39 | #endif
40 |
41 | }
42 | }
43 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/DecimalSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class DecimalSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(decimal);
9 |
10 | public DecimalSerializer(ProtoBuf.Meta.TypeModel model) { }
11 |
12 | public Type ExpectedType => expectedType;
13 |
14 | bool IProtoSerializer.RequiresOldValue => false;
15 |
16 | bool IProtoSerializer.ReturnsValue => true;
17 |
18 | public object Read(object value, ProtoReader source)
19 | {
20 | Helpers.DebugAssert(value == null); // since replaces
21 | return BclHelpers.ReadDecimal(source);
22 | }
23 |
24 | public void Write(object value, ProtoWriter dest)
25 | {
26 | BclHelpers.WriteDecimal((decimal)value, dest);
27 | }
28 |
29 | #if FEAT_COMPILER
30 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
31 | {
32 | ctx.EmitWrite(ctx.MapType(typeof(BclHelpers)), "WriteDecimal", valueFrom);
33 | }
34 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
35 | {
36 | ctx.EmitBasicRead(ctx.MapType(typeof(BclHelpers)), "ReadDecimal", ExpectedType);
37 | }
38 | #endif
39 |
40 | }
41 | }
42 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Common.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using ProtoBuf;
3 |
4 | namespace NetMessage{
5 | [ProtoContract]
6 | class Vector2{
7 | [ProtoMember(1, Name = @"x")]
8 | public float X { get; set; }
9 | [ProtoMember(2, Name = @"y")]
10 | public float Y { get; set; }
11 | }
12 |
13 | [ProtoContract]
14 | class ItemData{
15 | [ProtoMember(1, Name = @"id")]
16 | public int Id { get; set; }//道具id
17 | [ProtoMember(2, Name = @"count")]
18 | public long Count { get; set; }//道具数量
19 | }
20 |
21 | [ProtoContract]
22 | class MailData{
23 | [ProtoMember(1, Name = @"id")]
24 | public long Id { get; set; }//邮件唯一ID
25 | [ProtoMember(2, Name = @"mail_key")]
26 | public string MailKey { get; set; }//邮件配置key, 因为要在代码里面写死,推荐用有意义的字符串做key
27 | [ProtoMember(3, Name = @"ctime")]
28 | public long Ctime { get; set; }//邮件创建时间
29 | [ProtoMember(4, Name = @"flag")]
30 | public int Flag { get; set; }//1<<0:是否可领取 1<<1:是否只展示 1<<2:是否已读 1<<3:是否锁定
31 | [ProtoMember(5,Name = @"rewards")]
32 | public List Rewards { get; set; }//可领取奖励列表 或者 奖励展示列表
33 | [ProtoMember(6, Name = @"trace")]
34 | public int Trace { get; set; }//追踪奖励邮件的来源
35 | [ProtoMember(7, Name = @"parmas")]
36 | public string Parmas { get; set; }//json格式邮件自定义参数
37 | }
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/server/game/user/UserModel.lua:
--------------------------------------------------------------------------------
1 | local moon = require("moon")
2 | local common = require("common")
3 | local Database = common.Database
4 |
5 | ----DB Model 标准定义格式
6 |
7 | ---@type user_context
8 | local context = ...
9 |
10 | ---定时存储标记
11 | local dirty = false
12 |
13 | ---@type UserData
14 | local DBData
15 |
16 | ---@class UserModel
17 | local UserModel = {}
18 |
19 | function UserModel.Create(data)
20 |
21 | if DBData then
22 | return DBData
23 | end
24 |
25 | DBData = data
26 |
27 | ---定义自动存储
28 | moon.async(function()
29 | while true do
30 | moon.sleep(5000)
31 | if dirty then
32 | local ok, err = xpcall(UserModel.Save, debug.traceback, true)
33 | if not ok then
34 | moon.error(err)
35 | end
36 | end
37 | end
38 | end)
39 |
40 | return data
41 | end
42 |
43 | ---需要立刻保存重要数据时,使用这个函数,参数使用默认值即可
44 | ---@param checkDirty? boolean
45 | function UserModel.Save(checkDirty)
46 | if checkDirty and not dirty then
47 | return
48 | end
49 | Database.saveuser(context.addr_db_user, DBData.uid, DBData)
50 | dirty = false
51 | end
52 |
53 | ---只读,使用这个函数
54 | ---@return UserData
55 | function UserModel.Get()
56 | return DBData
57 | end
58 |
59 | ---需要修改数据时,使用这个函数
60 | ---@return UserData
61 | function UserModel.MutGet()
62 | dirty = true
63 | return DBData
64 | end
65 |
66 | return UserModel
--------------------------------------------------------------------------------
/BallAction/001/TemplateData/style.css:
--------------------------------------------------------------------------------
1 | body { padding: 0; margin: 0 }
2 | #unity-container { position: absolute }
3 | #unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
4 | #unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
5 | #unity-canvas { background: #231F20 }
6 | .unity-mobile #unity-canvas { width: 100%; height: 100% }
7 | #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
8 | #unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
9 | #unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
10 | #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
11 | #unity-footer { position: relative }
12 | .unity-mobile #unity-footer { display: none }
13 | #unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
14 | #unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
15 | #unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
16 | #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
17 |
--------------------------------------------------------------------------------
/BallAction/BallAction.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-firstpass", "Assembly-CSharp-firstpass.csproj", "{FADCFD26-7F0B-4EAB-0FE8-13F5460B9E80}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{714C8FA3-4EE9-3003-024F-1B3AAFC66C88}"
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 | {FADCFD26-7F0B-4EAB-0FE8-13F5460B9E80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {FADCFD26-7F0B-4EAB-0FE8-13F5460B9E80}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {FADCFD26-7F0B-4EAB-0FE8-13F5460B9E80}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {FADCFD26-7F0B-4EAB-0FE8-13F5460B9E80}.Release|Any CPU.Build.0 = Release|Any CPU
18 | {714C8FA3-4EE9-3003-024F-1B3AAFC66C88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {714C8FA3-4EE9-3003-024F-1B3AAFC66C88}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {714C8FA3-4EE9-3003-024F-1B3AAFC66C88}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {714C8FA3-4EE9-3003-024F-1B3AAFC66C88}.Release|Any CPU.Build.0 = Release|Any CPU
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/server/.emmyrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "completion": {
3 | "enable": true,
4 | "autoRequire": true,
5 | "autoRequireFunction": "require",
6 | "autoRequireNamingConvention": "keep",
7 | "callSnippet": false,
8 | "postfix": "@"
9 | },
10 | "signature": {
11 | "detailSignatureHelper": false
12 | },
13 | "diagnostics": {
14 | "disable": [
15 | ],
16 | "globals": [],
17 | "globalsRegex": [],
18 | "severity": {
19 | },
20 | "enables": [
21 | ]
22 | },
23 | "hint": {
24 | "enable": true,
25 | "paramHint": true,
26 | "indexHint": true,
27 | "localHint": true,
28 | "overrideHint": true
29 | },
30 | "runtime": {
31 | "version": "Lua5.4",
32 | "requireLikeFunction": [],
33 | "frameworkVersions": [],
34 | "extensions": [],
35 | "requirePattern": []
36 | },
37 | "workspace": {
38 | "ignoreDir": [
39 |
40 | ],
41 | "ignoreGlobs": [
42 | ],
43 | "library": ["moon/lualib", "moon/service"],
44 | "workspaceRoots": [],
45 | "encoding": ""
46 | },
47 | "resource": {
48 | "paths": [
49 | ]
50 | },
51 | "codeLens": {
52 | "enable": true
53 | },
54 | "strict": {
55 | "requirePath": false,
56 | "typeCall": true
57 | },
58 | "hover": {
59 | "enable": true
60 | },
61 | "references": {
62 | "enable": true,
63 | "fuzzy_search": true
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/WireType.cs:
--------------------------------------------------------------------------------
1 | namespace ProtoBuf
2 | {
3 | ///
4 | /// Indicates the encoding used to represent an individual value in a protobuf stream
5 | ///
6 | public enum WireType
7 | {
8 | ///
9 | /// Represents an error condition
10 | ///
11 | None = -1,
12 |
13 | ///
14 | /// Base-128 variant-length encoding
15 | ///
16 | Variant = 0,
17 |
18 | ///
19 | /// Fixed-length 8-byte encoding
20 | ///
21 | Fixed64 = 1,
22 |
23 | ///
24 | /// Length-variant-prefixed encoding
25 | ///
26 | String = 2,
27 |
28 | ///
29 | /// Indicates the start of a group
30 | ///
31 | StartGroup = 3,
32 |
33 | ///
34 | /// Indicates the end of a group
35 | ///
36 | EndGroup = 4,
37 |
38 | ///
39 | /// Fixed-length 4-byte encoding
40 | /// 10
41 | Fixed32 = 5,
42 |
43 | ///
44 | /// This is not a formal wire-type in the "protocol buffers" spec, but
45 | /// denotes a variant integer that should be interpreted using
46 | /// zig-zag semantics (so -ve numbers aren't a significant overhead)
47 | ///
48 | SignedVariant = WireType.Variant | (1 << 3),
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/Mail.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using ProtoBuf;
3 |
4 | namespace NetMessage{
5 | [ProtoContract]
6 | class C2SMailList{
7 | }
8 |
9 | [ProtoContract]
10 | class S2CMailList{
11 | [ProtoMember(1,Name = @"mail_list")]
12 | public Dictionary MailList { get; set; }
13 | }
14 |
15 | [ProtoContract]
16 | class S2CUpdateMail{
17 | [ProtoMember(1,Name = @"mail_list")]
18 | public List MailList { get; set; }
19 | }
20 |
21 | [ProtoContract]
22 | class C2SMailRead{
23 | [ProtoMember(1, Name = @"id")]
24 | public long Id { get; set; }
25 | }
26 |
27 | [ProtoContract]
28 | class C2SMailLock{
29 | [ProtoMember(1, Name = @"id")]
30 | public long Id { get; set; }
31 | }
32 |
33 | [ProtoContract]
34 | class C2SMailReward{
35 | [ProtoMember(1,Name = @"mail_id_list")]
36 | public List MailIdList { get; set; }
37 | }
38 |
39 | [ProtoContract]
40 | class C2SMailMark{
41 | [ProtoMember(1, Name = @"id")]
42 | public long Id { get; set; }
43 | }
44 |
45 | [ProtoContract]
46 | class C2SMailDel{
47 | [ProtoMember(1,Name = @"mail_id_list")]
48 | public List MailIdList { get; set; }
49 | }
50 |
51 | [ProtoContract]
52 | class S2CMailDel{
53 | [ProtoMember(1,Name = @"mail_id_list")]
54 | public List MailIdList { get; set; }
55 | }
56 |
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/Physics2DSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!19 &1
4 | Physics2DSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 3
7 | m_Gravity: {x: 0, y: -9.81}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_VelocityIterations: 8
10 | m_PositionIterations: 3
11 | m_VelocityThreshold: 1
12 | m_MaxLinearCorrection: 0.2
13 | m_MaxAngularCorrection: 8
14 | m_MaxTranslationSpeed: 100
15 | m_MaxRotationSpeed: 360
16 | m_BaumgarteScale: 0.2
17 | m_BaumgarteTimeOfImpactScale: 0.75
18 | m_TimeToSleep: 0.5
19 | m_LinearSleepTolerance: 0.01
20 | m_AngularSleepTolerance: 2
21 | m_DefaultContactOffset: 0.01
22 | m_AutoSimulation: 1
23 | m_QueriesHitTriggers: 1
24 | m_QueriesStartInColliders: 1
25 | m_ChangeStopsCallbacks: 0
26 | m_CallbacksOnDisable: 1
27 | m_AutoSyncTransforms: 1
28 | m_AlwaysShowColliders: 0
29 | m_ShowColliderSleep: 1
30 | m_ShowColliderContacts: 0
31 | m_ShowColliderAABB: 0
32 | m_ContactArrowScale: 0.2
33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
38 |
--------------------------------------------------------------------------------
/server/static/www/js/utils.js:
--------------------------------------------------------------------------------
1 | var utils = {
2 | FormToJson: function (formData) {
3 | var objData = {};
4 | formData.forEach((value, key) => objData[key] = value);
5 | return JSON.stringify(objData);
6 | },
7 |
8 | StringFormat: function (str, data) {
9 | if (!str || data == undefined) {
10 | return str;
11 | }
12 |
13 | if (typeof data === "object") {
14 | for (var key in data) {
15 | if (data.hasOwnProperty(key)) {
16 | str = str.replace(new RegExp("\{" + key + "\}", "g"), data[key]);
17 | }
18 | }
19 | } else {
20 | var args = arguments,
21 | reg = new RegExp("\{([0-" + (args.length - 1) + "])\}", "g");
22 | return str.replace(reg, function (match, index) {
23 | return args[index - (-1)];
24 | });
25 | }
26 | return str;
27 | },
28 |
29 | SaveToken: function(token) {
30 | axios.defaults.headers.common['Authorization'] = 'Bearer ' + token;
31 | document.cookie = 'token=' + token + ';path=/';
32 | }
33 | ,
34 | ClearToken: function() {
35 | axios.defaults.headers.common['Authorization'] = "";
36 | document.cookie = 'token=' + "" + ';path=/';
37 | }
38 | ,
39 | HTMLEncode: function(html) {
40 | var temp = document.createElement("div");
41 | (temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
42 | var output = temp.innerHTML;
43 | temp = null;
44 | return output;
45 | }
46 | }
47 |
48 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ProtoIgnoreAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ProtoBuf
4 | {
5 | ///
6 | /// Indicates that a member should be excluded from serialization; this
7 | /// is only normally used when using implict fields.
8 | ///
9 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field,
10 | AllowMultiple = false, Inherited = true)]
11 | public class ProtoIgnoreAttribute : Attribute { }
12 |
13 | ///
14 | /// Indicates that a member should be excluded from serialization; this
15 | /// is only normally used when using implict fields. This allows
16 | /// ProtoIgnoreAttribute usage
17 | /// even for partial classes where the individual members are not
18 | /// under direct control.
19 | ///
20 | [AttributeUsage(AttributeTargets.Class,
21 | AllowMultiple = true, Inherited = false)]
22 | public sealed class ProtoPartialIgnoreAttribute : ProtoIgnoreAttribute
23 | {
24 | ///
25 | /// Creates a new ProtoPartialIgnoreAttribute instance.
26 | ///
27 | /// Specifies the member to be ignored.
28 | public ProtoPartialIgnoreAttribute(string memberName)
29 | : base()
30 | {
31 | if (string.IsNullOrEmpty(memberName)) throw new ArgumentNullException(nameof(memberName));
32 |
33 | MemberName = memberName;
34 | }
35 | ///
36 | /// The name of the member to be ignored.
37 | ///
38 | public string MemberName { get; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoBehaviorAttribute.cs:
--------------------------------------------------------------------------------
1 | #if FEAT_SERVICEMODEL && PLAT_XMLSERIALIZER
2 | using System;
3 | using System.ServiceModel.Channels;
4 | using System.ServiceModel.Description;
5 | using System.ServiceModel.Dispatcher;
6 |
7 | namespace ProtoBuf.ServiceModel
8 | {
9 | ///
10 | /// Uses protocol buffer serialization on the specified operation; note that this
11 | /// must be enabled on both the client and server.
12 | ///
13 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
14 | public sealed class ProtoBehaviorAttribute : Attribute, IOperationBehavior
15 | {
16 | void IOperationBehavior.AddBindingParameters(OperationDescription operationDescription, BindingParameterCollection bindingParameters)
17 | { }
18 |
19 | void IOperationBehavior.ApplyClientBehavior(OperationDescription operationDescription, ClientOperation clientOperation)
20 | {
21 | IOperationBehavior innerBehavior = new ProtoOperationBehavior(operationDescription);
22 | innerBehavior.ApplyClientBehavior(operationDescription, clientOperation);
23 | }
24 |
25 | void IOperationBehavior.ApplyDispatchBehavior(OperationDescription operationDescription, DispatchOperation dispatchOperation)
26 | {
27 | IOperationBehavior innerBehavior = new ProtoOperationBehavior(operationDescription);
28 | innerBehavior.ApplyDispatchBehavior(operationDescription, dispatchOperation);
29 | }
30 |
31 | void IOperationBehavior.Validate(OperationDescription operationDescription)
32 | { }
33 | }
34 | }
35 | #endif
--------------------------------------------------------------------------------
/BallAction/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "files.exclude": {
3 | "**/.DS_Store": true,
4 | "**/.git": true,
5 | "**/.gitignore": true,
6 | "**/.gitmodules": true,
7 | "**/*.booproj": true,
8 | "**/*.pidb": true,
9 | "**/*.suo": true,
10 | "**/*.user": true,
11 | "**/*.userprefs": true,
12 | "**/*.unityproj": true,
13 | "**/*.dll": true,
14 | "**/*.exe": true,
15 | "**/*.pdf": true,
16 | "**/*.mid": true,
17 | "**/*.midi": true,
18 | "**/*.wav": true,
19 | "**/*.gif": true,
20 | "**/*.ico": true,
21 | "**/*.jpg": true,
22 | "**/*.jpeg": true,
23 | "**/*.png": true,
24 | "**/*.psd": true,
25 | "**/*.tga": true,
26 | "**/*.tif": true,
27 | "**/*.tiff": true,
28 | "**/*.3ds": true,
29 | "**/*.3DS": true,
30 | "**/*.fbx": true,
31 | "**/*.FBX": true,
32 | "**/*.lxo": true,
33 | "**/*.LXO": true,
34 | "**/*.ma": true,
35 | "**/*.MA": true,
36 | "**/*.obj": true,
37 | "**/*.OBJ": true,
38 | "**/*.asset": true,
39 | "**/*.cubemap": true,
40 | "**/*.flare": true,
41 | "**/*.mat": true,
42 | "**/*.meta": true,
43 | "**/*.prefab": true,
44 | "**/*.unity": true,
45 | "build/": true,
46 | "Build/": true,
47 | "Library/": true,
48 | "library/": true,
49 | "obj/": true,
50 | "Obj/": true,
51 | "ProjectSettings/": true,
52 | "temp/": true,
53 | "Temp/": true
54 | },
55 | "dotnet.defaultSolution": "BallAction.sln"
56 | }
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/CallbackAttributes.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 |
4 | namespace ProtoBuf
5 | {
6 | /// Specifies a method on the root-contract in an hierarchy to be invoked before serialization.
7 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
8 | #if !CF && !PORTABLE && !COREFX && !PROFILE259
9 | [ImmutableObject(true)]
10 | #endif
11 | public sealed class ProtoBeforeSerializationAttribute : Attribute { }
12 |
13 | /// Specifies a method on the root-contract in an hierarchy to be invoked after serialization.
14 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
15 | #if !CF && !PORTABLE && !COREFX && !PROFILE259
16 | [ImmutableObject(true)]
17 | #endif
18 | public sealed class ProtoAfterSerializationAttribute : Attribute { }
19 |
20 | /// Specifies a method on the root-contract in an hierarchy to be invoked before deserialization.
21 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
22 | #if !CF && !PORTABLE && !COREFX && !PROFILE259
23 | [ImmutableObject(true)]
24 | #endif
25 | public sealed class ProtoBeforeDeserializationAttribute : Attribute { }
26 |
27 | /// Specifies a method on the root-contract in an hierarchy to be invoked after deserialization.
28 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
29 | #if !CF && !PORTABLE && !COREFX && !PROFILE259
30 | [ImmutableObject(true)]
31 | #endif
32 | public sealed class ProtoAfterDeserializationAttribute : Attribute { }
33 | }
34 |
--------------------------------------------------------------------------------
/BallAction/UserSettings/Search.settings:
--------------------------------------------------------------------------------
1 | trackSelection = true
2 | refreshSearchWindowsInPlayMode = false
3 | pickerAdvancedUI = false
4 | fetchPreview = true
5 | defaultFlags = 0
6 | keepOpen = true
7 | queryFolder = "Assets"
8 | onBoardingDoNotAskAgain = true
9 | showPackageIndexes = false
10 | showStatusBar = false
11 | scopes = {
12 | }
13 | providers = {
14 | asset = {
15 | active = true
16 | priority = 25
17 | defaultAction = null
18 | }
19 | scene = {
20 | active = true
21 | priority = 50
22 | defaultAction = null
23 | }
24 | adb = {
25 | active = false
26 | priority = 2500
27 | defaultAction = null
28 | }
29 | presets_provider = {
30 | active = false
31 | priority = -10
32 | defaultAction = null
33 | }
34 | find = {
35 | active = true
36 | priority = 25
37 | defaultAction = null
38 | }
39 | packages = {
40 | active = false
41 | priority = 90
42 | defaultAction = null
43 | }
44 | performance = {
45 | active = false
46 | priority = 100
47 | defaultAction = null
48 | }
49 | profilermarkers = {
50 | active = false
51 | priority = 100
52 | defaultAction = null
53 | }
54 | store = {
55 | active = false
56 | priority = 100
57 | defaultAction = null
58 | }
59 | log = {
60 | active = false
61 | priority = 210
62 | defaultAction = null
63 | }
64 | }
65 | objectSelectors = {
66 | }
67 | recentSearches = [
68 | ]
69 | searchItemFavorites = [
70 | ]
71 | savedSearchesSortOrder = 0
72 | showSavedSearchPanel = false
73 | hideTabs = false
74 | expandedQueries = [
75 | ]
76 | queryBuilder = true
77 | ignoredProperties = "id;name;classname;imagecontentshash"
78 | helperWidgetCurrentArea = "all"
79 | disabledIndexers = ""
80 | minIndexVariations = 2
81 | findProviderIndexHelper = true
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/NavMeshAreas.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!126 &1
4 | NavMeshProjectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | areas:
8 | - name: Walkable
9 | cost: 1
10 | - name: Not Walkable
11 | cost: 1
12 | - name: Jump
13 | cost: 2
14 | - name:
15 | cost: 1
16 | - name:
17 | cost: 1
18 | - name:
19 | cost: 1
20 | - name:
21 | cost: 1
22 | - name:
23 | cost: 1
24 | - name:
25 | cost: 1
26 | - name:
27 | cost: 1
28 | - name:
29 | cost: 1
30 | - name:
31 | cost: 1
32 | - name:
33 | cost: 1
34 | - name:
35 | cost: 1
36 | - name:
37 | cost: 1
38 | - name:
39 | cost: 1
40 | - name:
41 | cost: 1
42 | - name:
43 | cost: 1
44 | - name:
45 | cost: 1
46 | - name:
47 | cost: 1
48 | - name:
49 | cost: 1
50 | - name:
51 | cost: 1
52 | - name:
53 | cost: 1
54 | - name:
55 | cost: 1
56 | - name:
57 | cost: 1
58 | - name:
59 | cost: 1
60 | - name:
61 | cost: 1
62 | - name:
63 | cost: 1
64 | - name:
65 | cost: 1
66 | - name:
67 | cost: 1
68 | - name:
69 | cost: 1
70 | - name:
71 | cost: 1
72 | m_LastAgentTypeID: -887442657
73 | m_Settings:
74 | - serializedVersion: 2
75 | agentTypeID: 0
76 | agentRadius: 0.5
77 | agentHeight: 2
78 | agentSlope: 45
79 | agentClimb: 0.75
80 | ledgeDropHeight: 0
81 | maxJumpAcrossDistance: 0
82 | minRegionArea: 2
83 | manualCellSize: 0
84 | cellSize: 0.16666667
85 | manualTileSize: 0
86 | tileSize: 256
87 | accuratePlacement: 0
88 | debug:
89 | m_Flags: 0
90 | m_SettingNames:
91 | - Humanoid
92 |
--------------------------------------------------------------------------------
/BallAction/Assets/Proto/User.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using ProtoBuf;
3 |
4 | namespace NetMessage{
5 | [ProtoContract]
6 | class S2CErrorCode{
7 | [ProtoMember(1, Name = @"code")]
8 | public int Code { get; set; }//错误码
9 | }
10 |
11 | [ProtoContract]
12 | class C2SLogin{
13 | [ProtoMember(1, Name = @"openid")]
14 | public string Openid { get; set; }//openid
15 | }
16 |
17 | [ProtoContract]
18 | class S2CLogin{
19 | [ProtoMember(1, Name = @"ok")]
20 | public bool Ok { get; set; }//是否登录成功
21 | [ProtoMember(2, Name = @"time")]
22 | public long Time { get; set; }//服务器当前时间ms
23 | [ProtoMember(3, Name = @"timezone")]
24 | public long Timezone { get; set; }//服务器当前时区
25 | }
26 |
27 | [ProtoContract]
28 | class C2SItemList{
29 | }
30 |
31 | [ProtoContract]
32 | class S2CItemList{
33 | [ProtoMember(11,Name = @"list")]
34 | public Dictionary List { get; set; }//道具列表
35 | }
36 |
37 | [ProtoContract]
38 | class C2SUseItem{
39 | [ProtoMember(1, Name = @"id")]
40 | public int Id { get; set; }
41 | [ProtoMember(2, Name = @"count")]
42 | public long Count { get; set; }
43 | }
44 |
45 | [ProtoContract]
46 | class S2CUpdateItem{
47 | [ProtoMember(1,Name = @"list")]
48 | public List List { get; set; }
49 | }
50 |
51 | [ProtoContract]
52 | class C2SHello{
53 | [ProtoMember(1, Name = @"hello")]
54 | public string Hello { get; set; }
55 | }
56 |
57 | [ProtoContract]
58 | class S2CWorld{
59 | [ProtoMember(1, Name = @"world")]
60 | public string World { get; set; }
61 | }
62 |
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/server/static/www/css/fileinput-rtl.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * bootstrap-fileinput v5.0.4
3 | * http://plugins.krajee.com/file-input
4 | *
5 | * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.
6 | *
7 | * Author: Kartik Visweswaran
8 | * Copyright: 2014 - 2019, Kartik Visweswaran, Krajee.com
9 | *
10 | * Licensed under the BSD-3-Clause
11 | * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
12 | */.kv-rtl .close,.kv-rtl .krajee-default .file-actions,.kv-rtl .krajee-default .file-other-error{float:left}.kv-rtl .krajee-default .file-drag-handle,.kv-rtl .krajee-default .file-upload-indicator,.kv-rtl .krajee-default.file-preview-frame{float:right}.kv-rtl .file-error-message pre,.kv-rtl .file-error-message ul,.kv-rtl .file-zoom-dialog{text-align:right}.kv-rtl{direction:rtl}.kv-rtl .floating-buttons{left:10px;right:auto}.kv-rtl .floating-buttons .btn-kv{margin-left:0;margin-right:3px}.kv-rtl .file-caption-icon{left:auto;right:8px}.kv-rtl .file-drop-zone{margin:12px 12px 12px 15px}.kv-rtl .btn-prev{right:1px;left:auto}.kv-rtl .btn-next{left:1px;right:auto}.kv-rtl .float-right,.kv-rtl .pull-right{float:left!important}.kv-rtl .float-left,.kv-rtl .pull-left{float:right!important}.kv-rtl .kv-zoom-title{direction:ltr}.kv-rtl .krajee-default.file-preview-frame{box-shadow:-1px 1px 5px 0 #a2958a}.kv-rtl .krajee-default.file-preview-frame:not(.file-preview-error):hover{box-shadow:-3px 3px 5px 0 #333}.kv-rtl .kv-zoom-actions .btn-kv{margin-left:0;margin-right:3px}.kv-rtl .file-caption.icon-visible .file-caption-name{padding-left:0;padding-right:15px}.kv-rtl .input-group-btn>.btn:last-child{border-radius:4px 0 0 4px}.kv-rtl .input-group .form-control:first-child{border-radius:0 4px 4px 0}.kv-rtl .btn-file input[type=file]{left:auto;right:0;text-align:left;background:100% 0 none}
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Meta/TypeModel.InputOutput.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 |
4 | namespace ProtoBuf.Meta
5 | {
6 | partial class TypeModel :
7 | IProtoInput,
8 | IProtoInput>,
9 | IProtoInput,
10 | IProtoOutput
11 | {
12 | static SerializationContext CreateContext(object userState)
13 | {
14 | if (userState == null)
15 | return SerializationContext.Default;
16 | if (userState is SerializationContext ctx)
17 | return ctx;
18 |
19 | var obj = new SerializationContext { Context = userState };
20 | obj.Freeze();
21 | return obj;
22 | }
23 | T IProtoInput.Deserialize(Stream source, T value, object userState)
24 | => (T)Deserialize(source, value, typeof(T), CreateContext(userState));
25 |
26 | T IProtoInput>.Deserialize(ArraySegment source, T value, object userState)
27 | {
28 | using (var ms = new MemoryStream(source.Array, source.Offset, source.Count))
29 | {
30 | return (T)Deserialize(ms, value, typeof(T), CreateContext(userState));
31 | }
32 | }
33 |
34 | T IProtoInput.Deserialize(byte[] source, T value, object userState)
35 | {
36 | using (var ms = new MemoryStream(source))
37 | {
38 | return (T)Deserialize(ms, value, typeof(T), CreateContext(userState));
39 | }
40 | }
41 |
42 | void IProtoOutput.Serialize(Stream destination, T value, object userState)
43 | => Serialize(destination, value, CreateContext(userState));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/BallAction/Assets/Scripts/MessageBox/MessageBoxWnd.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using System.Collections;
3 | using UnityEngine.UI;
4 | using System.Collections.Generic;
5 |
6 | public enum EMessageResult
7 | {
8 | OK,
9 | Cancel
10 | }
11 |
12 | public delegate void MessageBoxCallBack(EMessageResult eret);
13 |
14 | public class MessageBoxContext
15 | {
16 | public MessageBoxCallBack result;
17 | public string value;
18 |
19 | public MessageBoxContext(string value, MessageBoxCallBack result = null)
20 | {
21 | this.value = value;
22 | this.result = result;
23 | }
24 | }
25 |
26 | public class MessageBoxWnd : MonoBehaviour {
27 |
28 | Text errorText = null;
29 | // Use this for initialization
30 |
31 | MessageBoxCallBack result;
32 |
33 | GameObject canvas;
34 |
35 | void Awake()
36 | {
37 | canvas = transform.Find("Canvas").gameObject;
38 | var t = transform.Find("Canvas/Shade/Background/Text");
39 | errorText = t.gameObject.GetComponent();
40 | }
41 |
42 | void Start()
43 | {
44 |
45 | }
46 |
47 | public void active(MessageBoxContext value)
48 | {
49 | errorText.text = value.value;
50 | result = value.result;
51 | canvas.SetActive(true);
52 | }
53 |
54 | public void OnOK()
55 | {
56 | canvas.SetActive(false);
57 | if (result != null)
58 | {
59 | result(EMessageResult.OK);
60 | }
61 | }
62 |
63 | public void OnCancel()
64 | {
65 | canvas.SetActive(false);
66 | if (result != null)
67 | {
68 | result(EMessageResult.Cancel);
69 | }
70 | }
71 |
72 | public void SetVisible(bool show)
73 | {
74 | canvas.SetActive(show);
75 | }
76 | }
77 |
78 |
79 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/DataFormat.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace ProtoBuf
3 | {
4 | ///
5 | /// Sub-format to use when serializing/deserializing data
6 | ///
7 | public enum DataFormat
8 | {
9 | ///
10 | /// Uses the default encoding for the data-type.
11 | ///
12 | Default,
13 |
14 | ///
15 | /// When applied to signed integer-based data (including Decimal), this
16 | /// indicates that zigzag variant encoding will be used. This means that values
17 | /// with small magnitude (regardless of sign) take a small amount
18 | /// of space to encode.
19 | ///
20 | ZigZag,
21 |
22 | ///
23 | /// When applied to signed integer-based data (including Decimal), this
24 | /// indicates that two's-complement variant encoding will be used.
25 | /// This means that any -ve number will take 10 bytes (even for 32-bit),
26 | /// so should only be used for compatibility.
27 | ///
28 | TwosComplement,
29 |
30 | ///
31 | /// When applied to signed integer-based data (including Decimal), this
32 | /// indicates that a fixed amount of space will be used.
33 | ///
34 | FixedSize,
35 |
36 | ///
37 | /// When applied to a sub-message, indicates that the value should be treated
38 | /// as group-delimited.
39 | ///
40 | Group,
41 |
42 | ///
43 | /// When applied to members of types such as DateTime or TimeSpan, specifies
44 | /// that the "well known" standardized representation should be use; DateTime uses Timestamp,
45 | ///
46 | ///
47 | WellKnown
48 | }
49 | }
--------------------------------------------------------------------------------
/server/common/CmdCode.lua:
--------------------------------------------------------------------------------
1 | ---
2 | --- Generated by the moonfly tool. DO NOT EDIT!
3 | ---
4 |
5 | local M={
6 | C2SLogin = 1,
7 | S2CLogin = 2,
8 | C2SMatch = 3,
9 | C2SEnterRoom = 4,
10 | C2SMove = 5,
11 | S2CMatch = 6,
12 | S2CMatchSuccess = 7,
13 | S2CEnterRoom = 8,
14 | S2CMove = 9,
15 | S2CEnterView = 10,
16 | S2CLeaveView = 11,
17 | S2CUpdateRadius = 12,
18 | S2CDead = 13,
19 | S2CErrorCode = 14,
20 | S2CGameOver = 15,
21 | C2SItemList = 16,
22 | S2CItemList = 17,
23 | C2SUseItem = 18,
24 | S2CUpdateItem = 19,
25 | C2SHello = 20,
26 | S2CWorld = 21,
27 | C2SMailList = 22,
28 | S2CMailList = 23,
29 | S2CUpdateMail = 24,
30 | C2SMailRead = 25,
31 | C2SMailLock = 26,
32 | C2SMailReward = 27,
33 | C2SMailMark = 28,
34 | C2SMailDel = 29,
35 | S2CMailDel = 30,
36 |
37 | }
38 |
39 | local forward = {
40 | C2SLogin = 'addr_user',
41 | C2SMatch = 'addr_center',
42 | C2SEnterRoom = 'addr_room',
43 | C2SMove = 'addr_room',
44 | C2SItemList = 'addr_user',
45 | C2SUseItem = 'addr_user',
46 | C2SHello = 'addr_user',
47 | C2SMailList = 'addr_mail',
48 | C2SMailRead = 'addr_mail',
49 | C2SMailLock = 'addr_mail',
50 | C2SMailReward = 'addr_mail',
51 | C2SMailMark = 'addr_mail',
52 | C2SMailDel = 'addr_mail',
53 |
54 | }
55 |
56 | local mt = { forward = forward }
57 |
58 | mt.__newindex = function(_, name, _)
59 | local msg = "attemp index unknown message: " .. tostring(name)
60 | error(debug.traceback(msg, 2))
61 | end
62 |
63 | mt.__index = function(_, name)
64 | if name == "forward" then
65 | return forward
66 | end
67 | local msg = "attemp index unknown message: " .. tostring(name)
68 | error(debug.traceback(msg, 2))
69 | end
70 |
71 | return setmetatable(M,mt)
72 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/KeyValuePairProxy.cs:
--------------------------------------------------------------------------------
1 | //using System.Collections.Generic;
2 |
3 | //namespace ProtoBuf
4 | //{
5 | // ///
6 | // /// Mutable version of the common key/value pair struct; used during serialization. This type is intended for internal use only and should not
7 | // /// be used by calling code; it is required to be public for implementation reasons.
8 | // ///
9 | // [ProtoContract]
10 | // public struct KeyValuePairSurrogate
11 | // {
12 | // private TKey key;
13 | // private TValue value;
14 | // ///
15 | // /// The key of the pair.
16 | // ///
17 | // [ProtoMember(1, IsRequired = true)]
18 | // public TKey Key { get { return key; } set { key = value; } }
19 | // ///
20 | // /// The value of the pair.
21 | // ///
22 | // [ProtoMember(2)]
23 | // public TValue Value{ get { return value; } set { this.value = value; } }
24 | // private KeyValuePairSurrogate(TKey key, TValue value)
25 | // {
26 | // this.key = key;
27 | // this.value = value;
28 | // }
29 | // ///
30 | // /// Convert a surrogate instance to a standard pair instance.
31 | // ///
32 | // public static implicit operator KeyValuePair (KeyValuePairSurrogate value)
33 | // {
34 | // return new KeyValuePair(value.key, value.value);
35 | // }
36 | // ///
37 | // /// Convert a standard pair instance to a surrogate instance.
38 | // ///
39 | // public static implicit operator KeyValuePairSurrogate(KeyValuePair value)
40 | // {
41 | // return new KeyValuePairSurrogate(value.Key, value.Value);
42 | // }
43 | // }
44 | //}
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Compiler/Local.cs:
--------------------------------------------------------------------------------
1 | #if FEAT_COMPILER
2 | using System;
3 | using System.Reflection.Emit;
4 |
5 | namespace ProtoBuf.Compiler
6 | {
7 | internal sealed class Local : IDisposable
8 | {
9 | // public static readonly Local InputValue = new Local(null, null);
10 | private LocalBuilder value;
11 | private readonly Type type;
12 | private CompilerContext ctx;
13 |
14 | private Local(LocalBuilder value, Type type)
15 | {
16 | this.value = value;
17 | this.type = type;
18 | }
19 |
20 | internal Local(CompilerContext ctx, Type type)
21 | {
22 | this.ctx = ctx;
23 | if (ctx != null) { value = ctx.GetFromPool(type); }
24 | this.type = type;
25 | }
26 |
27 | internal LocalBuilder Value => value ?? throw new ObjectDisposedException(GetType().Name);
28 |
29 | public Type Type => type;
30 |
31 | public Local AsCopy()
32 | {
33 | if (ctx == null) return this; // can re-use if context-free
34 | return new Local(value, this.type);
35 | }
36 |
37 | public void Dispose()
38 | {
39 | if (ctx != null)
40 | {
41 | // only *actually* dispose if this is context-bound; note that non-bound
42 | // objects are cheekily re-used, and *must* be left intact agter a "using" etc
43 | ctx.ReleaseToPool(value);
44 | value = null;
45 | ctx = null;
46 | }
47 | }
48 |
49 | internal bool IsSame(Local other)
50 | {
51 | if((object)this == (object)other) return true;
52 |
53 | object ourVal = value; // use prop to ensure obj-disposed etc
54 | return other != null && ourVal == (object)(other.value);
55 | }
56 | }
57 | }
58 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/BlobSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 | #if COREFX
4 | using System.Reflection;
5 | #endif
6 | #if FEAT_COMPILER
7 | using System.Reflection.Emit;
8 | #endif
9 |
10 | namespace ProtoBuf.Serializers
11 | {
12 | sealed class BlobSerializer : IProtoSerializer
13 | {
14 | public Type ExpectedType { get { return expectedType; } }
15 |
16 | static readonly Type expectedType = typeof(byte[]);
17 |
18 | public BlobSerializer(ProtoBuf.Meta.TypeModel model, bool overwriteList)
19 | {
20 | this.overwriteList = overwriteList;
21 | }
22 |
23 | private readonly bool overwriteList;
24 |
25 | public object Read(object value, ProtoReader source)
26 | {
27 | return ProtoReader.AppendBytes(overwriteList ? null : (byte[])value, source);
28 | }
29 |
30 | public void Write(object value, ProtoWriter dest)
31 | {
32 | ProtoWriter.WriteBytes((byte[])value, dest);
33 | }
34 |
35 | bool IProtoSerializer.RequiresOldValue { get { return !overwriteList; } }
36 | bool IProtoSerializer.ReturnsValue { get { return true; } }
37 | #if FEAT_COMPILER
38 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
39 | {
40 | ctx.EmitBasicWrite("WriteBytes", valueFrom);
41 | }
42 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
43 | {
44 | if (overwriteList)
45 | {
46 | ctx.LoadNullRef();
47 | }
48 | else
49 | {
50 | ctx.LoadValue(valueFrom);
51 | }
52 | ctx.LoadReaderWriter();
53 | ctx.EmitCall(ctx.MapType(typeof(ProtoReader))
54 | .GetMethod("AppendBytes"));
55 | }
56 | #endif
57 | }
58 | }
59 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Scenes/LoginSettings.lighting:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!850595691 &4890085278179872738
4 | LightingSettings:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_Name: LoginSettings
10 | serializedVersion: 9
11 | m_EnableBakedLightmaps: 0
12 | m_EnableRealtimeLightmaps: 0
13 | m_RealtimeEnvironmentLighting: 1
14 | m_BounceScale: 1
15 | m_AlbedoBoost: 1
16 | m_IndirectOutputScale: 1
17 | m_UsingShadowmask: 1
18 | m_BakeBackend: 1
19 | m_LightmapMaxSize: 1024
20 | m_LightmapSizeFixed: 0
21 | m_UseMipmapLimits: 1
22 | m_BakeResolution: 40
23 | m_Padding: 2
24 | m_LightmapCompression: 3
25 | m_AO: 0
26 | m_AOMaxDistance: 1
27 | m_CompAOExponent: 1
28 | m_CompAOExponentDirect: 0
29 | m_ExtractAO: 0
30 | m_MixedBakeMode: 2
31 | m_LightmapsBakeMode: 1
32 | m_FilterMode: 1
33 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
34 | m_ExportTrainingData: 0
35 | m_EnableWorkerProcessBaking: 1
36 | m_TrainingDataDestination: TrainingData
37 | m_RealtimeResolution: 2
38 | m_ForceWhiteAlbedo: 0
39 | m_ForceUpdates: 0
40 | m_PVRCulling: 1
41 | m_PVRSampling: 1
42 | m_PVRDirectSampleCount: 32
43 | m_PVRSampleCount: 512
44 | m_PVREnvironmentSampleCount: 512
45 | m_PVREnvironmentReferencePointCount: 2048
46 | m_LightProbeSampleCountMultiplier: 4
47 | m_PVRBounces: 2
48 | m_PVRMinBounces: 2
49 | m_PVREnvironmentImportanceSampling: 0
50 | m_PVRFilteringMode: 2
51 | m_PVRDenoiserTypeDirect: 0
52 | m_PVRDenoiserTypeIndirect: 0
53 | m_PVRDenoiserTypeAO: 0
54 | m_PVRFilterTypeDirect: 0
55 | m_PVRFilterTypeIndirect: 0
56 | m_PVRFilterTypeAO: 0
57 | m_PVRFilteringGaussRadiusDirect: 1
58 | m_PVRFilteringGaussRadiusIndirect: 1
59 | m_PVRFilteringGaussRadiusAO: 1
60 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5
61 | m_PVRFilteringAtrousPositionSigmaIndirect: 2
62 | m_PVRFilteringAtrousPositionSigmaAO: 1
63 | m_RespectSceneVisibilityWhenBakingGI: 0
64 |
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/ServiceModel/ProtoOperationBehavior.cs:
--------------------------------------------------------------------------------
1 | #if FEAT_SERVICEMODEL && PLAT_XMLSERIALIZER
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Runtime.Serialization;
5 | using System.ServiceModel.Description;
6 | using System.Xml;
7 | using ProtoBuf.Meta;
8 |
9 | namespace ProtoBuf.ServiceModel
10 | {
11 | ///
12 | /// Describes a WCF operation behaviour that can perform protobuf serialization
13 | ///
14 | public sealed class ProtoOperationBehavior : DataContractSerializerOperationBehavior
15 | {
16 | private TypeModel model;
17 |
18 | ///
19 | /// Create a new ProtoOperationBehavior instance
20 | ///
21 | public ProtoOperationBehavior(OperationDescription operation) : base(operation)
22 | {
23 | #if !NO_RUNTIME
24 | model = RuntimeTypeModel.Default;
25 | #endif
26 | }
27 |
28 | ///
29 | /// The type-model that should be used with this behaviour
30 | ///
31 | public TypeModel Model
32 | {
33 | get { return model; }
34 | set
35 | {
36 | model = value ?? throw new ArgumentNullException(nameof(value));
37 | }
38 | }
39 |
40 | //public ProtoOperationBehavior(OperationDescription operation, DataContractFormatAttribute dataContractFormat) : base(operation, dataContractFormat) { }
41 |
42 | ///
43 | /// Creates a protobuf serializer if possible (falling back to the default WCF serializer)
44 | ///
45 | public override XmlObjectSerializer CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList knownTypes)
46 | {
47 | if (model == null) throw new InvalidOperationException("No Model instance has been assigned to the ProtoOperationBehavior");
48 | return XmlProtoSerializer.TryCreate(model, type) ?? base.CreateSerializer(type, name, ns, knownTypes);
49 | }
50 | }
51 | }
52 | #endif
--------------------------------------------------------------------------------
/BallAction/Assets/Plugins/Protobuf-net/Serializers/TimeSpanSerializer.cs:
--------------------------------------------------------------------------------
1 | #if !NO_RUNTIME
2 | using System;
3 |
4 | namespace ProtoBuf.Serializers
5 | {
6 | sealed class TimeSpanSerializer : IProtoSerializer
7 | {
8 | static readonly Type expectedType = typeof(TimeSpan);
9 | private readonly bool wellKnown;
10 | public TimeSpanSerializer(DataFormat dataFormat, ProtoBuf.Meta.TypeModel model)
11 | {
12 |
13 | wellKnown = dataFormat == DataFormat.WellKnown;
14 | }
15 | public Type ExpectedType => expectedType;
16 |
17 | bool IProtoSerializer.RequiresOldValue => false;
18 |
19 | bool IProtoSerializer.ReturnsValue => true;
20 |
21 | public object Read(object value, ProtoReader source)
22 | {
23 | if (wellKnown)
24 | {
25 | return BclHelpers.ReadDuration(source);
26 | }
27 | else
28 | {
29 | Helpers.DebugAssert(value == null); // since replaces
30 | return BclHelpers.ReadTimeSpan(source);
31 | }
32 | }
33 |
34 | public void Write(object value, ProtoWriter dest)
35 | {
36 | if (wellKnown)
37 | {
38 | BclHelpers.WriteDuration((TimeSpan)value, dest);
39 | }
40 | else
41 | {
42 | BclHelpers.WriteTimeSpan((TimeSpan)value, dest);
43 | }
44 | }
45 |
46 | #if FEAT_COMPILER
47 | void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
48 | {
49 | ctx.EmitWrite(ctx.MapType(typeof(BclHelpers)),
50 | wellKnown ? nameof(BclHelpers.WriteDuration) : nameof(BclHelpers.WriteTimeSpan), valueFrom);
51 | }
52 | void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom)
53 | {
54 | if (wellKnown) ctx.LoadValue(valueFrom);
55 | ctx.EmitBasicRead(ctx.MapType(typeof(BclHelpers)),
56 | wellKnown ? nameof(BclHelpers.ReadDuration) : nameof(BclHelpers.ReadTimeSpan),
57 | ExpectedType);
58 | }
59 | #endif
60 |
61 | }
62 | }
63 | #endif
--------------------------------------------------------------------------------
/BallAction/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.psygames.unitywebsocket": "https://github.com/psygames/UnityWebSocket.git#upm",
4 | "com.unity.2d.sprite": "1.0.0",
5 | "com.unity.2d.tilemap": "1.0.0",
6 | "com.unity.ads": "4.4.2",
7 | "com.unity.analytics": "3.8.1",
8 | "com.unity.ide.rider": "3.0.31",
9 | "com.unity.ide.visualstudio": "2.0.22",
10 | "com.unity.ide.vscode": "1.2.3",
11 | "com.unity.multiplayer.center": "1.0.0",
12 | "com.unity.purchasing": "4.12.2",
13 | "com.unity.test-framework": "1.4.5",
14 | "com.unity.timeline": "1.8.7",
15 | "com.unity.ugui": "2.0.0",
16 | "com.unity.xr.legacyinputhelpers": "2.1.11",
17 | "com.unity.modules.accessibility": "1.0.0",
18 | "com.unity.modules.ai": "1.0.0",
19 | "com.unity.modules.androidjni": "1.0.0",
20 | "com.unity.modules.animation": "1.0.0",
21 | "com.unity.modules.assetbundle": "1.0.0",
22 | "com.unity.modules.audio": "1.0.0",
23 | "com.unity.modules.cloth": "1.0.0",
24 | "com.unity.modules.director": "1.0.0",
25 | "com.unity.modules.imageconversion": "1.0.0",
26 | "com.unity.modules.imgui": "1.0.0",
27 | "com.unity.modules.jsonserialize": "1.0.0",
28 | "com.unity.modules.particlesystem": "1.0.0",
29 | "com.unity.modules.physics": "1.0.0",
30 | "com.unity.modules.physics2d": "1.0.0",
31 | "com.unity.modules.screencapture": "1.0.0",
32 | "com.unity.modules.terrain": "1.0.0",
33 | "com.unity.modules.terrainphysics": "1.0.0",
34 | "com.unity.modules.tilemap": "1.0.0",
35 | "com.unity.modules.ui": "1.0.0",
36 | "com.unity.modules.uielements": "1.0.0",
37 | "com.unity.modules.umbra": "1.0.0",
38 | "com.unity.modules.unityanalytics": "1.0.0",
39 | "com.unity.modules.unitywebrequest": "1.0.0",
40 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
41 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
42 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
43 | "com.unity.modules.unitywebrequestwww": "1.0.0",
44 | "com.unity.modules.vehicles": "1.0.0",
45 | "com.unity.modules.video": "1.0.0",
46 | "com.unity.modules.vr": "1.0.0",
47 | "com.unity.modules.wind": "1.0.0",
48 | "com.unity.modules.xr": "1.0.0"
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/BallAction/ProjectSettings/GraphicsSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!30 &1
4 | GraphicsSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 12
7 | m_Deferred:
8 | m_Mode: 1
9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 | m_DeferredReflections:
11 | m_Mode: 1
12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 | m_ScreenSpaceShadows:
14 | m_Mode: 1
15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 | m_LegacyDeferred:
17 | m_Mode: 1
18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 | m_DepthNormals:
20 | m_Mode: 1
21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 | m_MotionVectors:
23 | m_Mode: 1
24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 | m_LightHalo:
26 | m_Mode: 1
27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 | m_LensFlare:
29 | m_Mode: 1
30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 | m_AlwaysIncludedShaders:
32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
34 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
35 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
36 | m_PreloadedShaders: []
37 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
38 | type: 0}
39 | m_CustomRenderPipeline: {fileID: 0}
40 | m_TransparencySortMode: 0
41 | m_TransparencySortAxis: {x: 0, y: 0, z: 1}
42 | m_DefaultRenderingPath: 1
43 | m_DefaultMobileRenderingPath: 1
44 | m_TierSettings: []
45 | m_LightmapStripping: 0
46 | m_FogStripping: 0
47 | m_InstancingStripping: 0
48 | m_LightmapKeepPlain: 1
49 | m_LightmapKeepDirCombined: 1
50 | m_LightmapKeepDynamicPlain: 1
51 | m_LightmapKeepDynamicDirCombined: 1
52 | m_LightmapKeepShadowMask: 1
53 | m_LightmapKeepSubtractive: 1
54 | m_FogKeepLinear: 1
55 | m_FogKeepExp: 1
56 | m_FogKeepExp2: 1
57 | m_AlbedoSwatchInfos: []
58 | m_LightsUseLinearIntensity: 0
59 | m_LightsUseColorTemperature: 0
60 |
--------------------------------------------------------------------------------