├── funapi-plugin-unity ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── TagManager.asset │ ├── AudioManager.asset │ ├── InputManager.asset │ ├── NavMeshAreas.asset │ ├── TimeManager.asset │ ├── DynamicsManager.asset │ ├── EditorSettings.asset │ ├── NavMeshLayers.asset │ ├── NetworkManager.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── GraphicsSettings.asset │ ├── Physics2DSettings.asset │ ├── UnityAdsSettings.asset │ ├── ClusterInputManager.asset │ ├── EditorBuildSettings.asset │ └── UnityConnectSettings.asset └── Assets │ ├── messages.dll │ ├── Plugins │ ├── x86 │ │ ├── z.dll │ │ ├── zstd.dll │ │ ├── sodium.dll │ │ ├── sodium.dll.meta │ │ ├── z.dll.meta │ │ └── zstd.dll.meta │ ├── z.bundle │ ├── iOS │ │ ├── libz.a │ │ ├── libzstd.a │ │ ├── libsodium.a │ │ ├── libsodium.a.meta │ │ ├── libz.a.meta │ │ └── libzstd.a.meta │ ├── zstd.bundle │ ├── sodium.bundle │ ├── x86_64 │ │ ├── z64.dll │ │ ├── zstd64.dll │ │ ├── sodium64.dll │ │ ├── sodium64.dll.meta │ │ ├── z64.dll.meta │ │ └── zstd64.dll.meta │ ├── arm64-v8a │ │ ├── libz.so │ │ ├── libsodium.so │ │ ├── libzstd.so │ │ ├── libz.so.meta │ │ ├── libzstd.so.meta │ │ └── libsodium.so.meta │ ├── armeabi-v7a │ │ ├── libz.so │ │ ├── libzstd.so │ │ ├── libsodium.so │ │ ├── libz.so.meta │ │ ├── libsodium.so.meta │ │ └── libzstd.so.meta │ ├── arm64-v8a.meta │ ├── armeabi-v7a.meta │ ├── MiniJSON.cs.meta │ ├── iOS.meta │ ├── x86.meta │ ├── x86_64.meta │ ├── sodium.bundle.meta │ ├── z.bundle.meta │ └── zstd.bundle.meta │ ├── Sample │ ├── Test.unity │ ├── Test2.unity │ ├── Test.unity.meta │ ├── Test2.unity.meta │ ├── Test.cs.meta │ ├── Test2.cs.meta │ ├── UILogs.cs.meta │ ├── UIOption.cs.meta │ ├── UILogContent.cs.meta │ ├── UIOption.Data.cs.meta │ ├── UIOptionFields.cs.meta │ ├── UILogs.cs │ ├── UIOption.Data.cs │ ├── UILogContent.cs │ ├── UIOptionFields.cs │ ├── UIOption.cs │ ├── Test.cs │ └── Test2.cs │ ├── protobuf-net.dll │ ├── websocket-sharp.dll │ ├── Editor.meta │ ├── Funapi.meta │ ├── Plugins.meta │ ├── Resources.meta │ ├── FunMessageSerializer.dll │ ├── Resources │ ├── Funapi │ │ ├── MozRoots.bytes.meta │ │ └── MozRoots.bytes │ ├── LogItem.prefab │ ├── Funapi.meta │ └── LogItem.prefab.meta │ ├── Funapi │ ├── ICSharpCode.SharpZipLib.dll │ ├── ConcurrentList.cs.meta │ ├── ConnectList.cs.meta │ ├── DebugUtils.cs.meta │ ├── FunapiChat.cs.meta │ ├── FunapiUtils.cs.meta │ ├── MD5Async.cs.meta │ ├── FunapiDownloader.cs.meta │ ├── FunapiEncryption.cs.meta │ ├── FunapiMessage.cs.meta │ ├── FunapiSession.cs.meta │ ├── JsonAccessor.cs.meta │ ├── FunapiAnnouncement.cs.meta │ ├── FunapiMulticasting.cs.meta │ ├── FunapiSession.Transport.cs.meta │ ├── Crypto.cs.meta │ ├── CommandList.cs.meta │ ├── FunapiMono.cs.meta │ ├── FunapiMonoRT.cs.meta │ ├── FunapiTimer.cs.meta │ ├── PostEventList.cs.meta │ ├── SessionId.cs.meta │ ├── TrustManager.cs.meta │ ├── FunapiCompression.cs.meta │ ├── ResponseTimeout.cs.meta │ ├── FunapiDedicatedServer.cs.meta │ ├── FunapiSession.TransportImpl.cs.meta │ ├── ICSharpCode.SharpZipLib.dll.meta │ ├── FunapiMonoRT.cs │ ├── PostEventList.cs │ ├── ConnectList.cs │ ├── CommandList.cs │ ├── FunapiChat.cs │ ├── FunapiUtils.cs │ ├── MD5Async.cs │ ├── ConcurrentList.cs │ ├── JsonAccessor.cs │ └── SessionId.cs │ ├── JsonDotNet │ ├── Assemblies │ │ ├── AOT │ │ │ ├── Newtonsoft.Json.dll │ │ │ ├── Newtonsoft.Json.XML.meta │ │ │ └── Newtonsoft.Json.dll.meta │ │ ├── Standalone │ │ │ ├── Newtonsoft.Json.dll │ │ │ ├── Newtonsoft.Json.XML.meta │ │ │ └── Newtonsoft.Json.dll.meta │ │ ├── AOT.meta │ │ └── Standalone.meta │ ├── link.xml.meta │ ├── Assemblies.meta │ └── link.xml │ ├── JsonDotNet.meta │ ├── README.txt.meta │ ├── Editor │ ├── iFunPlugin.cs.meta │ └── iFunPlugin.cs │ ├── Sample.meta │ ├── messages.dll.meta │ ├── protobuf-net.dll.meta │ ├── FunMessageSerializer.dll.meta │ ├── websocket-sharp.dll.meta │ ├── FunapiWebSocket.jslib.meta │ ├── README.txt │ └── FunapiWebSocket.jslib ├── csharp-samples ├── messages.dll ├── vs2015 │ ├── z.dll │ ├── sodium.dll │ ├── zstd.dll │ ├── App.config │ ├── funapi-plugin-unity.sln │ └── Properties │ │ └── AssemblyInfo.cs ├── libsodium.bundle ├── protobuf-net.dll ├── Newtonsoft.Json.dll ├── websocket-sharp.dll ├── FunMessageSerializer.dll ├── build.bat ├── makefile └── src │ ├── main.cs │ └── client.cs ├── dedicated-server-plugin ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── VFXManager.asset │ ├── AudioManager.asset │ ├── InputManager.asset │ ├── NavMeshAreas.asset │ ├── PresetManager.asset │ ├── DynamicsManager.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── NetworkManager.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── Physics2DSettings.asset │ ├── ClusterInputManager.asset │ ├── EditorBuildSettings.asset │ ├── UnityConnectSettings.asset │ └── XRSettings.asset ├── Assets │ ├── protobuf-net.dll │ ├── dedicated_server_rpc_messages.dll │ ├── FunDedicatedServerRpcMessageSerializer.dll │ ├── JsonDotNet │ │ ├── Assemblies │ │ │ ├── Standalone │ │ │ │ ├── Newtonsoft.Json.dll │ │ │ │ ├── Newtonsoft.Json.XML.meta │ │ │ │ └── Newtonsoft.Json.dll.meta │ │ │ └── Standalone.meta │ │ ├── link.xml.meta │ │ ├── Assemblies.meta │ │ └── link.xml │ ├── JsonDotNet.meta │ ├── Plugins │ │ └── MiniJSON.cs.meta │ ├── Test.meta │ ├── Funapi.meta │ ├── Plugins.meta │ ├── Funapi │ │ ├── FunapiUtils.cs.meta │ │ ├── HostAddr.cs.meta │ │ ├── ConcurrentList.cs.meta │ │ ├── DebugUtils.cs.meta │ │ ├── FunapiMono.cs.meta │ │ ├── FunapiTimer.cs.meta │ │ ├── JsonAccessor.cs.meta │ │ ├── PostEventList.cs.meta │ │ ├── FunapiDSRpcMessage.cs.meta │ │ ├── FunapiDedicatedServer.cs.meta │ │ ├── FunapiDedicatedServerRpc.cs.meta │ │ ├── PostEventList.cs │ │ ├── HostAddr.cs │ │ ├── FunapiUtils.cs │ │ ├── ConcurrentList.cs │ │ └── JsonAccessor.cs │ ├── Test │ │ ├── TestBase.cs.meta │ │ ├── TestDSRpc.cs.meta │ │ ├── TestDSRpc.cs │ │ └── TestBase.cs │ ├── protobuf-net.dll.meta │ ├── dedicated_server_rpc_messages.dll.meta │ └── FunDedicatedServerRpcMessageSerializer.dll.meta └── Packages │ └── manifest.json ├── additional-plugins ├── Assets │ └── Tester │ │ ├── Facebook.unity │ │ ├── Twitter.unity │ │ └── TwitterTest.cs └── Packages │ ├── facebook-plugin.unitypackage │ └── twitter-plugin.unitypackage ├── .gitignore └── .gitattributes /funapi-plugin-unity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.6f2 2 | -------------------------------------------------------------------------------- /csharp-samples/messages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/messages.dll -------------------------------------------------------------------------------- /csharp-samples/vs2015/z.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/vs2015/z.dll -------------------------------------------------------------------------------- /csharp-samples/libsodium.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/libsodium.bundle -------------------------------------------------------------------------------- /csharp-samples/protobuf-net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/protobuf-net.dll -------------------------------------------------------------------------------- /csharp-samples/vs2015/sodium.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/vs2015/sodium.dll -------------------------------------------------------------------------------- /csharp-samples/vs2015/zstd.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/vs2015/zstd.dll -------------------------------------------------------------------------------- /csharp-samples/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /csharp-samples/websocket-sharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/websocket-sharp.dll -------------------------------------------------------------------------------- /csharp-samples/FunMessageSerializer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/csharp-samples/FunMessageSerializer.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/messages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/messages.dll -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.2.8f1 2 | m_EditorVersionWithRevision: 2019.2.8f1 (ff5b465c8d13) 3 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/z.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86/z.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/z.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/z.bundle -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Sample/Test.unity -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/protobuf-net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/protobuf-net.dll -------------------------------------------------------------------------------- /additional-plugins/Assets/Tester/Facebook.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/additional-plugins/Assets/Tester/Facebook.unity -------------------------------------------------------------------------------- /additional-plugins/Assets/Tester/Twitter.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/additional-plugins/Assets/Tester/Twitter.unity -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/protobuf-net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/Assets/protobuf-net.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libz.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/iOS/libz.a -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/zstd.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86/zstd.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/zstd.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/zstd.bundle -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test2.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Sample/Test2.unity -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/websocket-sharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/websocket-sharp.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e095de6c9ce404774a6c7cdf5ec84232 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c16efccd219e458bbd5a00d5835b0d7 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2eda7b180951b48df9847b491be254a9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libzstd.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/iOS/libzstd.a -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/sodium.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/sodium.bundle -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/sodium.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86/sodium.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/z64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86_64/z64.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c70b0578deabb471d9cc01111bc01fa8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/FunMessageSerializer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/FunMessageSerializer.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libz.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/arm64-v8a/libz.so -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libsodium.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/iOS/libsodium.a -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/zstd64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86_64/zstd64.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources/Funapi/MozRoots.bytes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a61709f91439b417191bac611f77622d 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources/LogItem.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Resources/LogItem.prefab -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libz.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libz.so -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/sodium64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/x86_64/sodium64.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources/Funapi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae32de63d59c7464f88e047f51c01a80 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /additional-plugins/Packages/facebook-plugin.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/additional-plugins/Packages/facebook-plugin.unitypackage -------------------------------------------------------------------------------- /additional-plugins/Packages/twitter-plugin.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/additional-plugins/Packages/twitter-plugin.unitypackage -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/VFXManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libsodium.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/arm64-v8a/libsodium.so -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libzstd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/arm64-v8a/libzstd.so -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libzstd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libzstd.so -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/PresetManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libsodium.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libsodium.so -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources/Funapi/MozRoots.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Resources/Funapi/MozRoots.bytes -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/Funapi/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/dedicated_server_rpc_messages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/Assets/dedicated_server_rpc_messages.dll -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /dedicated-server-plugin/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: afb2169f100df4b8c889b6acf2d0b886 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test2.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a44aecc360894434e8ca95cdb3d0ea35 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/FunDedicatedServerRpcMessageSerializer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/Assets/FunDedicatedServerRpcMessageSerializer.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/funapi-plugin-unity/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /csharp-samples/vs2015/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iFunFactory/engine-plugin-unity3d/HEAD/dedicated-server-plugin/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/link.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c61711a3be41423586caecf937ed8ae 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/link.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f50117c73abb042179630cab5d360fdf 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b0cbd0dfa8b5204fbe9bb70eff3567c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 991b6670f703048689f77ec7d8002b4d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae2f29b4219bc47ebb75e4ec32ee28c0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/README.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 064b50741d67e4c91999f028f9408e17 3 | timeCreated: 1526010128 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7f1fd8aa6fa2480b81611bcae54b0f7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/Assemblies.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd7245174897d4aa5b59ce6048059d3a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/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 | } -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Editor/iFunPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dba52d6232130463e8cdb3e63b0f55d0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ConcurrentList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d7a514482a2e4bceba0080fb7b985ad 3 | timeCreated: 1518499126 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ConnectList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0f4ce630369f4ca38aa21407e3ddcce 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/DebugUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32d3fb8b9a58d44c7974033d6b6a1219 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiChat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 582caed0cfa2c4e039395b7a6f854c78 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6d8a035651484d11a7bdd287a6e63a8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/MD5Async.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 039e03216f713422aad5e47eb3f3f3a5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/MiniJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49c4c8c18513b496ea012c97f0897ec5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Plugins/MiniJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49c4c8c18513b496ea012c97f0897ec5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiDownloader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 798fd9cc9a6a24e7ea2fe8adf72ed75a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiEncryption.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0390cc5f6a964667b129426a50cf52b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiMessage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41402fc11ebd9486cad1e79594513594 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiSession.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbd8d06ba979449bba9473a30d255207 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/JsonAccessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8605eb5f32ffe4d98b0020de85beda9d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Resources/LogItem.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82889e90365f249d79b88a25c073080e 3 | timeCreated: 1480387467 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/Assemblies/Standalone.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f514bfbd17d0045a9b28de5ba3cb4bdb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiAnnouncement.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecb517a3bd11148cc98fb5a4d790197e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiMulticasting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d07d6f4a785784287b1ec9272abaa91e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2563897ec967448879d337e279c66017 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Test.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 703ed504135e843d7ac8537db8f4cc1c 3 | folderAsset: yes 4 | timeCreated: 1569561635 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiSession.Transport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1b5b62a72ff4f0683d189d2b402157 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b91d20827a96418cbbedcbc8c9cb4c4 3 | folderAsset: yes 4 | timeCreated: 1483334282 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6a4e5c72c1114c91a5b4de768fd534c 3 | folderAsset: yes 4 | timeCreated: 1569561635 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b80ed505835044b3b9c52bd35d34fe5 3 | folderAsset: yes 4 | timeCreated: 1569561635 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2208e7a49d74a4c9e8fd13c7ea26d2e1 3 | folderAsset: yes 4 | timeCreated: 1473232218 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c03cd7a025ba421d8fe027b23e63e98 3 | folderAsset: yes 4 | timeCreated: 1473394459 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.XML.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aadad8ac54f29e44583510294ac5c312 3 | timeCreated: 1466788355 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d72c7d8ac9b840fbb2371c0d8f4546a 3 | folderAsset: yes 4 | timeCreated: 1473394459 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .DS_Store 3 | Library 4 | Data 5 | Temp 6 | UnityVS 7 | output 8 | obj 9 | bin 10 | *.pidb 11 | *.apk 12 | *.exe 13 | *.mdb 14 | *.zip 15 | *.app 16 | *.sln 17 | *.csproj 18 | *.userprefs 19 | *.unityproj 20 | *.unitypackage 21 | funapi-plugin-unity/.vs 22 | -------------------------------------------------------------------------------- /csharp-samples/build.bat: -------------------------------------------------------------------------------- 1 | csc /debug /define:NO_UNITY /target:exe /out:tester.exe ..\funapi-plugin-unity\Assets\Funapi\*.cs ..\funapi-plugin-unity\Assets\Plugins\MiniJSON.cs src\*.cs /r:FunMessageSerializer.dll /r:messages.dll /r:protobuf-net.dll /r:websocket-sharp.dll /r:Newtonsoft.Json.dll -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 577d9725f58264943855b8ac185531fe 3 | folderAsset: yes 4 | timeCreated: 1466788344 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/AOT.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14f21d7a1e53a8c4e87b25526a7eb63c 3 | folderAsset: yes 4 | timeCreated: 1466788345 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.XML.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6807fedb8dcaf04682d2c84f0ab753f 3 | timeCreated: 1466788355 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/Standalone.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01ef782d02bb1994dbe418b69432552b 3 | folderAsset: yes 4 | timeCreated: 1466788344 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/link.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/link.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fed334e758a64fd4b720e276bd6df30 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/Crypto.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 082aed553c7784ae78dc51a74b1063f9 3 | timeCreated: 1473231712 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a6c7b3b48bab44888d811fd632319e3 3 | timeCreated: 1527732220 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/Test2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f647dee56a40c44a4be0b41c66f9db33 3 | timeCreated: 1527732220 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UILogs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a845f52a57f36460fab0f6a71ae47295 3 | timeCreated: 1480388115 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UIOption.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2ed5348a19934ab8849ccba423f4848 3 | timeCreated: 1482366692 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/HostAddr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee680e5e6a4b64ebca342b5128b588d0 3 | timeCreated: 1569561729 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Test/TestBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 677726cbc372b4c73a428ff0e3bd970e 3 | timeCreated: 1569722766 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Test/TestDSRpc.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2a289655f8b44611a3d38fb99718c0e 3 | timeCreated: 1569560767 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/CommandList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48635e336cb154b4491eba089afcba84 3 | timeCreated: 1530668027 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiMono.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1a216a6feb1f41789416903d4f83697 3 | timeCreated: 1517550899 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiMonoRT.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c55f89836434b4f15ac40a1990a9e0ac 3 | timeCreated: 1517550899 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiTimer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63170bd53088346c9b30de53314b0f0b 3 | timeCreated: 1517549530 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/PostEventList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6facc71d83bfa4493b729c38c7023586 3 | timeCreated: 1517549530 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/SessionId.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f14ef036e93034d88940b82bd57e8bef 3 | timeCreated: 1480555283 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/TrustManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5e65a26f17544dd6b5a79fe04fc261f 3 | timeCreated: 1526447536 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UILogContent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67c196c5fd03b4756b74a60ef65cc39f 3 | timeCreated: 1480395849 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UIOption.Data.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ccadeccc84fb4d5296bce17d01d8a30 3 | timeCreated: 1483931701 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/ConcurrentList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72e28b0df7ae34cc7ad8ef06930e92f9 3 | timeCreated: 1569561729 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/DebugUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1852f061c950548a898cf476c479fc3d 3 | timeCreated: 1569560871 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiMono.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c78738ed03e54065b42be0cf190287c 3 | timeCreated: 1569563069 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiTimer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff331df6cba8c4df3a582ac21c6b79bd 3 | timeCreated: 1569722826 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/JsonAccessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f17cb2856241c4a5a9c1c0c9913fd7da 3 | timeCreated: 1569561743 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/PostEventList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a72980eb54fa4fcc9dce9746036123b 3 | timeCreated: 1569561729 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiCompression.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 404b9e5d991104e43b82e9923c00bb19 3 | timeCreated: 1516947769 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ResponseTimeout.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dc6af83709314fe787378b83c6ba426 3 | timeCreated: 1529477008 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UIOptionFields.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd08af6ac106446239cf7730ec55f781 3 | timeCreated: 1484014773 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiDSRpcMessage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04c60e84af5d64cb1988e29147acf78c 3 | timeCreated: 1569720462 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiDedicatedServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fc7153cec6c54d9e97b89284284ab2d 3 | timeCreated: 1509589041 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiDedicatedServer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02da844fd84af4478b736d0d7f21446e 3 | timeCreated: 1569560871 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiDedicatedServerRpc.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cd7f7ceb8d1648698675a2b1641bbd3 3 | timeCreated: 1569560767 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiSession.TransportImpl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7f41a34831e646f7ae7915ba9379d76 3 | timeCreated: 1518057757 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/messages.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8eac417c88824833adae09278901fe5 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/protobuf-net.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de874b516e0594e2595f6cfc3f3dc039 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/FunMessageSerializer.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 038a782f98b2c4c8688af4ffb14fa003 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ICSharpCode.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f576a6958b6d8b40bcde9be347ec478 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | DefaultValueInitialized: true 16 | WindowsStoreApps: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libsodium.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35b24c2bc04e14561985f0dae4fc35a1 3 | timeCreated: 1473232218 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | iOS: 19 | enabled: 1 20 | settings: {} 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/sodium.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87bd21737836448ffb8b8a76796ccff6 3 | timeCreated: 1473554244 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | DefaultValueInitialized: true 18 | OSXIntel: 19 | enabled: 1 20 | settings: {} 21 | OSXIntel64: 22 | enabled: 1 23 | settings: {} 24 | OSXUniversal: 25 | enabled: 1 26 | settings: {} 27 | userData: 28 | assetBundleName: 29 | assetBundleVariant: 30 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libz.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b75175d9862240028e14bd8c28b2183 3 | timeCreated: 1518411605 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | iPhone: iOS 28 | second: 29 | enabled: 1 30 | settings: {} 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/iOS/libzstd.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5f50dd9a702947988892280347fe322 3 | timeCreated: 1517182940 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | iPhone: iOS 28 | second: 29 | enabled: 1 30 | settings: {} 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/protobuf-net.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bb65e5a091214754809495ea66baae3 3 | timeCreated: 1569720317 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/websocket-sharp.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcb7d004331734518b5967601b122905 3 | timeCreated: 1525752910 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/dedicated_server_rpc_messages.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2ab4eec9fcf54322b3f9724dfab41dc 3 | timeCreated: 1569720317 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/FunDedicatedServerRpcMessageSerializer.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 258e11ca830874af38e0bb294e64503f 3 | timeCreated: 1569720316 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41d3a8be973ac494da68a68b2c4ea81e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/FunapiWebSocket.jslib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 574bc47f2cefee84fadc7a0cf3290bba 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: WebGL 27 | second: 28 | enabled: 1 29 | settings: {} 30 | - first: 31 | WebGL: WebGL 32 | second: 33 | enabled: 1 34 | settings: {} 35 | userData: 36 | assetBundleName: 37 | assetBundleVariant: 38 | -------------------------------------------------------------------------------- /csharp-samples/vs2015/funapi-plugin-unity.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "funapi-plugin-unity", "funapi-plugin-unity.csproj", "{F6F4AA6C-5EB9-4301-85CA-F2A9B028C578}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Release|x64 = Release|x64 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {F6F4AA6C-5EB9-4301-85CA-F2A9B028C578}.Debug|x64.ActiveCfg = Debug|x64 15 | {F6F4AA6C-5EB9-4301-85CA-F2A9B028C578}.Debug|x64.Build.0 = Debug|x64 16 | {F6F4AA6C-5EB9-4301-85CA-F2A9B028C578}.Release|x64.ActiveCfg = Release|x64 17 | {F6F4AA6C-5EB9-4301-85CA-F2A9B028C578}.Release|x64.Build.0 = Release|x64 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/z.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 098f85d2aa80246c5a8707af283c0886 3 | timeCreated: 1518410310 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Standalone: OSXIntel 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | Standalone: OSXIntel64 34 | second: 35 | enabled: 1 36 | settings: {} 37 | data: 38 | first: 39 | Standalone: OSXUniversal 40 | second: 41 | enabled: 1 42 | settings: {} 43 | userData: 44 | assetBundleName: 45 | assetBundleVariant: 46 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/zstd.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c53b255040d2349e6b3592c27b5a038c 3 | timeCreated: 1516947770 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Standalone: OSXIntel 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | Standalone: OSXIntel64 34 | second: 35 | enabled: 1 36 | settings: {} 37 | data: 38 | first: 39 | Standalone: OSXUniversal 40 | second: 41 | enabled: 1 42 | settings: {} 43 | userData: 44 | assetBundleName: 45 | assetBundleVariant: 46 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UILogs.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using UnityEngine; 8 | using System.Collections; 9 | 10 | 11 | public class UILogs : MonoBehaviour 12 | { 13 | void Awake () 14 | { 15 | content_ = transform.GetComponentInChildren(); 16 | 17 | #if ENABLE_OUTPUT 18 | Fun.FunDebug.OutputCallback += OnOutput; 19 | #endif 20 | } 21 | 22 | void Start () 23 | { 24 | #if !ENABLE_OUTPUT 25 | content_.AddLog("If you want to see logs at this screen,\n" + 26 | "you should define 'ENABLE_OUTPUT' symbol."); 27 | #endif 28 | } 29 | 30 | void OnOutput (string type, string message) 31 | { 32 | content_.AddLog(message); 33 | } 34 | 35 | public void Clear () 36 | { 37 | content_.ClearAll(); 38 | } 39 | 40 | 41 | UILogContent content_; 42 | } 43 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/sodium.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98a7d4bf18eb64e168eb7fe6b119c4ab 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | CPU: x86 16 | DefaultValueInitialized: true 17 | Linux: 18 | enabled: 1 19 | settings: 20 | CPU: x86 21 | Linux64: 22 | enabled: 0 23 | settings: 24 | CPU: None 25 | LinuxUniversal: 26 | enabled: 1 27 | settings: 28 | CPU: x86 29 | OSXIntel: 30 | enabled: 1 31 | settings: 32 | CPU: AnyCPU 33 | OSXIntel64: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | OSXUniversal: 38 | enabled: 0 39 | settings: 40 | CPU: x86 41 | Win: 42 | enabled: 1 43 | settings: 44 | CPU: AnyCPU 45 | Win64: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | userData: 50 | assetBundleName: 51 | assetBundleVariant: 52 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/sodium64.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 762e07e844a93dc4494f22338297ac7c 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Any: 10 | enabled: 1 11 | settings: {} 12 | Editor: 13 | enabled: 0 14 | settings: 15 | CPU: x86_64 16 | DefaultValueInitialized: true 17 | Linux: 18 | enabled: 0 19 | settings: 20 | CPU: None 21 | Linux64: 22 | enabled: 1 23 | settings: 24 | CPU: x86_64 25 | LinuxUniversal: 26 | enabled: 1 27 | settings: 28 | CPU: x86_64 29 | OSXIntel: 30 | enabled: 0 31 | settings: 32 | CPU: None 33 | OSXIntel64: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | OSXUniversal: 38 | enabled: 0 39 | settings: 40 | CPU: x86_64 41 | Win: 42 | enabled: 0 43 | settings: 44 | CPU: None 45 | Win64: 46 | enabled: 1 47 | settings: 48 | CPU: AnyCPU 49 | userData: 50 | assetBundleName: 51 | assetBundleVariant: 52 | -------------------------------------------------------------------------------- /csharp-samples/makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2013 iFunFactory Inc. All Rights Reserved. 2 | # 3 | # This work is confidential and proprietary to iFunFactory Inc and 4 | # must not be used, disclosed, copied, or distributed without the prior 5 | # consent of iFunFactory Inc. 6 | 7 | PLUGIN_ROOT=../funapi-plugin-unity/Assets 8 | SRC_ROOT=src 9 | 10 | tester.exe: ${SRC_ROOT}/*.cs \ 11 | ${PLUGIN_ROOT}/Funapi/*.cs \ 12 | ${PLUGIN_ROOT}/plugins/MiniJSON.cs \ 13 | FunMessageSerializer.dll \ 14 | messages.dll \ 15 | protobuf-net.dll \ 16 | websocket-sharp.dll \ 17 | Newtonsoft.Json.dll 18 | 19 | mcs /debug -define:NO_UNITY \ 20 | -target:exe -out:$@ \ 21 | ${SRC_ROOT}/*.cs \ 22 | ${PLUGIN_ROOT}/Funapi/*.cs \ 23 | ${PLUGIN_ROOT}/plugins/MiniJSON.cs \ 24 | /r:FunMessageSerializer.dll \ 25 | /r:messages.dll \ 26 | /r:protobuf-net.dll \ 27 | /r:websocket-sharp.dll \ 28 | /r:Newtonsoft.Json.dll 29 | 30 | 31 | FunMessageSerializer.dll: ${PLUGIN_ROOT}/FunMessageSerializer.dll 32 | cp $^ . 33 | 34 | messages.dll: ${PLUGIN_ROOT}/messages.dll 35 | cp $^ . 36 | 37 | protobuf-net.dll: ${PLUGIN_ROOT}/protobuf-net.dll 38 | cp $^ . 39 | 40 | websocket-sharp.dll: ${PLUGIN_ROOT}/websocket-sharp.dll 41 | cp $^ . 42 | -------------------------------------------------------------------------------- /csharp-samples/vs2015/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 6 | // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 7 | // 이러한 특성 값을 변경하세요. 8 | [assembly: AssemblyTitle("funapi-plugin-unity")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("funapi-plugin-unity")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 18 | // 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 19 | // 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. 20 | [assembly: ComVisible(false)] 21 | 22 | // 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. 23 | [assembly: Guid("f6f4aa6c-5eb9-4301-85ca-f2a9b028c578")] 24 | 25 | // 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. 26 | // 27 | // 주 버전 28 | // 부 버전 29 | // 빌드 번호 30 | // 수정 버전 31 | // 32 | // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 33 | // 지정되도록 할 수 있습니다. 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UIOption.Data.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using UnityEngine; 8 | 9 | 10 | public partial class UIOption 11 | { 12 | public class Data 13 | { 14 | public void Init () 15 | { 16 | address = "127.0.0.1"; 17 | port = 8012; 18 | protocol = 0; 19 | encoding = 0; 20 | } 21 | 22 | public string address 23 | { 24 | get { return PlayerPrefs.GetString("address"); } 25 | set { PlayerPrefs.SetString("address", value); } 26 | } 27 | 28 | public int port 29 | { 30 | get { return PlayerPrefs.GetInt("port"); } 31 | set { PlayerPrefs.SetInt("port", value); } 32 | } 33 | 34 | public int protocol 35 | { 36 | get { return PlayerPrefs.GetInt("protocol"); } 37 | set { PlayerPrefs.SetInt("protocol", value); } 38 | } 39 | 40 | public int encoding 41 | { 42 | get { return PlayerPrefs.GetInt("encoding"); } 43 | set { PlayerPrefs.SetInt("encoding", value); } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/README.txt: -------------------------------------------------------------------------------- 1 | Websocket Library for Funapi Plugin 2 | =================================== 3 | 4 | websocket-sharp.dll built from https://github.com/sta/websocket-sharp.git, commit 000c0a76b4fb2045cabc4f0ae6a80bea03e2663e (Apr 30, 2018) 5 | 6 | License 7 | ======= 8 | 9 | The MIT License (MIT) 10 | 11 | Copyright (c) 2010-2018 sta.blockhead 12 | 13 | Permission is hereby granted, free of charge, to any person obtaining a copy 14 | of this software and associated documentation files (the "Software"), to deal 15 | in the Software without restriction, including without limitation the rights 16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 | copies of the Software, and to permit persons to whom the Software is 18 | furnished to do so, subject to the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be included in 21 | all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 28 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 29 | THE SOFTWARE. 30 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiMonoRT.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | #if NO_UNITY 8 | using System.Threading; 9 | 10 | 11 | namespace Fun 12 | { 13 | public partial class FunapiMono 14 | { 15 | static FunapiMono instance 16 | { 17 | get 18 | { 19 | if (instance_ == null) 20 | { 21 | instance_ = new FunapiMono(); 22 | instance_.onStart(); 23 | } 24 | 25 | return instance_; 26 | } 27 | } 28 | 29 | public static void Stop () 30 | { 31 | instance.onStop(); 32 | } 33 | 34 | ~FunapiMono() 35 | { 36 | onStop(); 37 | } 38 | 39 | void onStart () 40 | { 41 | thread_ = new Thread(new ThreadStart(onUpdate)); 42 | thread_.Start(); 43 | } 44 | 45 | void onStop () 46 | { 47 | if (thread_ == null || running_ == false) 48 | return; 49 | 50 | running_ = false; 51 | 52 | thread_.Join(); 53 | thread_ = null; 54 | } 55 | 56 | void onUpdate () 57 | { 58 | while (running_) 59 | { 60 | Update(); 61 | Thread.Sleep(33); 62 | } 63 | } 64 | 65 | 66 | static FunapiMono instance_ = null; 67 | 68 | Thread thread_ = null; 69 | bool running_ = true; 70 | } 71 | } 72 | #endif 73 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17aef65a15b471f468b5fbeb4ff0c6a1 3 | timeCreated: 1466788349 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 0 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 1 20 | settings: 21 | CPU: AnyCPU 22 | DefaultValueInitialized: true 23 | OS: AnyOS 24 | Linux: 25 | enabled: 1 26 | settings: 27 | CPU: x86 28 | Linux64: 29 | enabled: 1 30 | settings: 31 | CPU: x86_64 32 | LinuxUniversal: 33 | enabled: 1 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | OSXIntel64: 41 | enabled: 1 42 | settings: 43 | CPU: AnyCPU 44 | OSXUniversal: 45 | enabled: 1 46 | settings: 47 | CPU: AnyCPU 48 | SamsungTV: 49 | enabled: 0 50 | settings: 51 | STV_MODEL: STANDARD_13 52 | Win: 53 | enabled: 1 54 | settings: 55 | CPU: AnyCPU 56 | Win64: 57 | enabled: 1 58 | settings: 59 | CPU: AnyCPU 60 | WindowsStoreApps: 61 | enabled: 0 62 | settings: 63 | CPU: AnyCPU 64 | DontProcess: False 65 | PlaceholderPath: 66 | SDK: AnySDK 67 | ScriptingBackend: Il2Cpp 68 | iOS: 69 | enabled: 0 70 | settings: 71 | CompileFlags: 72 | FrameworkDependencies: 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/JsonDotNet/Assemblies/AOT/Newtonsoft.Json.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a3c684705042f345975d924f6983e36 3 | timeCreated: 1466788352 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 1 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | DefaultValueInitialized: true 23 | OS: AnyOS 24 | Linux: 25 | enabled: 0 26 | settings: 27 | CPU: x86 28 | Linux64: 29 | enabled: 0 30 | settings: 31 | CPU: x86_64 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | SamsungTV: 41 | enabled: 1 42 | settings: 43 | STV_MODEL: STANDARD_13 44 | Tizen: 45 | enabled: 1 46 | settings: {} 47 | WebGL: 48 | enabled: 1 49 | settings: {} 50 | Win: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | Win64: 55 | enabled: 0 56 | settings: 57 | CPU: AnyCPU 58 | WindowsStoreApps: 59 | enabled: 1 60 | settings: 61 | CPU: AnyCPU 62 | DontProcess: False 63 | PlaceholderPath: Assets/JsonDotNet/Assemblies/Standalone/Newtonsoft.Json.dll 64 | SDK: AnySDK 65 | ScriptingBackend: Il2Cpp 66 | iOS: 67 | enabled: 1 68 | settings: 69 | CompileFlags: 70 | FrameworkDependencies: 71 | tvOS: 72 | enabled: 1 73 | settings: {} 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.2.16", 4 | "com.unity.ext.nunit": "1.0.0", 5 | "com.unity.ide.rider": "1.1.0", 6 | "com.unity.ide.vscode": "1.1.2", 7 | "com.unity.package-manager-ui": "2.2.0", 8 | "com.unity.test-framework": "1.0.13", 9 | "com.unity.textmeshpro": "2.0.1", 10 | "com.unity.timeline": "1.1.0", 11 | "com.unity.ugui": "1.0.0", 12 | "com.unity.modules.ai": "1.0.0", 13 | "com.unity.modules.androidjni": "1.0.0", 14 | "com.unity.modules.animation": "1.0.0", 15 | "com.unity.modules.assetbundle": "1.0.0", 16 | "com.unity.modules.audio": "1.0.0", 17 | "com.unity.modules.cloth": "1.0.0", 18 | "com.unity.modules.director": "1.0.0", 19 | "com.unity.modules.imageconversion": "1.0.0", 20 | "com.unity.modules.imgui": "1.0.0", 21 | "com.unity.modules.jsonserialize": "1.0.0", 22 | "com.unity.modules.particlesystem": "1.0.0", 23 | "com.unity.modules.physics": "1.0.0", 24 | "com.unity.modules.physics2d": "1.0.0", 25 | "com.unity.modules.screencapture": "1.0.0", 26 | "com.unity.modules.terrain": "1.0.0", 27 | "com.unity.modules.terrainphysics": "1.0.0", 28 | "com.unity.modules.tilemap": "1.0.0", 29 | "com.unity.modules.ui": "1.0.0", 30 | "com.unity.modules.uielements": "1.0.0", 31 | "com.unity.modules.umbra": "1.0.0", 32 | "com.unity.modules.unityanalytics": "1.0.0", 33 | "com.unity.modules.unitywebrequest": "1.0.0", 34 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 35 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 36 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 37 | "com.unity.modules.unitywebrequestwww": "1.0.0", 38 | "com.unity.modules.vehicles": "1.0.0", 39 | "com.unity.modules.video": "1.0.0", 40 | "com.unity.modules.vr": "1.0.0", 41 | "com.unity.modules.wind": "1.0.0", 42 | "com.unity.modules.xr": "1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/PostEventList.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | 9 | 10 | namespace Fun 11 | { 12 | public class PostEventList 13 | { 14 | public void Add (Action func, float delay = 0f) 15 | { 16 | if (func == null) 17 | return; 18 | 19 | list_.Add(new Func(func, delay)); 20 | } 21 | 22 | public void Add (Action func, T param, float delay = 0f) 23 | { 24 | if (func == null) 25 | return; 26 | 27 | list_.Add(new Func(delegate { func(param); }, delay)); 28 | } 29 | 30 | public void Clear () 31 | { 32 | list_.Clear(); 33 | } 34 | 35 | public void Update (float deltaTime) 36 | { 37 | list_.Update(deltaTime); 38 | } 39 | 40 | 41 | class Func : IConcurrentItem 42 | { 43 | public Func (Action func, float delay) 44 | { 45 | func_ = func; 46 | delay_ = delay; 47 | } 48 | 49 | public void Update (float deltaTime) 50 | { 51 | if (isDone) 52 | return; 53 | 54 | delay_ -= deltaTime; 55 | if (delay_ > 0f) 56 | return; 57 | 58 | func_(); 59 | 60 | isDone = true; 61 | } 62 | 63 | public string name { get { return "Event"; } } 64 | public bool isDone { get; set; } 65 | 66 | float delay_ = 0f; 67 | Action func_ = null; 68 | } 69 | 70 | 71 | ConcurrentList list_ = new ConcurrentList(); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/PostEventList.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | using System.Collections; 9 | 10 | 11 | namespace Fun 12 | { 13 | public class PostEventList 14 | { 15 | public void Add (Action func, float delay = 0f) 16 | { 17 | if (func == null) 18 | return; 19 | 20 | list_.Add(new Func(func, delay)); 21 | } 22 | 23 | public void Add (Action func, T param, float delay = 0f) 24 | { 25 | if (func == null) 26 | return; 27 | 28 | list_.Add(new Func(delegate { func(param); }, delay)); 29 | } 30 | 31 | public void Clear () 32 | { 33 | list_.Clear(); 34 | } 35 | 36 | public void Update (float deltaTime) 37 | { 38 | list_.Update(deltaTime); 39 | } 40 | 41 | 42 | class Func : IConcurrentItem 43 | { 44 | public Func (Action func, float delay) 45 | { 46 | func_ = func; 47 | delay_ = delay; 48 | } 49 | 50 | public void Update (float deltaTime) 51 | { 52 | if (isDone) 53 | return; 54 | 55 | delay_ -= deltaTime; 56 | if (delay_ > 0f) 57 | return; 58 | 59 | func_(); 60 | 61 | isDone = true; 62 | } 63 | 64 | public string name { get { return "Event"; } } 65 | public bool isDone { get; set; } 66 | 67 | float delay_ = 0f; 68 | Action func_ = null; 69 | } 70 | 71 | 72 | ConcurrentList list_ = new ConcurrentList(); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/z.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 170a3fd08275e45ad8210d1570c97d9a 3 | timeCreated: 1518411605 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | CPU: x86 25 | DefaultValueInitialized: true 26 | data: 27 | first: 28 | Facebook: Win 29 | second: 30 | enabled: 1 31 | settings: 32 | CPU: AnyCPU 33 | data: 34 | first: 35 | Facebook: Win64 36 | second: 37 | enabled: 0 38 | settings: 39 | CPU: None 40 | data: 41 | first: 42 | Standalone: Linux 43 | second: 44 | enabled: 1 45 | settings: 46 | CPU: x86 47 | data: 48 | first: 49 | Standalone: Linux64 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: None 54 | data: 55 | first: 56 | Standalone: LinuxUniversal 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86 61 | data: 62 | first: 63 | Standalone: OSXIntel 64 | second: 65 | enabled: 1 66 | settings: 67 | CPU: AnyCPU 68 | data: 69 | first: 70 | Standalone: OSXIntel64 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | data: 76 | first: 77 | Standalone: OSXUniversal 78 | second: 79 | enabled: 0 80 | settings: 81 | CPU: x86 82 | data: 83 | first: 84 | Standalone: Win 85 | second: 86 | enabled: 1 87 | settings: 88 | CPU: AnyCPU 89 | data: 90 | first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: None 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86/zstd.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66e147f34e3964febbdab342887e4f31 3 | timeCreated: 1517272032 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | CPU: x86 25 | DefaultValueInitialized: true 26 | data: 27 | first: 28 | Facebook: Win 29 | second: 30 | enabled: 1 31 | settings: 32 | CPU: AnyCPU 33 | data: 34 | first: 35 | Facebook: Win64 36 | second: 37 | enabled: 0 38 | settings: 39 | CPU: None 40 | data: 41 | first: 42 | Standalone: Linux 43 | second: 44 | enabled: 1 45 | settings: 46 | CPU: x86 47 | data: 48 | first: 49 | Standalone: Linux64 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: None 54 | data: 55 | first: 56 | Standalone: LinuxUniversal 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86 61 | data: 62 | first: 63 | Standalone: OSXIntel 64 | second: 65 | enabled: 1 66 | settings: 67 | CPU: AnyCPU 68 | data: 69 | first: 70 | Standalone: OSXIntel64 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | data: 76 | first: 77 | Standalone: OSXUniversal 78 | second: 79 | enabled: 0 80 | settings: 81 | CPU: x86 82 | data: 83 | first: 84 | Standalone: Win 85 | second: 86 | enabled: 1 87 | settings: 88 | CPU: AnyCPU 89 | data: 90 | first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: None 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/z64.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af183d1e0c48f412ab70a953637cafd7 3 | timeCreated: 1518411605 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | CPU: x86_64 25 | DefaultValueInitialized: true 26 | data: 27 | first: 28 | Facebook: Win 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: None 33 | data: 34 | first: 35 | Facebook: Win64 36 | second: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | data: 41 | first: 42 | Standalone: Linux 43 | second: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | data: 48 | first: 49 | Standalone: Linux64 50 | second: 51 | enabled: 1 52 | settings: 53 | CPU: x86_64 54 | data: 55 | first: 56 | Standalone: LinuxUniversal 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | data: 62 | first: 63 | Standalone: OSXIntel 64 | second: 65 | enabled: 0 66 | settings: 67 | CPU: None 68 | data: 69 | first: 70 | Standalone: OSXIntel64 71 | second: 72 | enabled: 1 73 | settings: 74 | CPU: AnyCPU 75 | data: 76 | first: 77 | Standalone: OSXUniversal 78 | second: 79 | enabled: 0 80 | settings: 81 | CPU: x86_64 82 | data: 83 | first: 84 | Standalone: Win 85 | second: 86 | enabled: 0 87 | settings: 88 | CPU: None 89 | data: 90 | first: 91 | Standalone: Win64 92 | second: 93 | enabled: 1 94 | settings: 95 | CPU: AnyCPU 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/x86_64/zstd64.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c5f48ed034ac40dc858303d6d474abd 3 | timeCreated: 1517272032 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | CPU: x86_64 25 | DefaultValueInitialized: true 26 | data: 27 | first: 28 | Facebook: Win 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: None 33 | data: 34 | first: 35 | Facebook: Win64 36 | second: 37 | enabled: 1 38 | settings: 39 | CPU: AnyCPU 40 | data: 41 | first: 42 | Standalone: Linux 43 | second: 44 | enabled: 0 45 | settings: 46 | CPU: None 47 | data: 48 | first: 49 | Standalone: Linux64 50 | second: 51 | enabled: 1 52 | settings: 53 | CPU: x86_64 54 | data: 55 | first: 56 | Standalone: LinuxUniversal 57 | second: 58 | enabled: 1 59 | settings: 60 | CPU: x86_64 61 | data: 62 | first: 63 | Standalone: OSXIntel 64 | second: 65 | enabled: 0 66 | settings: 67 | CPU: None 68 | data: 69 | first: 70 | Standalone: OSXIntel64 71 | second: 72 | enabled: 1 73 | settings: 74 | CPU: AnyCPU 75 | data: 76 | first: 77 | Standalone: OSXUniversal 78 | second: 79 | enabled: 0 80 | settings: 81 | CPU: x86_64 82 | data: 83 | first: 84 | Standalone: Win 85 | second: 86 | enabled: 0 87 | settings: 88 | CPU: None 89 | data: 90 | first: 91 | Standalone: Win64 92 | second: 93 | enabled: 1 94 | settings: 95 | CPU: AnyCPU 96 | userData: 97 | assetBundleName: 98 | assetBundleVariant: 99 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Editor/iFunPlugin.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using UnityEditor; 8 | using UnityEngine; 9 | 10 | 11 | public class iFunPlugin : ScriptableObject 12 | { 13 | const string kAboutText = "This helps you use the Funapi Plugin.\n\n" + 14 | "If you have any trouble then please contact us.\n" + 15 | "funapi-support@ifunfactory.com"; 16 | const string kDocsUrl = "http://www.ifunfactory.com/engine/documents/reference/ko/client-plugin.html"; 17 | 18 | 19 | [MenuItem("iFun Plugin/Export Package", false, 10)] 20 | static void MakeExportPackage () 21 | { 22 | makePackage(); 23 | } 24 | 25 | [MenuItem("iFun Plugin/Download Root Certificates", false, 20)] 26 | static void DownloadMozRoots () 27 | { 28 | bool ret = Fun.TrustManager.DownloadMozRoots(); 29 | 30 | string text = string.Format("Download certificates {0}!!", ret ? "succeeded" : "failed"); 31 | EditorUtility.DisplayDialog("Funapi Plugin", text, "OK"); 32 | } 33 | 34 | [MenuItem("iFun Plugin/Documentation", false, 100)] 35 | static void OpenDocs () 36 | { 37 | Application.OpenURL(kDocsUrl); 38 | } 39 | 40 | [MenuItem("iFun Plugin/About iFun Plugin", false, 100)] 41 | static void AboutPlugin () 42 | { 43 | EditorUtility.DisplayDialog("Funapi Plugin", kAboutText, "OK"); 44 | } 45 | 46 | 47 | static void makePackage () 48 | { 49 | string output = string.Format("funapi-plugin-unity-v{0}.unitypackage", Fun.FunapiVersion.kPluginVersion); 50 | string[] assets = new string[] { "Assets/Editor", "Assets/Funapi", "Assets/Plugins", 51 | "Assets/Resources", "Assets/Tester", "Assets/protobuf-net.dll", 52 | "Assets/FunMessageSerializer.dll", "Assets/messages.dll"}; 53 | 54 | AssetDatabase.ExportPackage(assets, "../" + output, ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies); 55 | EditorUtility.DisplayDialog("Funapi Plugin", string.Format("Package creation success!\n({0})", output), "OK"); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/HostAddr.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Net; 10 | using System.Net.Sockets; 11 | 12 | 13 | namespace Fun 14 | { 15 | public class HostAddr 16 | { 17 | public HostAddr (string host, UInt16 port) 18 | { 19 | this.host = host; 20 | this.port = port; 21 | } 22 | 23 | public string host; 24 | public UInt16 port; 25 | } 26 | 27 | public class HostHttp : HostAddr 28 | { 29 | public HostHttp (string host, UInt16 port, bool https = false) 30 | : base(host, port) 31 | { 32 | this.https = https; 33 | } 34 | 35 | public bool https; 36 | } 37 | 38 | public class HostIP : HostAddr 39 | { 40 | public HostIP (string host, UInt16 port) 41 | : base(host, port) 42 | { 43 | refresh(); 44 | } 45 | 46 | public bool refresh () 47 | { 48 | ip_list_ = Dns.GetHostAddresses(host); 49 | if (ip_list_ == null || ip_list_.Length == 0) 50 | { 51 | FunDebug.LogWarning("HostIP - Can't get any host address from '{0}'.", host); 52 | return false; 53 | } 54 | 55 | index_ = 0; 56 | inet_ = ip_list_[0].AddressFamily; 57 | 58 | return true; 59 | } 60 | 61 | public AddressFamily inet 62 | { 63 | get { return inet_; } 64 | } 65 | 66 | public IPAddress ip 67 | { 68 | get 69 | { 70 | if (ip_list_ == null || ip_list_.Length == 0) 71 | return null; 72 | 73 | if (index_ >= ip_list_.Length) 74 | index_ = 0; 75 | 76 | return ip_list_[index_++]; 77 | } 78 | } 79 | 80 | public IPAddress[] list 81 | { 82 | get { return ip_list_; } 83 | } 84 | 85 | 86 | IPAddress[] ip_list_ = null; 87 | AddressFamily inet_; 88 | int index_ = 0; 89 | } 90 | 91 | } // namespace Fun 92 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/ConnectList.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Net; 10 | using System.Net.Sockets; 11 | 12 | 13 | namespace Fun 14 | { 15 | public class HostAddr 16 | { 17 | public HostAddr (string host, UInt16 port) 18 | { 19 | this.host = host; 20 | this.port = port; 21 | } 22 | 23 | public string host; 24 | public UInt16 port; 25 | } 26 | 27 | public class HostHttp : HostAddr 28 | { 29 | public HostHttp (string host, UInt16 port, bool https = false) 30 | : base(host, port) 31 | { 32 | this.https = https; 33 | } 34 | 35 | public bool https; 36 | } 37 | 38 | public class HostIP : HostAddr 39 | { 40 | public HostIP (string host, UInt16 port) 41 | : base(host, port) 42 | { 43 | refresh(); 44 | } 45 | 46 | public bool refresh () 47 | { 48 | ip_list_ = Dns.GetHostAddresses(host); 49 | if (ip_list_ == null || ip_list_.Length == 0) 50 | { 51 | FunDebug.LogWarning("HostIP - Can't get any host address from '{0}'.", host); 52 | return false; 53 | } 54 | 55 | index_ = 0; 56 | inet_ = ip_list_[0].AddressFamily; 57 | 58 | return true; 59 | } 60 | 61 | public AddressFamily inet 62 | { 63 | get { return inet_; } 64 | } 65 | 66 | public IPAddress ip 67 | { 68 | get 69 | { 70 | if (ip_list_ == null || ip_list_.Length == 0) 71 | return null; 72 | 73 | if (index_ >= ip_list_.Length) 74 | index_ = 0; 75 | 76 | return ip_list_[index_++]; 77 | } 78 | } 79 | 80 | public IPAddress[] list 81 | { 82 | get { return ip_list_; } 83 | } 84 | 85 | 86 | IPAddress[] ip_list_ = null; 87 | AddressFamily inet_; 88 | int index_ = 0; 89 | } 90 | 91 | } // namespace Fun 92 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libz.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7666dfb8866d42289d5bbb49b62298f 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARM64 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CompileFlags: 103 | FrameworkDependencies: 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libzstd.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d8ee9c4203db4b9b95cf2e75f516e83 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARM64 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CompileFlags: 103 | FrameworkDependencies: 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libz.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0ae67f308177427e9f32c9d6370e390 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARMv7 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CompileFlags: 103 | FrameworkDependencies: 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libsodium.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fefd3af2e2acc491d8e33265b4fb57f1 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARMv7 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CompileFlags: 103 | FrameworkDependencies: 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/armeabi-v7a/libzstd.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d462f992c25ac47349b5e58700056423 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARMv7 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CompileFlags: 103 | FrameworkDependencies: 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Test/TestDSRpc.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using Fun; 8 | using System.Collections; 9 | using UnityEngine.TestTools; 10 | using UnityEngine; 11 | 12 | // protobuf 13 | using funapi.distribution.fun_dedicated_server_rpc_message; 14 | using plugin_dedicated_server_rpc_messages; 15 | 16 | 17 | public class TestDSRpc 18 | { 19 | [UnityTest] 20 | public IEnumerator Test () 21 | { 22 | yield return new TestImpl(); 23 | } 24 | 25 | class TestImpl : TestBase 26 | { 27 | public TestImpl () 28 | { 29 | DSRpcOption option = new DSRpcOption(); 30 | option.Tag = "Test"; 31 | option.AddHost("127.0.0.1", 8016); 32 | option.AddHost("127.0.0.1", 8017); 33 | option.AddHost("127.0.0.1", 8018); 34 | 35 | FunapiDedicatedServerRpc rpc = new FunapiDedicatedServerRpc(option); 36 | rpc.SetHandler("echo", onEcho); 37 | rpc.SetHandler("nav", onNavRequest); 38 | 39 | rpc.Start(); 40 | 41 | setTestTimeoutWithoutFail(30f); 42 | } 43 | 44 | FunDedicatedServerRpcMessage onEcho (string type, FunDedicatedServerRpcMessage request) 45 | { 46 | EchoDedicatedServerRpcMessage echo = new EchoDedicatedServerRpcMessage(); 47 | echo.message = "echo from client"; 48 | 49 | return FunapiDSRpcMessage.CreateMessage(echo, MessageType.echo_ds_rpc);; 50 | } 51 | 52 | FunDedicatedServerRpcMessage onNavRequest (string type, FunDedicatedServerRpcMessage request) 53 | { 54 | NavRequest req = FunapiDSRpcMessage.GetMessage(request, MessageType.nav_request); 55 | // NavMeshAgent.CalculatePath(req.destination, path); 56 | 57 | NavReply reply = new NavReply(); 58 | // For the test 59 | Vector3[] corners = new [] { Vector3.zero, Vector3.one, Vector3.back }; 60 | for (int i = 0; i < corners.Length; ++i) 61 | { 62 | NavVector3 point = new NavVector3(); 63 | point.x = corners[i].x; 64 | point.y = corners[i].y; 65 | point.z = corners[i].z; 66 | reply.waypoints.Add(point); 67 | } 68 | 69 | return FunapiDSRpcMessage.CreateMessage(reply, MessageType.nav_reply); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/CommandList.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using Fun; 8 | using System; 9 | using System.Collections.Generic; 10 | 11 | 12 | namespace Fun 13 | { 14 | public interface ICommand 15 | { 16 | void Excute (); 17 | 18 | string name { get; } 19 | bool canExcute { get; set; } 20 | bool keepWaiting { get; } 21 | } 22 | 23 | 24 | public sealed class CommandList 25 | { 26 | public bool Add (ICommand cmd) 27 | { 28 | if (cmd == null) 29 | throw new ArgumentNullException("command"); 30 | 31 | cmd.canExcute = true; 32 | 33 | lock (pending_lock_) 34 | { 35 | pending_.Add(cmd); 36 | } 37 | 38 | return true; 39 | } 40 | 41 | public void Update () 42 | { 43 | lock (lock_) 44 | { 45 | if (clear_) 46 | { 47 | if (list_.Count > 0) 48 | { 49 | list_.Clear(); 50 | } 51 | 52 | clear_ = false; 53 | } 54 | 55 | lock (pending_lock_) 56 | { 57 | // Adds from pending list 58 | if (pending_.Count > 0) 59 | { 60 | list_.AddRange(pending_); 61 | pending_.Clear(); 62 | } 63 | } 64 | 65 | // Excutes commands 66 | while (list_.Count > 0) 67 | { 68 | ICommand cmd = list_[0]; 69 | 70 | if (cmd.canExcute) 71 | { 72 | cmd.canExcute = false; 73 | cmd.Excute(); 74 | } 75 | 76 | if (cmd.keepWaiting) 77 | break; 78 | 79 | list_.RemoveAt(0); 80 | } 81 | } 82 | } 83 | 84 | public void Clear () 85 | { 86 | clear_ = true; 87 | } 88 | 89 | 90 | object lock_ = new object(); 91 | object pending_lock_ = new object(); 92 | List list_ = new List(); 93 | List pending_ = new List(); 94 | bool clear_ = false; 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Plugins/arm64-v8a/libsodium.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57c4a649d7edc4e9487f044363308feb 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | '': Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude WebGL: 1 26 | Exclude Win: 1 27 | Exclude Win64: 1 28 | Exclude iOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: ARM64 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | DefaultValueInitialized: true 47 | OS: AnyOS 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: AnyCPU 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 0 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 0 64 | settings: 65 | CPU: x86 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: None 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: AnyCPU 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | WebGL: WebGL 98 | second: 99 | enabled: 0 100 | settings: {} 101 | - first: 102 | iPhone: iOS 103 | second: 104 | enabled: 0 105 | settings: 106 | AddToEmbeddedBinaries: false 107 | CompileFlags: 108 | FrameworkDependencies: 109 | userData: 110 | assetBundleName: 111 | assetBundleVariant: 112 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiChat.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System.Collections.Generic; 8 | 9 | // protobuf 10 | using ProtoBuf; 11 | using funapi.service.multicast_message; 12 | 13 | 14 | namespace Fun 15 | { 16 | public class FunapiChatClient : FunapiMulticast 17 | { 18 | public FunapiChatClient (FunapiSession session, FunEncoding encoding, TransportProtocol protocol = TransportProtocol.kDefault) 19 | : base(session, encoding, protocol) 20 | { 21 | } 22 | 23 | public bool SendText (string channel_id, string text) 24 | { 25 | if (!Connected) 26 | return false; 27 | 28 | if (encoding_ == FunEncoding.kJson) 29 | { 30 | Dictionary mcast = new Dictionary(); 31 | mcast[kChannelId] = channel_id; 32 | mcast[kBounce] = true; 33 | mcast[kMessage] = text; 34 | 35 | SendToChannel(mcast); 36 | } 37 | else 38 | { 39 | FunChatMessage chat = new FunChatMessage (); 40 | chat.text = text; 41 | 42 | FunMulticastMessage mcast = FunapiMessage.CreateMulticastMessage(chat, MulticastMessageType.chat); 43 | mcast.channel = channel_id; 44 | mcast.bounce = true; 45 | 46 | SendToChannel(mcast); 47 | } 48 | 49 | return true; 50 | } 51 | 52 | protected override void onMessageCallback (string channel_id, string user_id, object message) 53 | { 54 | if (encoding_ == FunEncoding.kJson) 55 | { 56 | string text = json_helper_.GetStringField(message, kMessage); 57 | 58 | base.onMessageCallback(channel_id, user_id, text); 59 | } 60 | else 61 | { 62 | FunMulticastMessage mcast = message as FunMulticastMessage; 63 | FunChatMessage chat = FunapiMessage.GetMulticastMessage(mcast, MulticastMessageType.chat); 64 | if (chat == null) 65 | return; 66 | 67 | base.onMessageCallback(channel_id, user_id, chat.text); 68 | } 69 | } 70 | 71 | 72 | const string kChannelId = "_channel"; 73 | const string kBounce = "_bounce"; 74 | const string kMessage = "_message"; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Test/TestBase.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2018 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using Fun; 8 | using NUnit.Framework; 9 | using System; 10 | using System.Collections; 11 | using UnityEngine; 12 | 13 | 14 | class TestBase : YieldIndication 15 | { 16 | public TestBase () 17 | { 18 | updater = new GameObject("TestUpdater").AddComponent(); 19 | } 20 | 21 | public override bool keepWaiting 22 | { 23 | get 24 | { 25 | if (isFinished) 26 | GameObject.Destroy(updater.gameObject); 27 | 28 | return !isFinished; 29 | } 30 | } 31 | 32 | protected void startCoroutine (IEnumerator func) 33 | { 34 | updater.StartCoroutine(func); 35 | } 36 | 37 | protected void setTestTimeout (float seconds) 38 | { 39 | updater.StartCoroutine(onTestTimedOut(seconds)); 40 | } 41 | 42 | protected void setTestTimeoutWithoutFail (float seconds) 43 | { 44 | updater.StartCoroutine(onTestTimedOut(seconds, false)); 45 | } 46 | 47 | IEnumerator onTestTimedOut (float seconds, bool with_fail = true) 48 | { 49 | yield return new SleepForSeconds(seconds); 50 | 51 | onTestFinished(); 52 | if (with_fail) 53 | Assert.Fail("'{0}' Test has timed out.", GetType().ToString()); 54 | } 55 | 56 | protected virtual void onTestFinished () 57 | { 58 | isFinished = true; 59 | } 60 | 61 | public FunapiTimerList timer { get { return updater.timer; } } 62 | 63 | class Updater : MonoBehaviour 64 | { 65 | void Update () 66 | { 67 | if (timer_ != null) 68 | { 69 | // gets delta time 70 | long now = DateTime.UtcNow.Ticks; 71 | float delta = (now - prev_) / 10000000f; 72 | prev_ = now; 73 | 74 | timer_.Update(delta); 75 | } 76 | } 77 | 78 | public FunapiTimerList timer 79 | { 80 | get 81 | { 82 | if (timer_ == null) 83 | { 84 | timer_ = new FunapiTimerList(); 85 | prev_ = DateTime.UtcNow.Ticks; 86 | } 87 | 88 | return timer_; 89 | } 90 | } 91 | 92 | long prev_; 93 | public FunapiTimerList timer_ = null; 94 | } 95 | 96 | 97 | protected bool isFinished = false; 98 | 99 | Updater updater = null; 100 | } 101 | -------------------------------------------------------------------------------- /csharp-samples/src/main.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using Fun; 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Diagnostics; 11 | using System.Threading; 12 | 13 | 14 | namespace Tester 15 | { 16 | class TesterMain 17 | { 18 | const int kTestCount = 10; 19 | const int kClientMax = 100; 20 | const string kServerIp = "127.0.0.1"; 21 | 22 | 23 | public static void Main () 24 | { 25 | Client.address = kServerIp; 26 | 27 | // You can specify the size of the console window from the Console menu. 28 | // Also you can resize it here. 29 | //Console.WindowWidth = 180; 30 | //Console.WindowHeight = 50; 31 | //Console.BufferHeight = 2000; 32 | 33 | new TesterMain().start(); 34 | } 35 | 36 | void start () 37 | { 38 | writeTitle("START"); 39 | 40 | FunDebug.Log("Client count is {0}.\n", kClientMax); 41 | 42 | int testCount = 0; 43 | while (testCount < kTestCount) 44 | { 45 | ++testCount; 46 | 47 | for (int i = 1; i <= kClientMax; ++i) 48 | { 49 | Thread t = new Thread(new ThreadStart(onTest)); 50 | t.IsBackground = true; 51 | threads_.Add(t); 52 | 53 | t.Start(); 54 | } 55 | 56 | foreach (Thread t in threads_) 57 | { 58 | t.Join(); 59 | } 60 | 61 | threads_.Clear(); 62 | Thread.Sleep(1000); 63 | 64 | writeTitle("Test Set '" + testCount + "' has been finished."); 65 | } 66 | 67 | FunapiMono.Stop(); 68 | 69 | writeTitle("FINISHED"); 70 | 71 | Process.GetCurrentProcess().Kill(); 72 | } 73 | 74 | void onTest () 75 | { 76 | Client client = new Client(++clinet_id_); 77 | 78 | client.Connect(TransportProtocol.kTcp, FunEncoding.kProtobuf); 79 | while (!client.Connected) 80 | Thread.Sleep(10); 81 | 82 | client.SendEchoMessageWithCount(TransportProtocol.kTcp, 1000); 83 | while (!client.IsDone) 84 | Thread.Sleep(10); 85 | 86 | client.Stop(); 87 | client = null; 88 | } 89 | 90 | void writeTitle (string message) 91 | { 92 | Console.WriteLine(""); 93 | Console.WriteLine("---------------------- " 94 | + message 95 | + " -----------------------"); 96 | Console.WriteLine(""); 97 | } 98 | 99 | 100 | int clinet_id_ = 0; 101 | List threads_ = new List(); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/FunapiWebSocket.jslib: -------------------------------------------------------------------------------- 1 | var LibraryWebSockets = { 2 | $webSocketInstances: [], 3 | 4 | SocketJSCreate: function(url) 5 | { 6 | var str = Pointer_stringify(url); 7 | var socket = { 8 | socket: new WebSocket(str), 9 | buffer: new Uint8Array(0), 10 | close_code: 0, 11 | close_reason: null, 12 | error: null, 13 | messages: [] 14 | } 15 | 16 | socket.socket.binaryType = 'arraybuffer'; 17 | 18 | socket.socket.onmessage = function (e) { 19 | // Todo: handle other data types? 20 | if (e.data instanceof Blob) 21 | { 22 | var reader = new FileReader(); 23 | reader.addEventListener("loadend", function() { 24 | var array = new Uint8Array(reader.result); 25 | socket.messages.push(array); 26 | }); 27 | reader.readAsArrayBuffer(e.data); 28 | } 29 | else if (e.data instanceof ArrayBuffer) 30 | { 31 | var array = new Uint8Array(e.data); 32 | socket.messages.push(array); 33 | } 34 | }; 35 | 36 | socket.socket.onclose = function (e) { 37 | socket.close_code = e.code; 38 | if (e.reason != null && e.reason.length > 0) 39 | socket.close_reason = e.reason; 40 | } 41 | 42 | socket.socket.onerror = function (e) { 43 | socket.error = e.message; 44 | } 45 | 46 | var instance = webSocketInstances.push(socket) - 1; 47 | return instance; 48 | }, 49 | 50 | SocketJSState: function (socketInstance) 51 | { 52 | var socket = webSocketInstances[socketInstance]; 53 | return socket.socket.readyState; 54 | }, 55 | 56 | SocketJSError: function (socketInstance) 57 | { 58 | var socket = webSocketInstances[socketInstance]; 59 | return socket.error; 60 | }, 61 | 62 | SocketJSCloseReason: function (socketInstance) 63 | { 64 | var socket = webSocketInstances[socketInstance]; 65 | return socket.close_reason; 66 | }, 67 | 68 | SocketJSCloseCode: function (socketInstance) 69 | { 70 | var socket = webSocketInstances[socketInstance]; 71 | return socket.close_code; 72 | }, 73 | 74 | SocketJSSend: function (socketInstance, ptr, length) 75 | { 76 | var socket = webSocketInstances[socketInstance]; 77 | socket.socket.send (HEAPU8.buffer.slice(ptr, ptr+length)); 78 | }, 79 | 80 | SocketJSRecvLength: function(socketInstance) 81 | { 82 | var socket = webSocketInstances[socketInstance]; 83 | if (socket.messages.length == 0) 84 | return 0; 85 | return socket.messages[0].length; 86 | }, 87 | 88 | SocketJSRecv: function (socketInstance, ptr, length) 89 | { 90 | var socket = webSocketInstances[socketInstance]; 91 | if (socket.messages.length == 0) 92 | return 0; 93 | if (socket.messages[0].length > length) 94 | return 0; 95 | HEAPU8.set(socket.messages[0], ptr); 96 | socket.messages = socket.messages.slice(1); 97 | }, 98 | 99 | SocketJSClose: function (socketInstance) 100 | { 101 | var socket = webSocketInstances[socketInstance]; 102 | socket.socket.close(); 103 | } 104 | }; 105 | 106 | autoAddDeps(LibraryWebSockets, '$webSocketInstances'); 107 | mergeInto(LibraryManager.library, LibraryWebSockets); 108 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/FunapiUtils.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | #if !NO_UNITY 10 | using UnityEngine; 11 | #endif 12 | 13 | 14 | // Utility classes 15 | namespace Fun 16 | { 17 | // Funapi plugin version 18 | public class FunapiVersion 19 | { 20 | public static readonly int kProtocolVersion = 1; 21 | public static readonly int kPluginVersion = 372; 22 | } 23 | 24 | 25 | public class FunapiUtils 26 | { 27 | public static string BytesToHex (byte[] array) 28 | { 29 | string hex = ""; 30 | foreach (byte n in array) 31 | hex += n.ToString("x2"); 32 | 33 | return hex; 34 | } 35 | 36 | public static byte[] HexToBytes (string hex) 37 | { 38 | byte[] array = new byte[hex.Length / 2]; 39 | for (int i = 0; i < array.Length; ++i) 40 | array[i] = (byte)Convert.ToByte(hex.Substring(i * 2, 2), 16); 41 | 42 | return array; 43 | } 44 | 45 | public static bool EqualsBytes (byte[] a, byte[] b) 46 | { 47 | if (a == null || b == null || a.Length != b.Length) 48 | return false; 49 | 50 | for (int i = 0; i < a.Length; ++i) 51 | { 52 | if (a[i] != b[i]) 53 | return false; 54 | } 55 | 56 | return true; 57 | } 58 | 59 | // Gets assets path 60 | public static string GetAssetsPath 61 | { 62 | get 63 | { 64 | #if !NO_UNITY 65 | if (Application.platform == RuntimePlatform.OSXEditor || 66 | Application.platform == RuntimePlatform.WindowsEditor) 67 | { 68 | return Application.dataPath; 69 | } 70 | #endif 71 | 72 | return ""; 73 | } 74 | } 75 | 76 | // Gets local path 77 | public static string GetLocalDataPath 78 | { 79 | get 80 | { 81 | if (path_ == null) 82 | { 83 | #if !NO_UNITY 84 | if (Application.platform == RuntimePlatform.Android || 85 | Application.platform == RuntimePlatform.IPhonePlayer) 86 | { 87 | path_ = Application.persistentDataPath; 88 | } 89 | else if (Application.platform == RuntimePlatform.OSXEditor || 90 | Application.platform == RuntimePlatform.WindowsEditor) 91 | { 92 | string path = Application.dataPath; 93 | path_ = path.Substring(0, path.LastIndexOf('/')) + "/Data"; 94 | 95 | if (!System.IO.Directory.Exists(path_)) 96 | System.IO.Directory.CreateDirectory(path_); 97 | } 98 | else 99 | { 100 | path_ = Application.dataPath; 101 | } 102 | #else 103 | path_ = ""; 104 | #endif 105 | } 106 | 107 | return path_; 108 | } 109 | } 110 | 111 | static string path_ = null; 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /dedicated-server-plugin/Assets/Funapi/FunapiUtils.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | #if !NO_UNITY 10 | using UnityEngine; 11 | #endif 12 | 13 | 14 | // Utility classes 15 | namespace Fun 16 | { 17 | // Funapi plugin version 18 | public class FunapiVersion 19 | { 20 | public static readonly int kProtocolVersion = 1; 21 | public static readonly int kPluginVersion = 4; 22 | } 23 | 24 | 25 | public class FunapiUtils 26 | { 27 | public static string BytesToHex (byte[] array) 28 | { 29 | string hex = ""; 30 | foreach (byte n in array) 31 | hex += n.ToString("x2"); 32 | 33 | return hex; 34 | } 35 | 36 | public static byte[] HexToBytes (string hex) 37 | { 38 | byte[] array = new byte[hex.Length / 2]; 39 | for (int i = 0; i < array.Length; ++i) 40 | array[i] = (byte)Convert.ToByte(hex.Substring(i * 2, 2), 16); 41 | 42 | return array; 43 | } 44 | 45 | public static bool EqualsBytes (byte[] a, byte[] b) 46 | { 47 | if (a == null || b == null || a.Length != b.Length) 48 | return false; 49 | 50 | for (int i = 0; i < a.Length; ++i) 51 | { 52 | if (a[i] != b[i]) 53 | return false; 54 | } 55 | 56 | return true; 57 | } 58 | 59 | // Gets assets path 60 | public static string GetAssetsPath 61 | { 62 | get 63 | { 64 | #if !NO_UNITY 65 | if (Application.platform == RuntimePlatform.OSXEditor || 66 | Application.platform == RuntimePlatform.WindowsEditor) 67 | { 68 | return Application.dataPath; 69 | } 70 | #endif 71 | 72 | return ""; 73 | } 74 | } 75 | 76 | // Gets local path 77 | public static string GetLocalDataPath 78 | { 79 | get 80 | { 81 | if (path_ == null) 82 | { 83 | #if !NO_UNITY 84 | if (Application.platform == RuntimePlatform.Android || 85 | Application.platform == RuntimePlatform.IPhonePlayer) 86 | { 87 | path_ = Application.persistentDataPath; 88 | } 89 | else if (Application.platform == RuntimePlatform.OSXEditor || 90 | Application.platform == RuntimePlatform.WindowsEditor) 91 | { 92 | string path = Application.dataPath; 93 | path_ = path.Substring(0, path.LastIndexOf('/')) + "/Data"; 94 | 95 | if (!System.IO.Directory.Exists(path_)) 96 | System.IO.Directory.CreateDirectory(path_); 97 | } 98 | else 99 | { 100 | path_ = Application.dataPath; 101 | } 102 | #else 103 | path_ = ""; 104 | #endif 105 | } 106 | 107 | return path_; 108 | } 109 | } 110 | 111 | static string path_ = null; 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Sample/UILogContent.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System.Collections; 8 | using System.Collections.Generic; 9 | using UnityEngine; 10 | using UnityEngine.UI; 11 | 12 | 13 | public class UILogContent : MonoBehaviour 14 | { 15 | void Start () 16 | { 17 | view_rect_ = transform.parent.GetComponent(); 18 | content_rect_ = transform.GetComponent(); 19 | content_rect_.sizeDelta = Vector2.zero; 20 | } 21 | 22 | void Update () 23 | { 24 | lock (lock_) 25 | { 26 | if (!running_ && list_.Count > 0) 27 | { 28 | StartCoroutine(addLog(list_[0])); 29 | list_.RemoveAt(0); 30 | } 31 | } 32 | } 33 | 34 | public void AddLog (string text) 35 | { 36 | lock (lock_) 37 | { 38 | list_.Add(text); 39 | } 40 | } 41 | 42 | public void ClearAll () 43 | { 44 | if (transform.childCount <= 0) 45 | return; 46 | 47 | lock (lock_) 48 | { 49 | foreach (Transform t in transform) 50 | { 51 | GameObject.Destroy(t.gameObject); 52 | } 53 | transform.DetachChildren(); 54 | 55 | count = 0; 56 | content_height = -kBorder; 57 | content_rect_.sizeDelta = Vector2.zero; 58 | content_rect_.localPosition = Vector3.zero; 59 | } 60 | } 61 | 62 | IEnumerator addLog (string text) 63 | { 64 | lock (lock_) 65 | { 66 | running_ = true; 67 | 68 | GameObject item = GameObject.Instantiate(Resources.Load("LogItem")) as GameObject; 69 | if (item != null) 70 | { 71 | item.name = "LogItem_" + count; 72 | item.transform.SetParent(transform); 73 | item.transform.localScale = Vector3.one; 74 | item.transform.localPosition = new Vector3(kBorder, content_height, 0f); 75 | ++count; 76 | 77 | Text item_text = item.transform.Find("Text").GetComponent(); 78 | item_text.text = text; 79 | yield return new WaitForEndOfFrame(); 80 | 81 | content_height -= item_text.preferredHeight; 82 | 83 | RectTransform item_rect = item.transform.GetComponent(); 84 | item_rect.sizeDelta = new Vector2(item_text.preferredWidth, item_text.preferredHeight); 85 | 86 | float width = Mathf.Max(item_text.preferredWidth + kBorder * 2, content_rect_.sizeDelta.x); 87 | float height = Mathf.Abs(content_height) + kBorder; 88 | content_rect_.sizeDelta = new Vector2(width, height); 89 | 90 | if (height > view_rect_.rect.height) 91 | content_rect_.localPosition = new Vector3(0f, height - view_rect_.rect.height); 92 | } 93 | 94 | running_ = false; 95 | } 96 | } 97 | 98 | 99 | const float kBorder = 15f; 100 | 101 | RectTransform view_rect_; 102 | RectTransform content_rect_; 103 | float content_height = -kBorder; 104 | 105 | bool running_ = false; 106 | object lock_ = new object(); 107 | List list_ = new List(); 108 | public int count = 0; 109 | } 110 | -------------------------------------------------------------------------------- /funapi-plugin-unity/Assets/Funapi/MD5Async.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using System.Collections; 8 | using System.IO; 9 | using System.Security.Cryptography; 10 | 11 | 12 | namespace Fun 13 | { 14 | public class MD5Async 15 | { 16 | public static IEnumerator Compute (string path, DownloadFileInfo file, OnResult on_result) 17 | { 18 | if (!File.Exists(path)) 19 | { 20 | FunDebug.LogWarning("MD5Async.Compute - Can't find a file.\npath: {0}", path); 21 | 22 | if (on_result != null) 23 | on_result(path, file, false); 24 | 25 | yield break; 26 | } 27 | 28 | MD5 md5 = MD5.Create(); 29 | int length, read_bytes; 30 | byte[] buffer = new byte[kBlockSize]; 31 | string md5hash = ""; 32 | 33 | FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); 34 | if (stream.Length > 0) 35 | { 36 | if (file.hash_front.Length > 0) 37 | { 38 | length = (stream.Length < kBlockSize) ? (int)stream.Length : kBlockSize; 39 | read_bytes = stream.Read(buffer, 0, length); 40 | md5.TransformFinalBlock(buffer, 0, read_bytes); 41 | 42 | md5hash = FunapiUtils.BytesToHex(md5.Hash); 43 | if (md5hash != file.hash_front || length == stream.Length) 44 | { 45 | stream.Close(); 46 | 47 | if (on_result != null) 48 | on_result(path, file, md5hash == file.hash_front && md5hash == file.hash); 49 | 50 | yield break; 51 | } 52 | 53 | md5.Clear(); 54 | md5 = MD5.Create(); 55 | stream.Position = 0; 56 | 57 | yield return null; 58 | } 59 | 60 | int sleep_count = 0; 61 | while (stream.Position < stream.Length) 62 | { 63 | length = kBlockSize; 64 | if (stream.Position + length > stream.Length) 65 | length = (int)(stream.Length - stream.Position); 66 | 67 | read_bytes = stream.Read(buffer, 0, length); 68 | 69 | if (stream.Position < stream.Length) 70 | { 71 | md5.TransformBlock(buffer, 0, read_bytes, buffer, 0); 72 | } 73 | else 74 | { 75 | md5.TransformFinalBlock(buffer, 0, read_bytes); 76 | break; 77 | } 78 | 79 | ++sleep_count; 80 | if (sleep_count >= kSleepCountMax) 81 | { 82 | sleep_count = 0; 83 | yield return null; 84 | } 85 | } 86 | } 87 | else 88 | { 89 | md5.TransformFinalBlock(buffer, 0, 0); 90 | } 91 | 92 | stream.Close(); 93 | 94 | md5hash = FunapiUtils.BytesToHex(md5.Hash); 95 | if (on_result != null) 96 | on_result(path, file, md5hash == file.hash); 97 | } 98 | 99 | 100 | // Buffer-related constants. 101 | const int kBlockSize = 1024 * 1024; 102 | const int kSleepCountMax = 5; 103 | 104 | // Event handler delegate 105 | public delegate void OnResult (string path, DownloadFileInfo file, bool is_match); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /additional-plugins/Assets/Tester/TwitterTest.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 iFunFactory Inc. All Rights Reserved. 2 | // 3 | // This work is confidential and proprietary to iFunFactory Inc. and 4 | // must not be used, disclosed, copied, or distributed without the prior 5 | // consent of iFunFactory Inc. 6 | 7 | using Fun; 8 | using System.Collections.Generic; 9 | using UnityEngine; 10 | using UnityEngine.UI; 11 | 12 | 13 | public class TwitterTest : MonoBehaviour 14 | { 15 | public void Awake () 16 | { 17 | // Initialize twitter 18 | twitter_ = GameObject.Find("SocialNetwork").GetComponent(); 19 | 20 | // If you don't want to download profile photos with a friend list, 21 | // set this value to false. The default value is ture. 22 | //twitter_.AutoDownloadPicture = false; 23 | 24 | twitter_.OnEventCallback += new SocialNetwork.EventHandler(OnEventHandler); 25 | twitter_.OnPictureDownloaded += delegate(SocialNetwork.UserInfo user) 26 | { 27 | if (image_ != null && user.picture != null) 28 | image_.texture = user.picture; 29 | }; 30 | 31 | // Please pass consumer key and consumer secret of the Twitter apps 32 | twitter_.Init("4RnU4YDXmu8vmwKW5Lgpej3Xc", 33 | "voDDAoaTNXj8VjuWRDhfrnCpa9pnVgpRhBJuKwjJpkg62dtEhd"); 34 | 35 | // Initialize UI 36 | image_ = GameObject.Find("ImgProfile").GetComponent(); 37 | pin_code_ = GameObject.Find("InputPinCode").GetComponent(); 38 | 39 | if (!twitter_.IsLoggedIn) 40 | setButtonState(false); 41 | } 42 | 43 | public void OnStartOAuth () 44 | { 45 | if (twitter_.IsLoggedIn) 46 | return; 47 | 48 | twitter_.Login(); 49 | } 50 | 51 | public void OnAccessToken () 52 | { 53 | if (twitter_.IsLoggedIn) 54 | return; 55 | 56 | twitter_.RequestAccess(pin_code_.text); 57 | } 58 | 59 | public void OnFriendList () 60 | { 61 | twitter_.RequestFriendList(100); 62 | } 63 | 64 | public void OnTweetPost () 65 | { 66 | twitter_.Post("Test post for funapi plugin."); 67 | } 68 | 69 | public void OnRandomPicture () 70 | { 71 | SocialNetwork.UserInfo info = twitter_.FindFriend(Random.Range(0, twitter_.FriendListCount)); 72 | if (info != null && info.picture != null) 73 | { 74 | if (image_ != null) 75 | image_.texture = info.picture; 76 | 77 | FunDebug.Log("Sets {0}'s picture.", info.name); 78 | } 79 | } 80 | 81 | 82 | void OnEventHandler (SNResultCode result) 83 | { 84 | FunDebug.DebugLog1("EVENT: Twitter ({0})", result); 85 | 86 | switch (result) 87 | { 88 | case SNResultCode.kLoggedIn: 89 | FunDebug.Log("Twitter Id: {0}", twitter_.MyId); 90 | setButtonState(true); 91 | break; 92 | 93 | case SNResultCode.kError: 94 | FunDebug.Assert(false); 95 | break; 96 | } 97 | } 98 | 99 | void setButtonState (bool enable) 100 | { 101 | if (buttons_.Count <= 0) 102 | { 103 | // Gets buttons 104 | buttons_["friends"] = GameObject.Find("BtnFriends").GetComponent