├── Assets ├── mcs.rsp ├── WSATestCertificate.pfx ├── LightBuzz_Azure │ ├── Sample │ │ ├── Images │ │ │ ├── Icon.png │ │ │ ├── Azure.png │ │ │ ├── Unity.png │ │ │ ├── LightBuzz.png │ │ │ ├── Azure.png.meta │ │ │ ├── LightBuzz.png.meta │ │ │ ├── Unity.png.meta │ │ │ └── Icon.png.meta │ │ ├── Scenes │ │ │ └── Sample.unity.meta │ │ ├── Images.meta │ │ ├── Scenes.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── SampleMobileClient.cs.meta │ │ │ ├── Sample.cs.meta │ │ │ ├── TodoItem.cs.meta │ │ │ ├── TodoItem.cs │ │ │ ├── SampleMobileClient.cs │ │ │ └── Sample.cs │ ├── Plugins │ │ ├── SQLite │ │ │ ├── x86 │ │ │ │ ├── sqlite3.dll │ │ │ │ └── sqlite3.dll.meta │ │ │ ├── WSA │ │ │ │ ├── e_sqlite3.dll │ │ │ │ ├── SQLitePCLRaw.core.dll │ │ │ │ ├── SQLitePCLRaw.batteries_v2.dll │ │ │ │ ├── SQLitePCLRaw.batteries_green.dll │ │ │ │ ├── SQLitePCLRaw.provider.e_sqlite3.dll │ │ │ │ ├── SQLitePCLRaw.core.dll.meta │ │ │ │ ├── SQLitePCLRaw.batteries_v2.dll.meta │ │ │ │ ├── SQLitePCLRaw.batteries_green.dll.meta │ │ │ │ ├── SQLitePCLRaw.provider.e_sqlite3.dll.meta │ │ │ │ └── e_sqlite3.dll.meta │ │ │ ├── Mono.Data.Sqlite.dll │ │ │ ├── System.Security.dll │ │ │ ├── x86_64 │ │ │ │ ├── sqlite3.dll │ │ │ │ └── sqlite3.dll.meta │ │ │ ├── System.Configuration.dll │ │ │ ├── Mono.Data.SqliteClient.dll │ │ │ ├── Android │ │ │ │ ├── libs │ │ │ │ │ ├── x86 │ │ │ │ │ │ ├── libsqlite3.so │ │ │ │ │ │ └── libsqlite3.so.meta │ │ │ │ │ ├── arm64-v8a │ │ │ │ │ │ ├── libsqlite3.so │ │ │ │ │ │ └── libsqlite3.so.meta │ │ │ │ │ ├── armeabi-v7a │ │ │ │ │ │ ├── libsqlite3.so │ │ │ │ │ │ └── libsqlite3.so.meta │ │ │ │ │ ├── x86.meta │ │ │ │ │ ├── arm64-v8a.meta │ │ │ │ │ └── armeabi-v7a.meta │ │ │ │ └── libs.meta │ │ │ ├── System.EnterpriseServices.dll │ │ │ ├── WSA.meta │ │ │ ├── x86.meta │ │ │ ├── x86_64.meta │ │ │ ├── Android.meta │ │ │ ├── System.Security.dll.meta │ │ │ ├── Mono.Data.Sqlite.dll.meta │ │ │ ├── System.Configuration.dll.meta │ │ │ ├── Mono.Data.SqliteClient.dll.meta │ │ │ └── System.EnterpriseServices.dll.meta │ │ ├── Newtonsoft │ │ │ ├── Newtonsoft.Json.dll │ │ │ ├── WSA │ │ │ │ ├── Newtonsoft.Json.dll │ │ │ │ └── Newtonsoft.Json.dll.meta │ │ │ ├── WSA.meta │ │ │ └── Newtonsoft.Json.dll.meta │ │ ├── Azure │ │ │ ├── Microsoft.Azure.Mobile.Client.dll │ │ │ ├── WSA │ │ │ │ ├── Microsoft.Azure.Mobile.Client.dll │ │ │ │ ├── System.Security.Cryptography.Algorithms.dll │ │ │ │ ├── Microsoft.Azure.Mobile.Client.SQLiteStore.dll │ │ │ │ ├── Microsoft.Azure.Mobile.Client.dll.meta │ │ │ │ ├── Microsoft.Azure.Mobile.Client.SQLiteStore.dll.meta │ │ │ │ └── System.Security.Cryptography.Algorithms.dll.meta │ │ │ ├── WSA.meta │ │ │ └── Microsoft.Azure.Mobile.Client.dll.meta │ │ ├── Azure.meta │ │ ├── SQLite.meta │ │ └── Newtonsoft.meta │ ├── Editor.meta │ ├── Source.meta │ ├── Source │ │ ├── LightBuzz.Azure.meta │ │ ├── Microsoft.Azure.Mobile.Client.SQLiteStore.meta │ │ ├── LightBuzz.Azure │ │ │ ├── AppServiceTableCriteria.cs.meta │ │ │ ├── AppServiceTablePredicate.cs.meta │ │ │ ├── ICertificateValidator.cs.meta │ │ │ ├── AzureCertificateValidation.cs.meta │ │ │ ├── LightBuzzMobileServiceClient.cs.meta │ │ │ ├── LightBuzzMobileServiceClientCloudOnly.cs.meta │ │ │ ├── AppServiceTableDAO.cs.meta │ │ │ ├── LightBuzzHttpsHandler.cs.meta │ │ │ ├── AppServiceTableCriteria.cs │ │ │ ├── AppServiceTablePredicate.cs │ │ │ ├── ICertificateValidator.cs │ │ │ ├── LightBuzzMobileServiceClientCloudOnly.cs │ │ │ ├── AzureCertificateValidation.cs │ │ │ └── AppServiceTableDAO.cs │ │ └── Microsoft.Azure.Mobile.Client.SQLiteStore │ │ │ ├── SqlColumnType.cs.meta │ │ │ ├── SqlHelpers.cs.meta │ │ │ ├── ColumnDefinition.cs.meta │ │ │ ├── SQLiteException.cs.meta │ │ │ ├── SqlQueryFormatter.cs.meta │ │ │ ├── TableDefinition.cs.meta │ │ │ ├── EnumerableExtensions.cs.meta │ │ │ ├── SQLitePCLRawHelpers.cs.meta │ │ │ ├── MobileServiceSQLiteStore.cs.meta │ │ │ ├── MobileServiceSQLiteStoreExtensions.cs.meta │ │ │ ├── SQLiteException.cs │ │ │ ├── SqlColumnType.cs │ │ │ ├── TableDefinition.cs │ │ │ ├── EnumerableExtensions.cs │ │ │ ├── ColumnDefinition.cs │ │ │ ├── MobileServiceSQLiteStoreExtensions.cs │ │ │ ├── SQLitePCLRawHelpers.cs │ │ │ └── SqlHelpers.cs │ ├── Plugins.meta │ ├── Sample.meta │ └── Editor │ │ ├── BuildPlatformSettings.cs.meta │ │ └── BuildPlatformSettings.cs ├── WSATestCertificate.pfx.meta ├── LightBuzz_Azure.meta └── mcs.rsp.meta ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── NetworkManager.asset ├── XRSettings.asset ├── TimeManager.asset ├── EditorBuildSettings.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorSettings.asset ├── UnityConnectSettings.asset ├── DynamicsManager.asset ├── Physics2DSettings.asset ├── NavMeshAreas.asset ├── GraphicsSettings.asset ├── QualitySettings.asset └── InputManager.asset ├── UWP └── project.json ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── Packages └── manifest.json ├── README.md └── LICENSE /Assets/mcs.rsp: -------------------------------------------------------------------------------- 1 | -r:System.Net.Http.dll 2 | -r:System.Data.dll -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/WSATestCertificate.pfx -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.5f1 2 | m_EditorVersionWithRevision: 2019.1.5f1 (0ca0f5646614) 3 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Sample/Images/Icon.png -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Azure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Sample/Images/Azure.png -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Unity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Sample/Images/Unity.png -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/LightBuzz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Sample/Images/LightBuzz.png -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86/sqlite3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/x86/sqlite3.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/e_sqlite3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/WSA/e_sqlite3.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.Sqlite.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.Sqlite.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.Security.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/System.Security.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86_64/sqlite3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/x86_64/sqlite3.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Newtonsoft/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/System.Configuration.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.core.dll -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft/WSA/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Newtonsoft/WSA/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.SqliteClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.SqliteClient.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/x86/libsqlite3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/x86/libsqlite3.so -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.EnterpriseServices.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/System.EnterpriseServices.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/Microsoft.Azure.Mobile.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Azure/Microsoft.Azure.Mobile.Client.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_v2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_v2.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/arm64-v8a/libsqlite3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/arm64-v8a/libsqlite3.so -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_green.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_green.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/armeabi-v7a/libsqlite3.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/armeabi-v7a/libsqlite3.so -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.provider.e_sqlite3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.provider.e_sqlite3.dll -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfc4f22d17a60c64d828b5a14aa59cbb 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/System.Security.Cryptography.Algorithms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Azure/WSA/System.Security.Cryptography.Algorithms.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553bc8beffd27e2449da961d136b8089 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.SQLiteStore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LightBuzz/Azure-Unity/HEAD/Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.SQLiteStore.dll -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45fb5607afadbef46907bdfb33b33b15 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c20b6b9644b84134a8cb105cac197178 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b349b8f022f0d147876d210f4b86324 3 | timeCreated: 1512449451 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41be43e99dcc2614094a150e8664fd20 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft/WSA.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef14c0934437fbb4fbcd405e2c780269 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66015385c43269845bedf99d31175e2a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6afde6229623152439d3389f05970c2f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/mcs.rsp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5104580735f5d5949ba18a127d10d5e8 3 | timeCreated: 1525193470 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/arm64-v8a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11f892b7f992ec9498b969e6b2723daa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/armeabi-v7a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79d48497593c7a94783c607ed3aaf876 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scenes/Sample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 507edc44ea8f01f4cbd6c7925d3c6772 3 | timeCreated: 1525190683 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b52187de00a43b347936e4bb9530ce06 3 | folderAsset: yes 4 | timeCreated: 1525190859 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e52ce04f6b36c2468cda98b6f1d945b 3 | folderAsset: yes 4 | timeCreated: 1525191311 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37634193b256465448ee06745f7b43f6 3 | folderAsset: yes 4 | timeCreated: 1523563313 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6218ac7a89ad7bc4ba290d9b1e2fb62f 3 | folderAsset: yes 4 | timeCreated: 1525625778 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 753be2fade201ca44bb857dc08e3b85b 3 | folderAsset: yes 4 | timeCreated: 1525625787 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00d856b3094e71348a1152b832d4ccf5 3 | folderAsset: yes 4 | timeCreated: 1525625782 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64a731923f739a54c9483c109cd780c2 3 | folderAsset: yes 4 | timeCreated: 1525191115 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c3f8266db7089d499ca6d421ffbde58 3 | folderAsset: yes 4 | timeCreated: 1526057522 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 988121ee4c9fbbb41a9484bfcbd2ec8a 3 | folderAsset: yes 4 | timeCreated: 1526057507 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 888d0e3b06e556f4aa75eb4e19753d73 3 | folderAsset: yes 4 | timeCreated: 1526057513 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4759288d01f8b747b7cd008b19d2703 3 | folderAsset: yes 4 | timeCreated: 1526057501 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51d82a21ab99a5c4985524bb8f2aeb39 3 | folderAsset: yes 4 | timeCreated: 1526058869 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Sample/Scenes/Sample.unity 10 | guid: 507edc44ea8f01f4cbd6c7925d3c6772 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44a14f2c76616454687ff06568d687ba 3 | folderAsset: yes 4 | timeCreated: 1526058679 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Editor/BuildPlatformSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 392a086e7139c6c429cd4dba1eb2b66f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/SampleMobileClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1803bf0664a03174491661b73ca29ba5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTableCriteria.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e563e1962665614480a78b4629cd444 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTablePredicate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f8c842d3fec2cb4f8715a7e95d71e72 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/ICertificateValidator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f389e0484d0d15b4eb484cc6dbec6c0e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AzureCertificateValidation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8858085197d48a4f8aa6cfbe3f48a1c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/LightBuzzMobileServiceClient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3273e2c9297960844bba019289a60fd4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/LightBuzzMobileServiceClientCloudOnly.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4a2c3f90b20c174bb831bad0a3cf714 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/Sample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07860f48e9f3c984cbd7d8a007928f4b 3 | timeCreated: 1525190702 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/TodoItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c42646d40c725143a754e4c6c698ebc 3 | timeCreated: 1525191370 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTableDAO.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f95fc0052f11fa4b8594048e7000cab 3 | timeCreated: 1525284238 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/LightBuzzHttpsHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1c7b6763044d1b4f84dca441c80df61 3 | timeCreated: 1525191498 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SqlColumnType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c6eda4342067cb4ca48f8737b23045a 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SqlHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 410b0eaf58d6be24dabb3e897d95e304 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/ColumnDefinition.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcc0f42374444964bb7f678bacd8b140 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SQLiteException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 215e2a26bf5f9df4483ee9f5b19a4849 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SqlQueryFormatter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16de462374fb6d844b49f27721d5e431 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/TableDefinition.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00dee9cc27ab85241b4111fbc6dc4d72 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/EnumerableExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d65a14454603c94386ed30539873118 3 | timeCreated: 1526058692 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SQLitePCLRawHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c016c727eb442e14fb3d91bcd964dba5 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/MobileServiceSQLiteStore.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03432dc0ef8ba0e469c2842323f568d0 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/MobileServiceSQLiteStoreExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f0964bfaa535e846bd052b457a2c0de 3 | timeCreated: 1526058715 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /UWP/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.ApplicationInsights": "1.0.0", 4 | "Microsoft.ApplicationInsights.PersistenceChannel": "1.0.0", 5 | "Microsoft.ApplicationInsights.WindowsApps": "1.0.0", 6 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" 7 | }, 8 | "frameworks": { 9 | "uap10.0": {} 10 | }, 11 | "runtimes": { 12 | "win10-arm": {}, 13 | "win10-arm-aot": {}, 14 | "win10-x86": {}, 15 | "win10-x86-aot": {}, 16 | "win10-x64": {}, 17 | "win10-x64-aot": {} 18 | } 19 | } -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Mac OS X 33 | .DS_Store 34 | 35 | # Builds 36 | *.apk 37 | *.unitypackage 38 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SQLiteException.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | using System; 7 | 8 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 9 | { 10 | public class SQLiteException : Exception 11 | { 12 | public SQLiteException(string message) 13 | : base(message) 14 | { 15 | } 16 | } 17 | } 18 | #endif -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/TodoItem.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | /// 4 | /// A simple todo item. 5 | /// 6 | public class TodoItem 7 | { 8 | /// 9 | /// The ID of the item. 10 | /// 11 | [JsonProperty(PropertyName = "id")] 12 | public string Id { get; set; } 13 | 14 | /// 15 | /// The text of the item. 16 | /// 17 | [JsonProperty(PropertyName = "text")] 18 | public string Text { get; set; } 19 | 20 | /// 21 | /// Specifies whether the item is completed or not. 22 | /// 23 | [JsonProperty(PropertyName = "complete")] 24 | public bool Complete { get; set; } 25 | } 26 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Desktop (please complete the following information):** 24 | - OS: [e.g. iOS] 25 | - Browser [e.g. chrome, safari] 26 | - Version [e.g. 22] 27 | 28 | **Smartphone (please complete the following information):** 29 | - Device: [e.g. iPhone6] 30 | - OS: [e.g. iOS8.1] 31 | - Browser [e.g. stock browser, safari] 32 | - Version [e.g. 22] 33 | 34 | **Additional context** 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SqlColumnType.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | 7 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 8 | { 9 | internal static class SqlColumnType 10 | { 11 | // base types 12 | public const string Integer = "INTEGER"; 13 | public const string Text = "TEXT"; 14 | public const string None = "NONE"; 15 | public const string Real = "REAL"; 16 | public const string Numeric = "NUMERIC"; 17 | 18 | // type aliases 19 | public const string Boolean = "BOOLEAN"; // NUMERIC 20 | public const string DateTime = "DATETIME"; // NUMERIC 21 | public const string Float = "FLOAT"; // REAL 22 | public const string Blob = "BLOB"; // NONE 23 | 24 | 25 | // custom types = NONE 26 | public const string Guid = "GUID"; 27 | public const string Json = "JSON"; 28 | public const string Uri = "URI"; 29 | public const string TimeSpan = "TIMESPAN"; 30 | } 31 | } 32 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/TableDefinition.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Diagnostics.CodeAnalysis; 9 | 10 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 11 | { 12 | /// 13 | /// A class that represents the structure of table on local store 14 | /// 15 | [SuppressMessage("Microsoft.Interoperability", "CA1405:ComVisibleTypeBaseTypesShouldBeComVisible")] 16 | public class TableDefinition : Dictionary 17 | { 18 | public MobileServiceSystemProperties SystemProperties { get; private set; } 19 | 20 | public TableDefinition() 21 | { 22 | } 23 | 24 | public TableDefinition(IDictionary definition, MobileServiceSystemProperties systemProperties) 25 | : base(definition, StringComparer.OrdinalIgnoreCase) 26 | { 27 | this.SystemProperties = systemProperties; 28 | } 29 | } 30 | } 31 | #endif -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.package-manager-ui": "2.1.2", 5 | "com.unity.textmeshpro": "2.0.1", 6 | "com.unity.xr.legacyinputhelpers": "2.0.2", 7 | "com.unity.modules.ai": "1.0.0", 8 | "com.unity.modules.animation": "1.0.0", 9 | "com.unity.modules.assetbundle": "1.0.0", 10 | "com.unity.modules.audio": "1.0.0", 11 | "com.unity.modules.cloth": "1.0.0", 12 | "com.unity.modules.director": "1.0.0", 13 | "com.unity.modules.imageconversion": "1.0.0", 14 | "com.unity.modules.imgui": "1.0.0", 15 | "com.unity.modules.jsonserialize": "1.0.0", 16 | "com.unity.modules.particlesystem": "1.0.0", 17 | "com.unity.modules.physics": "1.0.0", 18 | "com.unity.modules.physics2d": "1.0.0", 19 | "com.unity.modules.screencapture": "1.0.0", 20 | "com.unity.modules.terrain": "1.0.0", 21 | "com.unity.modules.terrainphysics": "1.0.0", 22 | "com.unity.modules.tilemap": "1.0.0", 23 | "com.unity.modules.ui": "1.0.0", 24 | "com.unity.modules.uielements": "1.0.0", 25 | "com.unity.modules.umbra": "1.0.0", 26 | "com.unity.modules.unityanalytics": "1.0.0", 27 | "com.unity.modules.unitywebrequest": "1.0.0", 28 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 29 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 30 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 31 | "com.unity.modules.unitywebrequestwww": "1.0.0", 32 | "com.unity.modules.vehicles": "1.0.0", 33 | "com.unity.modules.video": "1.0.0", 34 | "com.unity.modules.vr": "1.0.0", 35 | "com.unity.modules.wind": "1.0.0", 36 | "com.unity.modules.xr": "1.0.0" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/EnumerableExtensions.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | 7 | namespace System.Collections.Generic 8 | { 9 | internal static class EnumerableExtensions 10 | { 11 | /// 12 | /// Splits the given sequence into sequences of the given length. 13 | /// 14 | public static IEnumerable> Split(this IEnumerable source, int maxLength) 15 | { 16 | if (source == null) 17 | { 18 | throw new ArgumentNullException("source"); 19 | } 20 | 21 | if (maxLength <= 0) 22 | { 23 | throw new ArgumentOutOfRangeException("maxLength"); 24 | } 25 | 26 | var enumerator = source.GetEnumerator(); 27 | var batch = new List(maxLength); 28 | 29 | while (enumerator.MoveNext()) 30 | { 31 | batch.Add(enumerator.Current); 32 | 33 | //Have we finished this batch? Yield it and start a new one. 34 | if (batch.Count == maxLength) 35 | { 36 | yield return batch; 37 | batch = new List(maxLength); 38 | } 39 | } 40 | 41 | //Yield the final batch if it has any elements 42 | if (batch.Count > 0) 43 | { 44 | yield return batch; 45 | } 46 | 47 | } 48 | } 49 | } 50 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/ColumnDefinition.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | using System; 7 | using Newtonsoft.Json.Linq; 8 | 9 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 10 | { 11 | /// 12 | /// A class that represents the type of column on local store 13 | /// 14 | public class ColumnDefinition 15 | { 16 | public string Name { get; private set; } 17 | 18 | public JTokenType JsonType { get; private set; } 19 | 20 | public string StoreType { get; private set; } 21 | 22 | 23 | public ColumnDefinition(string name, JTokenType jsonType, string storeType) 24 | { 25 | Name = name; 26 | JsonType = jsonType; 27 | StoreType = storeType; 28 | } 29 | 30 | public override int GetHashCode() 31 | { 32 | return Tuple.Create(Name, JsonType, StoreType).GetHashCode(); 33 | } 34 | 35 | public override bool Equals(object obj) 36 | { 37 | var other = obj as ColumnDefinition; 38 | if (other == null) 39 | { 40 | return base.Equals(obj); 41 | } 42 | 43 | return Name.Equals(other.Name) && 44 | JsonType.Equals(other.JsonType) && 45 | StoreType.Equals(other.StoreType); 46 | } 47 | 48 | public override string ToString() 49 | { 50 | return String.Format("{0}, {1}, {1}", Name, JsonType, StoreType); 51 | } 52 | } 53 | } 54 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTableCriteria.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using System.Collections.Generic; 33 | 34 | namespace LightBuzz.Azure 35 | { 36 | /// 37 | /// An iOS utility that encapsulates a C# predicate as a set of SQL commands. 38 | /// 39 | public class AppServiceTableCriteria : Dictionary 40 | { 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.Security.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abe12294f595a0f49ba65548d3729e6e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: {} 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | DefaultValueInitialized: true 42 | - first: 43 | Standalone: Linux 44 | second: 45 | enabled: 1 46 | settings: {} 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 1 51 | settings: {} 52 | - first: 53 | Standalone: LinuxUniversal 54 | second: 55 | enabled: 1 56 | settings: {} 57 | - first: 58 | Standalone: OSXUniversal 59 | second: 60 | enabled: 1 61 | settings: {} 62 | - first: 63 | Standalone: Win 64 | second: 65 | enabled: 1 66 | settings: {} 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: {} 72 | - first: 73 | Windows Store Apps: WindowsStoreApps 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: AnyCPU 78 | - first: 79 | iPhone: iOS 80 | second: 81 | enabled: 1 82 | settings: {} 83 | userData: 84 | assetBundleName: 85 | assetBundleVariant: 86 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.Sqlite.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34b5924d9b6f88a4a90ba373999d354f 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: {} 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | DefaultValueInitialized: true 42 | - first: 43 | Standalone: Linux 44 | second: 45 | enabled: 1 46 | settings: {} 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 1 51 | settings: {} 52 | - first: 53 | Standalone: LinuxUniversal 54 | second: 55 | enabled: 1 56 | settings: {} 57 | - first: 58 | Standalone: OSXUniversal 59 | second: 60 | enabled: 1 61 | settings: {} 62 | - first: 63 | Standalone: Win 64 | second: 65 | enabled: 1 66 | settings: {} 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: {} 72 | - first: 73 | Windows Store Apps: WindowsStoreApps 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: AnyCPU 78 | - first: 79 | iPhone: iOS 80 | second: 81 | enabled: 1 82 | settings: {} 83 | userData: 84 | assetBundleName: 85 | assetBundleVariant: 86 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.Configuration.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbd53bcdcf1729c44a6f93b1155d9026 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: {} 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | DefaultValueInitialized: true 42 | - first: 43 | Standalone: Linux 44 | second: 45 | enabled: 1 46 | settings: {} 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 1 51 | settings: {} 52 | - first: 53 | Standalone: LinuxUniversal 54 | second: 55 | enabled: 1 56 | settings: {} 57 | - first: 58 | Standalone: OSXUniversal 59 | second: 60 | enabled: 1 61 | settings: {} 62 | - first: 63 | Standalone: Win 64 | second: 65 | enabled: 1 66 | settings: {} 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: {} 72 | - first: 73 | Windows Store Apps: WindowsStoreApps 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: AnyCPU 78 | - first: 79 | iPhone: iOS 80 | second: 81 | enabled: 1 82 | settings: {} 83 | userData: 84 | assetBundleName: 85 | assetBundleVariant: 86 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Mono.Data.SqliteClient.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e01b26046fda9c8479e2d7dd7266a508 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: {} 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | DefaultValueInitialized: true 42 | - first: 43 | Standalone: Linux 44 | second: 45 | enabled: 1 46 | settings: {} 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 1 51 | settings: {} 52 | - first: 53 | Standalone: LinuxUniversal 54 | second: 55 | enabled: 1 56 | settings: {} 57 | - first: 58 | Standalone: OSXUniversal 59 | second: 60 | enabled: 1 61 | settings: {} 62 | - first: 63 | Standalone: Win 64 | second: 65 | enabled: 1 66 | settings: {} 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: {} 72 | - first: 73 | Windows Store Apps: WindowsStoreApps 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: AnyCPU 78 | - first: 79 | iPhone: iOS 80 | second: 81 | enabled: 1 82 | settings: {} 83 | userData: 84 | assetBundleName: 85 | assetBundleVariant: 86 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/System.EnterpriseServices.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b58178d9b1601094d895cb6927985be5 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: {} 31 | - first: 32 | Any: 33 | second: 34 | enabled: 0 35 | settings: {} 36 | - first: 37 | Editor: Editor 38 | second: 39 | enabled: 1 40 | settings: 41 | DefaultValueInitialized: true 42 | - first: 43 | Standalone: Linux 44 | second: 45 | enabled: 1 46 | settings: {} 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 1 51 | settings: {} 52 | - first: 53 | Standalone: LinuxUniversal 54 | second: 55 | enabled: 1 56 | settings: {} 57 | - first: 58 | Standalone: OSXUniversal 59 | second: 60 | enabled: 1 61 | settings: {} 62 | - first: 63 | Standalone: Win 64 | second: 65 | enabled: 1 66 | settings: {} 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: {} 72 | - first: 73 | Windows Store Apps: WindowsStoreApps 74 | second: 75 | enabled: 0 76 | settings: 77 | CPU: AnyCPU 78 | - first: 79 | iPhone: iOS 80 | second: 81 | enabled: 1 82 | settings: {} 83 | userData: 84 | assetBundleName: 85 | assetBundleVariant: 86 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.core.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20dcfc241f7b5aa45b14d28314a895a0 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | DefaultValueInitialized: true 37 | - first: 38 | Facebook: Win 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Facebook: Win64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Linux 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Linux64 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: None 61 | - first: 62 | Standalone: LinuxUniversal 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: OSXUniversal 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: x86 73 | - first: 74 | Standalone: Win 75 | second: 76 | enabled: 0 77 | settings: 78 | CPU: None 79 | - first: 80 | Standalone: Win64 81 | second: 82 | enabled: 0 83 | settings: 84 | CPU: None 85 | - first: 86 | Windows Store Apps: WindowsStoreApps 87 | second: 88 | enabled: 1 89 | settings: 90 | CPU: AnyCPU 91 | userData: 92 | assetBundleName: 93 | assetBundleVariant: 94 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_v2.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8fc9c12149af874cbcb754a28dbdfa7 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | DefaultValueInitialized: true 37 | - first: 38 | Facebook: Win 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Facebook: Win64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Linux 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Linux64 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: None 61 | - first: 62 | Standalone: LinuxUniversal 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: OSXUniversal 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: x86 73 | - first: 74 | Standalone: Win 75 | second: 76 | enabled: 0 77 | settings: 78 | CPU: None 79 | - first: 80 | Standalone: Win64 81 | second: 82 | enabled: 0 83 | settings: 84 | CPU: None 85 | - first: 86 | Windows Store Apps: WindowsStoreApps 87 | second: 88 | enabled: 1 89 | settings: 90 | CPU: AnyCPU 91 | userData: 92 | assetBundleName: 93 | assetBundleVariant: 94 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.batteries_green.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1a08f694cd50a447acf5e0189635c0d 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | DefaultValueInitialized: true 37 | - first: 38 | Facebook: Win 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Facebook: Win64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Linux 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Linux64 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: None 61 | - first: 62 | Standalone: LinuxUniversal 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: OSXUniversal 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: x86 73 | - first: 74 | Standalone: Win 75 | second: 76 | enabled: 0 77 | settings: 78 | CPU: None 79 | - first: 80 | Standalone: Win64 81 | second: 82 | enabled: 0 83 | settings: 84 | CPU: None 85 | - first: 86 | Windows Store Apps: WindowsStoreApps 87 | second: 88 | enabled: 1 89 | settings: 90 | CPU: AnyCPU 91 | userData: 92 | assetBundleName: 93 | assetBundleVariant: 94 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/SQLitePCLRaw.provider.e_sqlite3.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69dad6c0b95bd9340bc389714467d47e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 0 35 | settings: 36 | DefaultValueInitialized: true 37 | - first: 38 | Facebook: Win 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Facebook: Win64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: Linux 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: None 55 | - first: 56 | Standalone: Linux64 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: None 61 | - first: 62 | Standalone: LinuxUniversal 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: OSXUniversal 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: x86 73 | - first: 74 | Standalone: Win 75 | second: 76 | enabled: 0 77 | settings: 78 | CPU: None 79 | - first: 80 | Standalone: Win64 81 | second: 82 | enabled: 0 83 | settings: 84 | CPU: None 85 | - first: 86 | Windows Store Apps: WindowsStoreApps 87 | second: 88 | enabled: 1 89 | settings: 90 | CPU: AnyCPU 91 | userData: 92 | assetBundleName: 93 | assetBundleVariant: 94 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTablePredicate.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | namespace LightBuzz.Azure 33 | { 34 | /// 35 | /// An iOS utility that maps the C# predicate clauses to SQL commands. 36 | /// 37 | public class AppServiceTablePredicate 38 | { 39 | /// 40 | /// The additive operator, e.g. "and". 41 | /// 42 | public string AdditiveOperator { get; set; } 43 | 44 | /// 45 | /// The comparison operator, e.g. "=". 46 | /// 47 | public string ComparisonOperator { get; set; } 48 | 49 | /// 50 | /// The value parameter. 51 | /// 52 | public object Data { get; set; } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/ICertificateValidator.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using System.Net.Security; 33 | using System.Security.Cryptography.X509Certificates; 34 | 35 | namespace LightBuzz.Azure 36 | { 37 | /// 38 | /// Validates a remote SSL certificate. 39 | /// 40 | public interface ICertificateValidator 41 | { 42 | /// 43 | /// Determines whether the specified SSL certificate is valid. 44 | /// 45 | /// The object raising the callback. 46 | /// The certificate to validate. 47 | /// The certificate chain. 48 | /// The SSL policy errors. 49 | /// True if the certificate is valid. False otherwise. 50 | bool CertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors); 51 | } 52 | } -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 41 | - {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0} 42 | m_PreloadedShaders: [] 43 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 44 | type: 0} 45 | m_CustomRenderPipeline: {fileID: 0} 46 | m_TransparencySortMode: 0 47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 48 | m_DefaultRenderingPath: 1 49 | m_DefaultMobileRenderingPath: 1 50 | m_TierSettings: [] 51 | m_LightmapStripping: 0 52 | m_FogStripping: 0 53 | m_InstancingStripping: 0 54 | m_LightmapKeepPlain: 1 55 | m_LightmapKeepDirCombined: 1 56 | m_LightmapKeepDynamicPlain: 1 57 | m_LightmapKeepDynamicDirCombined: 1 58 | m_LightmapKeepShadowMask: 1 59 | m_LightmapKeepSubtractive: 1 60 | m_FogKeepLinear: 1 61 | m_FogKeepExp: 1 62 | m_FogKeepExp2: 1 63 | m_AlbedoSwatchInfos: [] 64 | m_LightsUseLinearIntensity: 0 65 | m_LightsUseColorTemperature: 0 66 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft/Newtonsoft.Json.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4a6d48a3d10d4dc3ba2c1e41f392bf7 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 1 73 | settings: {} 74 | - first: 75 | Standalone: OSXUniversal 76 | second: 77 | enabled: 1 78 | settings: 79 | CPU: AnyCPU 80 | - first: 81 | Standalone: Win 82 | second: 83 | enabled: 1 84 | settings: 85 | CPU: AnyCPU 86 | - first: 87 | Standalone: Win64 88 | second: 89 | enabled: 1 90 | settings: 91 | CPU: AnyCPU 92 | - first: 93 | Windows Store Apps: WindowsStoreApps 94 | second: 95 | enabled: 0 96 | settings: 97 | CPU: AnyCPU 98 | DontProcess: false 99 | PlaceholderPath: 100 | SDK: AnySDK 101 | ScriptingBackend: AnyScriptingBackend 102 | - first: 103 | iPhone: iOS 104 | second: 105 | enabled: 1 106 | settings: 107 | AddToEmbeddedBinaries: false 108 | CompileFlags: 109 | FrameworkDependencies: 110 | userData: 111 | assetBundleName: 112 | assetBundleVariant: 113 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/WSA/e_sqlite3.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1110e24de6e1f294890eef765a6845ca 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: x86 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: None 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: None 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 1 97 | settings: 98 | CPU: X86 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: AnySDK 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/Microsoft.Azure.Mobile.Client.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 611348e30ea5f1842be81aad5dd9e848 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 0 18 | Exclude Linux: 0 19 | Exclude Linux64: 0 20 | Exclude LinuxUniversal: 0 21 | Exclude OSXUniversal: 0 22 | Exclude Win: 0 23 | Exclude Win64: 0 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 1 73 | settings: {} 74 | - first: 75 | Standalone: OSXUniversal 76 | second: 77 | enabled: 1 78 | settings: 79 | CPU: AnyCPU 80 | - first: 81 | Standalone: Win 82 | second: 83 | enabled: 1 84 | settings: 85 | CPU: AnyCPU 86 | - first: 87 | Standalone: Win64 88 | second: 89 | enabled: 1 90 | settings: 91 | CPU: AnyCPU 92 | - first: 93 | Windows Store Apps: WindowsStoreApps 94 | second: 95 | enabled: 0 96 | settings: 97 | CPU: AnyCPU 98 | DontProcess: false 99 | PlaceholderPath: 100 | SDK: AnySDK 101 | ScriptingBackend: AnyScriptingBackend 102 | - first: 103 | iPhone: iOS 104 | second: 105 | enabled: 1 106 | settings: 107 | AddToEmbeddedBinaries: false 108 | CompileFlags: 109 | FrameworkDependencies: 110 | userData: 111 | assetBundleName: 112 | assetBundleVariant: 113 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78cb1423cdf6a2841b47124d0da9cbd5 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: x86 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: None 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: None 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 1 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: UWP 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Newtonsoft/WSA/Newtonsoft.Json.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57d845cf70b63cf4d9bd8fd868e7e149 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: AnyCPU 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: AnyCPU 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 1 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: true 100 | PlaceholderPath: 101 | SDK: UWP 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86/sqlite3.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70e174c0f50dfe54285c7450b059ec68 3 | timeCreated: 1526204042 4 | licenseType: Pro 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Android: 1 19 | Exclude Editor: 1 20 | Exclude Linux: 0 21 | Exclude Linux64: 0 22 | Exclude LinuxUniversal: 0 23 | Exclude OSXUniversal: 0 24 | Exclude Win: 0 25 | Exclude Win64: 1 26 | Exclude WindowsStoreApps: 1 27 | Exclude iOS: 1 28 | - first: 29 | Android: Android 30 | second: 31 | enabled: 0 32 | settings: 33 | CPU: ARMv7 34 | - first: 35 | Any: 36 | second: 37 | enabled: 0 38 | settings: {} 39 | - first: 40 | Editor: Editor 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | DefaultValueInitialized: true 46 | OS: AnyOS 47 | - first: 48 | Facebook: Win 49 | second: 50 | enabled: 0 51 | settings: 52 | CPU: AnyCPU 53 | - first: 54 | Facebook: Win64 55 | second: 56 | enabled: 0 57 | settings: 58 | CPU: None 59 | - first: 60 | Standalone: Linux 61 | second: 62 | enabled: 1 63 | settings: 64 | CPU: x86 65 | - first: 66 | Standalone: Linux64 67 | second: 68 | enabled: 1 69 | settings: 70 | CPU: x86_64 71 | - first: 72 | Standalone: LinuxUniversal 73 | second: 74 | enabled: 1 75 | settings: 76 | CPU: AnyCPU 77 | - first: 78 | Standalone: OSXUniversal 79 | second: 80 | enabled: 1 81 | settings: 82 | CPU: AnyCPU 83 | - first: 84 | Standalone: Win 85 | second: 86 | enabled: 1 87 | settings: 88 | CPU: AnyCPU 89 | - first: 90 | Standalone: Win64 91 | second: 92 | enabled: 0 93 | settings: 94 | CPU: None 95 | - first: 96 | Windows Store Apps: WindowsStoreApps 97 | second: 98 | enabled: 0 99 | settings: 100 | CPU: AnyCPU 101 | DontProcess: False 102 | PlaceholderPath: 103 | SDK: AnySDK 104 | ScriptingBackend: AnyScriptingBackend 105 | - first: 106 | iPhone: iOS 107 | second: 108 | enabled: 0 109 | settings: 110 | CompileFlags: 111 | FrameworkDependencies: 112 | userData: 113 | assetBundleName: 114 | assetBundleVariant: 115 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/x86_64/sqlite3.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3b1c012b3c09e24ea04734c24edf990 3 | timeCreated: 1526204082 4 | licenseType: Pro 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Android: 1 19 | Exclude Editor: 0 20 | Exclude Linux: 0 21 | Exclude Linux64: 0 22 | Exclude LinuxUniversal: 0 23 | Exclude OSXUniversal: 0 24 | Exclude Win: 1 25 | Exclude Win64: 0 26 | Exclude WindowsStoreApps: 1 27 | Exclude iOS: 1 28 | - first: 29 | Android: Android 30 | second: 31 | enabled: 0 32 | settings: 33 | CPU: ARMv7 34 | - first: 35 | Any: 36 | second: 37 | enabled: 0 38 | settings: {} 39 | - first: 40 | Editor: Editor 41 | second: 42 | enabled: 1 43 | settings: 44 | CPU: x86_64 45 | DefaultValueInitialized: true 46 | OS: AnyOS 47 | - first: 48 | Facebook: Win 49 | second: 50 | enabled: 0 51 | settings: 52 | CPU: None 53 | - first: 54 | Facebook: Win64 55 | second: 56 | enabled: 0 57 | settings: 58 | CPU: AnyCPU 59 | - first: 60 | Standalone: Linux 61 | second: 62 | enabled: 1 63 | settings: 64 | CPU: x86 65 | - first: 66 | Standalone: Linux64 67 | second: 68 | enabled: 1 69 | settings: 70 | CPU: x86_64 71 | - first: 72 | Standalone: LinuxUniversal 73 | second: 74 | enabled: 1 75 | settings: 76 | CPU: AnyCPU 77 | - first: 78 | Standalone: OSXUniversal 79 | second: 80 | enabled: 1 81 | settings: 82 | CPU: AnyCPU 83 | - first: 84 | Standalone: Win 85 | second: 86 | enabled: 0 87 | settings: 88 | CPU: None 89 | - first: 90 | Standalone: Win64 91 | second: 92 | enabled: 1 93 | settings: 94 | CPU: AnyCPU 95 | - first: 96 | Windows Store Apps: WindowsStoreApps 97 | second: 98 | enabled: 0 99 | settings: 100 | CPU: AnyCPU 101 | DontProcess: False 102 | PlaceholderPath: 103 | SDK: AnySDK 104 | ScriptingBackend: AnyScriptingBackend 105 | - first: 106 | iPhone: iOS 107 | second: 108 | enabled: 0 109 | settings: 110 | CompileFlags: 111 | FrameworkDependencies: 112 | userData: 113 | assetBundleName: 114 | assetBundleVariant: 115 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/x86/libsqlite3.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67d47d9906794c546befec5d5c974020 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: x86 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: AnyCPU 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: AnyCPU 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 0 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: AnySDK 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/Microsoft.Azure.Mobile.Client.SQLiteStore.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee3f3c9c92642fb4b84198fa50ecc7f0 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: x86 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: None 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: None 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 1 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: UWP 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/Azure/WSA/System.Security.Cryptography.Algorithms.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d85029e3ed211b94bb533f79abc28b39 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 1 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: x86 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: None 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: None 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 1 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: true 100 | PlaceholderPath: 101 | SDK: AnySDK 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/arm64-v8a/libsqlite3.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aaa11871aa0536146a586298f60ef726 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARM64 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: AnyCPU 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: AnyCPU 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 0 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: AnySDK 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Plugins/SQLite/Android/libs/armeabi-v7a/libsqlite3.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 10a0f7d950b2927499154b9c1fad3f65 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | '': Any 13 | second: 14 | enabled: 0 15 | settings: 16 | Exclude Android: 0 17 | Exclude Editor: 1 18 | Exclude Linux: 1 19 | Exclude Linux64: 1 20 | Exclude LinuxUniversal: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude WindowsStoreApps: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Facebook: Win 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Facebook: Win64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Linux 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Linux64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Standalone: LinuxUniversal 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: None 75 | - first: 76 | Standalone: OSXUniversal 77 | second: 78 | enabled: 0 79 | settings: 80 | CPU: AnyCPU 81 | - first: 82 | Standalone: Win 83 | second: 84 | enabled: 0 85 | settings: 86 | CPU: AnyCPU 87 | - first: 88 | Standalone: Win64 89 | second: 90 | enabled: 0 91 | settings: 92 | CPU: AnyCPU 93 | - first: 94 | Windows Store Apps: WindowsStoreApps 95 | second: 96 | enabled: 0 97 | settings: 98 | CPU: AnyCPU 99 | DontProcess: false 100 | PlaceholderPath: 101 | SDK: AnySDK 102 | ScriptingBackend: AnyScriptingBackend 103 | - first: 104 | iPhone: iOS 105 | second: 106 | enabled: 0 107 | settings: 108 | AddToEmbeddedBinaries: false 109 | CompileFlags: 110 | FrameworkDependencies: 111 | userData: 112 | assetBundleName: 113 | assetBundleVariant: 114 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/SampleMobileClient.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using System.Threading; 33 | using System.Threading.Tasks; 34 | using LightBuzz.Azure; 35 | using Microsoft.WindowsAzure.MobileServices.SQLiteStore; 36 | 37 | /// 38 | /// A subclass that extends LightBuzzMobileServiceClient. 39 | /// 40 | class SampleMobileClient : LightBuzzMobileServiceClient 41 | { 42 | /// 43 | /// Creates a new instance of the SampleMobileClient. 44 | /// 45 | /// Azure App Service URL 46 | /// Supports local database 47 | public SampleMobileClient(string mobileAppUri, bool supportLocal) : base(mobileAppUri, supportLocal) 48 | { 49 | } 50 | 51 | /// 52 | /// The implementation of abstract method DefineTables. 53 | /// 54 | protected override void DefineTables() 55 | { 56 | LocalStore.DefineTable(); 57 | } 58 | 59 | /// 60 | /// The implementation of abstract method Pull. 61 | /// 62 | /// 63 | public override async Task Pull(CancellationToken ct) 64 | { 65 | AppServiceTableDAO todoTableDao = new AppServiceTableDAO(this); 66 | await todoTableDao.Pull(ct, "TodoItems", x => x.Id != null); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Editor/BuildPlatformSettings.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | public class BuildPlatformSettings : MonoBehaviour 6 | { 7 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../Android")] 8 | private static void BuildSettings_Android() 9 | { 10 | SetBuildSettings(BuildTargetGroup.Android, BuildTarget.Android, ScriptingImplementation.Mono2x); 11 | } 12 | 13 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../iOS")] 14 | private static void BuildSettings_iOS() 15 | { 16 | SetBuildSettings(BuildTargetGroup.iOS, BuildTarget.iOS, ScriptingImplementation.IL2CPP); 17 | } 18 | 19 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../Windows Desktop")] 20 | private static void BuildSettings_Windows() 21 | { 22 | SetBuildSettings(BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows64, ScriptingImplementation.Mono2x); 23 | } 24 | 25 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../Mac OS X")] 26 | private static void BuildSettings_MacOSX() 27 | { 28 | SetBuildSettings(BuildTargetGroup.Standalone, BuildTarget.StandaloneOSX, ScriptingImplementation.Mono2x); 29 | } 30 | 31 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../UWP")] 32 | private static void BuildSettings_UWP() 33 | { 34 | EditorUserBuildSettings.wsaSubtarget = WSASubtarget.AnyDevice; 35 | PlayerSettings.WSA.SetCapability(PlayerSettings.WSACapability.InternetClient, true); 36 | 37 | SetBuildSettings(BuildTargetGroup.WSA, BuildTarget.WSAPlayer, ScriptingImplementation.WinRTDotNET); 38 | } 39 | 40 | [MenuItem("LightBuzz/Azure/Apply Build Settings for.../HoloLens")] 41 | private static void BuildSettings_HoloLens() 42 | { 43 | EditorUserBuildSettings.wsaSubtarget = WSASubtarget.HoloLens; 44 | PlayerSettings.WSA.SetCapability(PlayerSettings.WSACapability.InternetClient, true); 45 | 46 | SetBuildSettings(BuildTargetGroup.WSA, BuildTarget.WSAPlayer, ScriptingImplementation.WinRTDotNET); 47 | } 48 | 49 | private static void SetBuildSettings(BuildTargetGroup group, BuildTarget target, ScriptingImplementation scripting) 50 | { 51 | PlayerSettings.SetScriptingBackend(group, scripting); 52 | PlayerSettings.scriptingRuntimeVersion = ScriptingRuntimeVersion.Latest; 53 | 54 | EditorUserBuildSettings.SwitchActiveBuildTarget(group, target); 55 | } 56 | 57 | [MenuItem("LightBuzz/Azure/GitHub")] 58 | private static void GitHub_Project() 59 | { 60 | Application.OpenURL("https://github.com/lightbuzz/azure-unity/"); 61 | } 62 | 63 | [MenuItem("LightBuzz/Azure/Report a problem")] 64 | private static void GitHub_Issues() 65 | { 66 | Application.OpenURL("https://github.com/lightbuzz/azure-unity/issue/new"); 67 | } 68 | 69 | [MenuItem("LightBuzz/Contact us")] 70 | private static void Contact() 71 | { 72 | Application.OpenURL("https://lightbuzz.com/contact"); 73 | } 74 | } 75 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/LightBuzzMobileServiceClientCloudOnly.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using System; 33 | using System.Threading; 34 | using System.Threading.Tasks; 35 | 36 | namespace LightBuzz.Azure 37 | { 38 | /// 39 | /// Represents an Azure Service Client that has no Local Store support. 40 | /// 41 | public class LightBuzzMobileServiceClientCloudOnly : LightBuzzMobileServiceClient 42 | { 43 | /// 44 | /// Creates a new instance of the . 45 | /// 46 | /// The Azure service URI. 47 | public LightBuzzMobileServiceClientCloudOnly(string mobileAppUri) : base(mobileAppUri, false) 48 | { 49 | } 50 | 51 | private LightBuzzMobileServiceClientCloudOnly(string mobileAppUri, bool supportLocal) : base(mobileAppUri, supportLocal) 52 | { 53 | } 54 | 55 | /// 56 | /// Defines the database tables in managed code. 57 | /// 58 | protected override void DefineTables() 59 | { 60 | throw new NotImplementedException(); 61 | } 62 | 63 | /// 64 | /// Pulls the remote data from the server. 65 | /// 66 | /// The Cancellation Token. 67 | /// 68 | public override Task Pull(CancellationToken ct) 69 | { 70 | throw new NotImplementedException(); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Azure.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4911a2fab9ac1ac488382cfff76339e4 3 | timeCreated: 1525625904 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | - buildTarget: Standalone 70 | maxTextureSize: 2048 71 | resizeAlgorithm: 0 72 | textureFormat: -1 73 | textureCompression: 1 74 | compressionQuality: 50 75 | crunchedCompression: 0 76 | allowsAlphaSplitting: 0 77 | overridden: 0 78 | androidETC2FallbackOverride: 0 79 | - buildTarget: iPhone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | - buildTarget: Android 90 | maxTextureSize: 2048 91 | resizeAlgorithm: 0 92 | textureFormat: -1 93 | textureCompression: 1 94 | compressionQuality: 50 95 | crunchedCompression: 0 96 | allowsAlphaSplitting: 0 97 | overridden: 0 98 | androidETC2FallbackOverride: 0 99 | - buildTarget: Windows Store Apps 100 | maxTextureSize: 2048 101 | resizeAlgorithm: 0 102 | textureFormat: -1 103 | textureCompression: 1 104 | compressionQuality: 50 105 | crunchedCompression: 0 106 | allowsAlphaSplitting: 0 107 | overridden: 0 108 | androidETC2FallbackOverride: 0 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | spritePackingTag: 115 | userData: 116 | assetBundleName: 117 | assetBundleVariant: 118 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/LightBuzz.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f6ff76addb0cd148b3c84cece6afefd 3 | timeCreated: 1525625804 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: 1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | - buildTarget: Standalone 70 | maxTextureSize: 2048 71 | resizeAlgorithm: 0 72 | textureFormat: -1 73 | textureCompression: 1 74 | compressionQuality: 50 75 | crunchedCompression: 0 76 | allowsAlphaSplitting: 0 77 | overridden: 0 78 | androidETC2FallbackOverride: 0 79 | - buildTarget: iPhone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | - buildTarget: Android 90 | maxTextureSize: 2048 91 | resizeAlgorithm: 0 92 | textureFormat: -1 93 | textureCompression: 1 94 | compressionQuality: 50 95 | crunchedCompression: 0 96 | allowsAlphaSplitting: 0 97 | overridden: 0 98 | androidETC2FallbackOverride: 0 99 | - buildTarget: Windows Store Apps 100 | maxTextureSize: 2048 101 | resizeAlgorithm: 0 102 | textureFormat: -1 103 | textureCompression: 1 104 | compressionQuality: 50 105 | crunchedCompression: 0 106 | allowsAlphaSplitting: 0 107 | overridden: 0 108 | androidETC2FallbackOverride: 0 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | spritePackingTag: 115 | userData: 116 | assetBundleName: 117 | assetBundleVariant: 118 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Unity.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47847a78fe9a2674e8e9242bc8fe92fd 3 | timeCreated: 1525625904 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | - buildTarget: Standalone 70 | maxTextureSize: 2048 71 | resizeAlgorithm: 0 72 | textureFormat: -1 73 | textureCompression: 1 74 | compressionQuality: 50 75 | crunchedCompression: 0 76 | allowsAlphaSplitting: 0 77 | overridden: 0 78 | androidETC2FallbackOverride: 0 79 | - buildTarget: iPhone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | - buildTarget: Android 90 | maxTextureSize: 2048 91 | resizeAlgorithm: 0 92 | textureFormat: -1 93 | textureCompression: 1 94 | compressionQuality: 50 95 | crunchedCompression: 0 96 | allowsAlphaSplitting: 0 97 | overridden: 0 98 | androidETC2FallbackOverride: 0 99 | - buildTarget: Windows Store Apps 100 | maxTextureSize: 2048 101 | resizeAlgorithm: 0 102 | textureFormat: -1 103 | textureCompression: 1 104 | compressionQuality: 50 105 | crunchedCompression: 0 106 | allowsAlphaSplitting: 0 107 | overridden: 0 108 | androidETC2FallbackOverride: 0 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | spritePackingTag: 115 | userData: 116 | assetBundleName: 117 | assetBundleVariant: 118 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Images/Icon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5439478bb0b4cb242a32b2042bdb6503 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: 1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: 1 36 | wrapV: 1 37 | wrapW: -1 38 | nPOTScale: 0 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 1 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spritePixelsToUnits: 100 47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 48 | spriteGenerateFallbackPhysicsShape: 1 49 | alphaUsage: 1 50 | alphaIsTransparency: 1 51 | spriteTessellationDetail: -1 52 | textureType: 8 53 | textureShape: 1 54 | singleChannelComponent: 0 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - serializedVersion: 2 60 | buildTarget: DefaultTexturePlatform 61 | maxTextureSize: 256 62 | resizeAlgorithm: 0 63 | textureFormat: -1 64 | textureCompression: 0 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | androidETC2FallbackOverride: 0 70 | - serializedVersion: 2 71 | buildTarget: Standalone 72 | maxTextureSize: 256 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 0 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | androidETC2FallbackOverride: 0 81 | - serializedVersion: 2 82 | buildTarget: iPhone 83 | maxTextureSize: 256 84 | resizeAlgorithm: 0 85 | textureFormat: -1 86 | textureCompression: 0 87 | compressionQuality: 50 88 | crunchedCompression: 0 89 | allowsAlphaSplitting: 0 90 | overridden: 0 91 | androidETC2FallbackOverride: 0 92 | - serializedVersion: 2 93 | buildTarget: Android 94 | maxTextureSize: 256 95 | resizeAlgorithm: 0 96 | textureFormat: -1 97 | textureCompression: 0 98 | compressionQuality: 50 99 | crunchedCompression: 0 100 | allowsAlphaSplitting: 0 101 | overridden: 0 102 | androidETC2FallbackOverride: 0 103 | - serializedVersion: 2 104 | buildTarget: Windows Store Apps 105 | maxTextureSize: 256 106 | resizeAlgorithm: 0 107 | textureFormat: -1 108 | textureCompression: 0 109 | compressionQuality: 50 110 | crunchedCompression: 0 111 | allowsAlphaSplitting: 0 112 | overridden: 0 113 | androidETC2FallbackOverride: 0 114 | spriteSheet: 115 | serializedVersion: 2 116 | sprites: [] 117 | outline: [] 118 | physicsShape: [] 119 | bones: [] 120 | spriteID: 1bb4432fa7bed61478b6bcb2427c5aba 121 | vertices: [] 122 | indices: 123 | edges: [] 124 | weights: [] 125 | spritePackingTag: 126 | userData: 127 | assetBundleName: 128 | assetBundleVariant: 129 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AzureCertificateValidation.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | #if !UNITY_WSA || UNITY_EDITOR 33 | using System; 34 | using System.Net.Security; 35 | using System.Security.Cryptography.X509Certificates; 36 | 37 | namespace LightBuzz.Azure 38 | { 39 | /// 40 | /// Validates a remote SSL certificate for Azure. 41 | /// 42 | public class AzureCertificateValidation : ICertificateValidator 43 | { 44 | /// 45 | /// The information for the client's proxy. If no proxy is used, should be null or empty. 46 | /// 47 | public string ProxyInfo { get; set; } 48 | 49 | /// 50 | /// Creates a new AzureCertificateValidation. 51 | /// 52 | /// The information for the client's proxy. If no proxy is used, should be null or empty. 53 | public AzureCertificateValidation(string proxyInfo) 54 | { 55 | ProxyInfo = proxyInfo; 56 | } 57 | 58 | /// 59 | /// Determines whether the specified SSL certificate is valid. Implemented for Azure certificates. 60 | /// 61 | /// The object raising the callback. 62 | /// The certificate to validate. 63 | /// The certificate chain. 64 | /// The SSL policy errors. 65 | /// True if the certificate is valid. False otherwise. 66 | public bool CertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) 67 | { 68 | bool isValidCertificate = true; 69 | if (sslPolicyErrors != SslPolicyErrors.None) 70 | { 71 | foreach (var st in chain.ChainStatus) 72 | { 73 | if (st.Status == X509ChainStatusFlags.RevocationStatusUnknown) 74 | { 75 | continue; 76 | } 77 | 78 | chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain; 79 | chain.ChainPolicy.RevocationMode = X509RevocationMode.Online; 80 | chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(0, 1, 0); 81 | chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags; 82 | 83 | if (!chain.Build((X509Certificate2)certificate)) 84 | { 85 | isValidCertificate = false; 86 | break; 87 | } 88 | } 89 | } 90 | 91 | if (string.IsNullOrEmpty(ProxyInfo)) 92 | { 93 | if (!certificate.Subject.Contains("CN=*.azurewebsites.net") && !certificate.Subject.Contains("CN=*.blob.core.windows.net")) 94 | { 95 | return false; 96 | } 97 | } 98 | 99 | return isValidCertificate; 100 | } 101 | } 102 | } 103 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/MobileServiceSQLiteStoreExtensions.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Reflection; 12 | using Newtonsoft.Json; 13 | using Newtonsoft.Json.Linq; 14 | using Newtonsoft.Json.Serialization; 15 | 16 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 17 | { 18 | /// 19 | /// Provides extension methods on . 20 | /// 21 | public static class MobileServiceSQLiteStoreExtensions 22 | { 23 | public static void DefineTable(this MobileServiceSQLiteStore store) 24 | { 25 | var settings = new MobileServiceJsonSerializerSettings(); 26 | DefineTable(store, settings); 27 | } 28 | 29 | public static void DefineTable(this MobileServiceSQLiteStore store, MobileServiceJsonSerializerSettings settings) 30 | { 31 | string tableName = settings.ContractResolver.ResolveTableName(typeof(T)); 32 | var contract = settings.ContractResolver.ResolveContract(typeof(T)) as JsonObjectContract; 33 | if (contract == null) 34 | { 35 | throw new ArgumentException("The generic type T is not an object."); 36 | } 37 | if (contract.DefaultCreator == null) 38 | { 39 | throw new ArgumentException("The generic type T does not have parameterless constructor."); 40 | } 41 | 42 | // create an empty object 43 | object theObject = contract.DefaultCreator(); 44 | SetEnumDefault(contract, theObject); 45 | 46 | JObject item = ConvertToJObject(settings, theObject); 47 | 48 | //// set default values so serialized version can be used to infer types 49 | SetIdDefault(settings, item); 50 | SetNullDefault(contract, item); 51 | 52 | store.DefineTable(tableName, item); 53 | } 54 | 55 | private static void SetEnumDefault(JsonObjectContract contract, object theObject) 56 | { 57 | foreach (JsonProperty contractProperty in contract.Properties) 58 | { 59 | if (contractProperty.PropertyType.GetTypeInfo().IsEnum) 60 | { 61 | object firstValue = Enum.GetValues(contractProperty.PropertyType) 62 | .Cast() 63 | .FirstOrDefault(); 64 | if (firstValue != null) 65 | { 66 | contractProperty.ValueProvider.SetValue(theObject, firstValue); 67 | } 68 | } 69 | } 70 | } 71 | 72 | private static JObject ConvertToJObject(MobileServiceJsonSerializerSettings settings, object theObject) 73 | { 74 | string json = JsonConvert.SerializeObject(theObject, settings); 75 | JObject item = JsonConvert.DeserializeObject(json, settings); 76 | return item; 77 | } 78 | 79 | private static void SetIdDefault(MobileServiceJsonSerializerSettings settings, JObject item) 80 | { 81 | JsonProperty idProperty = settings.ContractResolver.ResolveIdProperty(typeof(T)); 82 | if (idProperty.PropertyType == typeof(long) || idProperty.PropertyType == typeof(int)) 83 | { 84 | item[MobileServiceSystemColumns.Id] = 0; 85 | } 86 | else 87 | { 88 | item[MobileServiceSystemColumns.Id] = String.Empty; 89 | } 90 | } 91 | 92 | private static void SetNullDefault(JsonObjectContract contract, JObject item) 93 | { 94 | foreach (JProperty itemProperty in item.Properties().Where(i => i.Value.Type == JTokenType.Null)) 95 | { 96 | JsonProperty contractProperty = contract.Properties[itemProperty.Name]; 97 | if (contractProperty.PropertyType == typeof(string) || contractProperty.PropertyType == typeof(Uri)) 98 | { 99 | item[itemProperty.Name] = String.Empty; 100 | } 101 | else if (contractProperty.PropertyType == typeof(byte[])) 102 | { 103 | item[itemProperty.Name] = new byte[0]; 104 | } 105 | else if (contractProperty.PropertyType.GetTypeInfo().IsGenericType && contractProperty.PropertyType.GetGenericTypeDefinition() == typeof(Nullable<>)) 106 | { 107 | item[itemProperty.Name] = new JValue(Activator.CreateInstance(contractProperty.PropertyType.GenericTypeArguments[0])); 108 | } 109 | else 110 | { 111 | item[itemProperty.Name] = new JObject(); 112 | } 113 | } 114 | } 115 | } 116 | } 117 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Sample/Scripts/Sample.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using LightBuzz.Azure; 33 | using System.Collections.Generic; 34 | using System.Linq; 35 | using System.Text; 36 | using System.Threading.Tasks; 37 | using UnityEngine; 38 | using UnityEngine.UI; 39 | 40 | public class Sample : MonoBehaviour 41 | { 42 | private LightBuzzMobileServiceClient azureClient; 43 | private AppServiceTableDAO todoTableDAO; 44 | 45 | [Header("Azure")] 46 | 47 | [SerializeField] 48 | [Tooltip("The Azure App Service URL")] 49 | private string mobileAppUri = "https://testtodolightbuzz.azurewebsites.net"; 50 | 51 | [SerializeField] 52 | [Tooltip("Support local database")] 53 | private bool supportLocalDatabase = true; 54 | 55 | [Header("User Interface")] 56 | 57 | [SerializeField] 58 | private Text output; 59 | 60 | [SerializeField] 61 | private GameObject loading; 62 | 63 | [SerializeField] 64 | private Button buttonGet; 65 | 66 | [SerializeField] 67 | private Button buttonInsert; 68 | 69 | [SerializeField] 70 | private InputField inputInsert; 71 | 72 | [SerializeField] 73 | private Toggle toggleInsert; 74 | 75 | [SerializeField] 76 | private Button buttonDelete; 77 | 78 | [SerializeField] 79 | private Button buttonSync; 80 | 81 | [SerializeField] 82 | private Text textSync; 83 | 84 | private async void Start() 85 | { 86 | loading.SetActive(true); 87 | 88 | await Init(); 89 | 90 | loading.SetActive(false); 91 | } 92 | 93 | private void OnValidate() 94 | { 95 | buttonSync.gameObject.SetActive(supportLocalDatabase); 96 | textSync.gameObject.SetActive(supportLocalDatabase); 97 | } 98 | 99 | public async void Get_Click() 100 | { 101 | loading.SetActive(true); 102 | 103 | await Get(); 104 | 105 | loading.SetActive(false); 106 | } 107 | 108 | public async void Insert_Click() 109 | { 110 | loading.SetActive(true); 111 | 112 | await Insert(); 113 | await Get(); 114 | 115 | loading.SetActive(false); 116 | } 117 | 118 | public async void Delete_Click() 119 | { 120 | loading.SetActive(true); 121 | 122 | await Delete(); 123 | await Get(); 124 | 125 | loading.SetActive(false); 126 | } 127 | 128 | public async void Sync_Click() 129 | { 130 | loading.SetActive(true); 131 | 132 | await Sync(); 133 | await Get(); 134 | 135 | loading.SetActive(false); 136 | } 137 | 138 | private async Task Init() 139 | { 140 | azureClient = new SampleMobileClient(mobileAppUri, supportLocalDatabase); 141 | await azureClient.InitializeLocalStore(); 142 | 143 | todoTableDAO = new AppServiceTableDAO(azureClient); 144 | } 145 | 146 | private async Task Get() 147 | { 148 | List list = await todoTableDAO.FindAll(); 149 | 150 | StringBuilder contents = new StringBuilder(); 151 | 152 | foreach (TodoItem item in list) 153 | { 154 | contents.AppendLine("ID: " + item.Id); 155 | contents.AppendLine("Text: " + item.Text); 156 | contents.AppendLine("Completed: " + item.Complete); 157 | contents.AppendLine(); 158 | } 159 | 160 | output.text = contents.ToString(); 161 | } 162 | 163 | private async Task Insert() 164 | { 165 | TodoItem item = new TodoItem 166 | { 167 | Text = inputInsert.text, 168 | Complete = toggleInsert.isOn 169 | }; 170 | 171 | await todoTableDAO.Insert(item); 172 | } 173 | 174 | private async Task Delete() 175 | { 176 | List list = await todoTableDAO.FindAll(); 177 | 178 | TodoItem item = list.LastOrDefault(); 179 | 180 | if (item != null) 181 | { 182 | await todoTableDAO.Delete(item); 183 | } 184 | } 185 | 186 | private async Task Sync() 187 | { 188 | await azureClient.Sync(); 189 | 190 | } 191 | } -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SQLitePCLRawHelpers.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | //// ---------------------------------------------------------------------------- 3 | //// Copyright (c) Microsoft Corporation. All rights reserved. 4 | //// ---------------------------------------------------------------------------- 5 | 6 | //using System; 7 | //using SQLite4Unity3d; 8 | 9 | //namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 10 | //{ 11 | // internal class SQLitePCLRawHelpers 12 | // { 13 | // internal static bool sqliteIsInitialized = false; 14 | 15 | // internal enum SQLiteType 16 | // { 17 | // INTEGER = 1, // 64-bit signed integer 18 | // FLOAT = 2, // 64-bit IEEE floating point number 19 | // TEXT = 3, // string 20 | // BLOB = 4, // BLOB 21 | // NULL = 5, // NULL 22 | // } 23 | 24 | // internal static sqlite3 GetSqliteConnection(string filename) 25 | // { 26 | // if (!sqliteIsInitialized) 27 | // { 28 | // Batteries_V2.Init(); 29 | // sqliteIsInitialized = true; 30 | // } 31 | 32 | // sqlite3 connection; 33 | // int rc = raw.sqlite3_open(filename, out connection); 34 | // VerifySQLiteResponse(rc, raw.SQLITE_OK, connection); 35 | // return connection; 36 | // } 37 | 38 | // internal static sqlite3_stmt GetSqliteStatement(string sql, sqlite3 db) 39 | // { 40 | // sqlite3_stmt statement; 41 | // int rc= raw.sqlite3_prepare_v2(db, sql, out statement); 42 | // VerifySQLiteResponse(rc, raw.SQLITE_OK, db); 43 | // return statement; 44 | // } 45 | 46 | // internal static void VerifySQLiteResponse(int result, int expectedResult, sqlite3 db) 47 | // { 48 | // if (result != expectedResult) 49 | // { 50 | // string sqliteErrorMessage = (db == null) ? raw.sqlite3_errstr(result) : raw.sqlite3_errmsg(db); 51 | // throw new SQLiteException(string.Format("Error executing SQLite command: '{0}'.", sqliteErrorMessage)); 52 | // } 53 | // } 54 | 55 | // internal static void Bind(sqlite3 db, sqlite3_stmt stm, int index, object value) 56 | // { 57 | // int rc = 0; 58 | 59 | // if (value == null) 60 | // { 61 | // rc = raw.sqlite3_bind_null(stm, index); 62 | // } 63 | // else 64 | // { 65 | // if (IsSupportedInteger(value)) 66 | // { 67 | // rc = raw.sqlite3_bind_int64(stm, index, GetInteger(value)); 68 | // } 69 | // else if (IsSupportedFloat(value)) 70 | // { 71 | // rc = raw.sqlite3_bind_double(stm, index, GetFloat(value)); 72 | // } 73 | // else if (IsSupportedText(value)) 74 | // { 75 | // rc = raw.sqlite3_bind_text(stm, index, value.ToString()); 76 | // } 77 | // else if (value is byte[]) 78 | // { 79 | // rc = raw.sqlite3_bind_blob(stm, index, (byte[])value); 80 | // } 81 | // else 82 | // { 83 | // throw new SQLiteException("Unable to bind parameter with unsupported type: " + value.GetType().FullName); 84 | // } 85 | // } 86 | 87 | // VerifySQLiteResponse(rc, raw.SQLITE_OK, db); 88 | // } 89 | 90 | // private static bool IsSupportedInteger(object value) 91 | // { 92 | // return value is byte || value is sbyte || value is short || value is ushort || value is int || value is uint || value is long || value is ulong; 93 | // } 94 | 95 | // private static bool IsSupportedFloat(object value) 96 | // { 97 | // return value is decimal || value is float || value is double; 98 | // } 99 | 100 | // private static bool IsSupportedText(object value) 101 | // { 102 | // return value is char || value is string; 103 | // } 104 | 105 | // private static long GetInteger(object value) 106 | // { 107 | // if (value == null) 108 | // { 109 | // throw new ArgumentNullException("value"); 110 | // } 111 | 112 | // if (value is ulong && (ulong)value > long.MaxValue) 113 | // { 114 | // throw new SQLiteException("Unable to cast provided ulong value. Overflow ocurred: " + value.ToString()); 115 | // } 116 | 117 | // return Convert.ToInt64(value); 118 | // } 119 | 120 | // private static double GetFloat(object value) 121 | // { 122 | // if (value == null) 123 | // { 124 | // throw new ArgumentNullException("value"); 125 | // } 126 | 127 | // return Convert.ToDouble(value); 128 | // } 129 | 130 | // internal static object GetValue(sqlite3_stmt stm, int index) 131 | // { 132 | // object result = null; 133 | // var type = (SQLiteType)raw.sqlite3_column_type(stm, index); 134 | // switch (type) 135 | // { 136 | // case SQLiteType.INTEGER: 137 | // result = raw.sqlite3_column_int64(stm, index); 138 | // break; 139 | // case SQLiteType.FLOAT: 140 | // result = raw.sqlite3_column_double(stm, index); 141 | // break; 142 | // case SQLiteType.TEXT: 143 | // result = raw.sqlite3_column_text(stm, index); 144 | // break; 145 | // case SQLiteType.BLOB: 146 | // result = raw.sqlite3_column_blob(stm, index); 147 | // break; 148 | // case SQLiteType.NULL: 149 | // break; 150 | // } 151 | // return result; 152 | // } 153 | // } 154 | //} 155 | #endif -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![lightbuzz-azure-unity-logo](https://user-images.githubusercontent.com/562680/41097287-1d0d344c-6a60-11e8-8434-2216f40b2b5b.png) 2 | 3 | # Azure App Service SDK for Unity3D 4 | 5 | The LightBuzz Azure SDK for Unity3D is a framework that allows you to consume remote Azure App services and even store data locally. It's secured using HTTPS. Supports Android, iOS, Windows Standalone, Mac OS, and UWP (including **HoloLens**). 6 | 7 | > It's a cross-platform SDK you can actually use in your apps and games without compatibility problems. 8 | 9 | ![lightbuzz-azure-unity](https://user-images.githubusercontent.com/562680/39691509-70b6b07e-51e6-11e8-8111-eaa171308999.png) 10 | 11 | ## [Download](https://github.com/LightBuzz/Azure-Unity/releases/latest) 12 | 13 | To use the SDK, you can either clone the current repository or download the .unitypackage file from the [Releases](https://github.com/LightBuzz/Azure-Unity/releases/) section. 14 | 15 | #### [![cloud-download](https://user-images.githubusercontent.com/562680/40273695-3b3de7d6-5bce-11e8-9270-3b01f28dc0b7.png) Download the latest stable version »](https://github.com/LightBuzz/Azure-Unity/releases/latest) 16 | 17 | ## [Documentation](https://lightbuzz.com/tools/azure-unity/documentation/) 18 | 19 | You can read the documentation online on [lightbuzz.com/tools/azure-unity/documentation](https://lightbuzz.com/tools/azure-unity/documentation/). 20 | 21 | ## Features 22 | 23 | ### Azure App Services 24 | 25 | The **LightBuzz Azure SDK for Unity** consumes [Azure App Service APIs](http://azure.microsoft.com/en-us/documentation/articles/app-service-api-apps-why-best-platform/). Azure App Services is a service for hosting web applications, REST APIs, and mobile back ends for any platform or device. 26 | 27 | ### HTTPS 28 | 29 | The LightBuzz SDK is built with security in mind. The native Microsoft ```MobileServiceClient``` does not support HTTPS in Unity. Our team has built the HTTP requests from scratch using the ```UnityWebRequest``` class. This way, your data are encrypted and transmitted securely. 30 | 31 | ### HTTP(S) methods 32 | 33 | The LightBuzz SDK supports all of the HTTP(S) method requests. 34 | 35 | * GET 36 | * POST 37 | * PUT 38 | * PATCH 39 | * DELETE 40 | 41 | ### Local Database 42 | 43 | Unlike most of the available SDKs, the LightBuzz Azure SDK for Unity fully supports local database storage. This means you can use the Azure App Services to store data into a local SQLite database. You can sync your local data with the remote server, performing **pull** and **push** operations. As a result, your customers can use your app/game without an active Internet connection! 44 | 45 | The local database is using the official version of **[SQLite](https://www.sqlite.org/index.html)**. SQLite is the most popular and lightweight relational database system for desktop and mobile devices. For UWP, we are using **[SQLitePCL](https://github.com/ericsink/SQLitePCL.raw)**, which is Microsoft's recommendation for Windows Store apps. 46 | 47 | ## Supported Platforms 48 | 49 | The LightBuzz Azure SDK for Unity supports the following platforms: 50 | 51 | * Unity Editor 52 | * Android 53 | * iOS 54 | * Windows Desktop (Standalone) 55 | * MacOS (Standalone) 56 | * Universal Windows Platform (UWP) + HoloLens 57 | 58 | ![lightbuzz-azure-hololens](https://user-images.githubusercontent.com/562680/40274327-c670eeb2-5bdc-11e8-84d8-e0c146431f36.png) 59 | 60 | ## Requirements 61 | 62 | To use the SDK, **[Unity 2017 LTS](https://unity3d.com/unity/qa/lts-releases)** or **[Unity 2018](https://store.unity.com/)** is recommended. 63 | 64 | ### Scripting Runtime 65 | 66 | The SDK is built with the latest C# features, so you need to use the **.NET 4.x Scripting Runtime version**. 67 | 68 | In Unity 2018, the scripting runtime is set to 4.x by default. 69 | 70 | ![unity-2018-scripting-runtime](https://user-images.githubusercontent.com/562680/40273487-65f9230a-5bc9-11e8-9a0e-17ee3c8fe69d.png) 71 | 72 | In Unity 2017, you need to explicitly select "**Experimental (.NET 4.6 Equivalent)**". 73 | 74 | ![unity-2017-scripting-runtime](https://user-images.githubusercontent.com/562680/40273481-543c425a-5bc9-11e8-9ebf-375804e52557.png) 75 | 76 | ### Scripting Backend 77 | 78 | The SDK works with the following Scripting Backend options: 79 | 80 | | Standalone | Android | iOS | UWP | 81 | | --- | --- | --- | --- | 82 | | Mono | Mono | IL2CPP | .NET | 83 | 84 | ### Apply Build Settings 85 | 86 | Using the SDK, you can apply the proper Unity Build Settings automatically. On the Unity menu bar, select **LightBuzz** → **Apply Build Settings for...** and then select the target platform. The SDK will automatically apply the proper build settings for you. 87 | 88 | ![lightbuzz-build-settings](https://user-images.githubusercontent.com/562680/40350478-9d1a2880-5db2-11e8-9ee7-11b5639a2320.png) 89 | 90 | ## How to use 91 | 92 | In the included samples, we have created a simple demo that implements Microsoft's [ToDo List example](https://azure.microsoft.com/en-us/resources/samples/app-service-api-dotnet-todo-list/). 93 | 94 | We have implemented a generic **Data Access Object** for you to use, called ```MobileAppsTableDAO```. The ```MobileAppsTableDAO``` supports all of the common CRUD operations out-of-the-box. All you need to do is call the proper C# methods. 95 | 96 | Using the code is fairly simple: 97 | 98 | ### Initialization 99 | 100 | ```csharp 101 | private string mobileAppUri = "https://testtodolightbuzz.azurewebsites.net"; 102 | private bool supportLocalDatabase = true; 103 | ``` 104 | ```csharp 105 | private MobileServiceClient azureClient; 106 | private AppServiceTableDAO todoTableDAO; 107 | 108 | private async Task Init() 109 | { 110 | azureClient = new SampleMobileClient(mobileAppUri, supportLocalDatabase); 111 | await azureClient.InitializeLocalStore(); 112 | 113 | todoTableDAO = new AppServiceTableDAO(azureClient); 114 | } 115 | ``` 116 | 117 | ### Get 118 | 119 | ```csharp 120 | private async Task Get() 121 | { 122 | List list = await todoTableDAO.FindAll(); 123 | 124 | foreach (TodoItem item in list) 125 | { 126 | Debug.Log("Text: " + item.Text); 127 | } 128 | } 129 | ``` 130 | 131 | ### Insert 132 | 133 | ```csharp 134 | private async Task Insert() 135 | { 136 | TodoItem item = new TodoItem 137 | { 138 | Text = "Hello World!" 139 | }; 140 | 141 | await todoTableDAO.Insert(item); 142 | } 143 | ``` 144 | 145 | ### Delete 146 | 147 | ```csharp 148 | private async Task Delete() 149 | { 150 | List list = await todoTableDAO.FindAll(); 151 | 152 | TodoItem item = list.LastOrDefault(); 153 | 154 | if (item != null) 155 | { 156 | await todoTableDAO.Delete(item); 157 | } 158 | } 159 | ``` 160 | 161 | ### Sync local and remote data 162 | 163 | In case you are using the local database for offline functionality, here is how to perform the pull and push requests: 164 | 165 | ```csharp 166 | private async Task Sync() 167 | { 168 | await azureClient.Sync(); 169 | } 170 | ``` 171 | 172 | ## Contributors 173 | 174 | The SDK is brought to you by [LightBuzz Inc.](https://lightbuzz.com), a New York based company. 175 | 176 | * **[Georgia Makoudi](https://lightbuzz.com/author/georgia/), Azure Specialist** 177 | * **[Vangos Pterneas](https://lightbuzz.com/author/vangos/), Microsoft MVP** 178 | * **[George Karakatsiotis](https://lightbuzz.com/about/), Lead Software Engineer** 179 | 180 | _If you would like to contribute to the SDK, please make a pull request._ 181 | 182 | ## Resources 183 | 184 | * [Getting started with Unity3D](https://unity3d.com/learn/) 185 | * [Getting started with App Services](http://azure.microsoft.com/documentation/articles/app-service-api-dotnet-get-started/) 186 | * [Azure Portal](https://portal.azure.com/) 187 | 188 | ## [Contact us](https://lightbuzz.com/contact) 189 | 190 | [LightBuzz](https://lightbuzz.com) has been developing Mobile and Cloud solutions for Fortune 500 and startup companies since 2012. [Get in touch with us](https://lightbuzz.com/contact) to start a project with a reliable and trusted partner. 191 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/Microsoft.Azure.Mobile.Client.SQLiteStore/SqlHelpers.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_WSA || UNITY_EDITOR 2 | // ---------------------------------------------------------------------------- 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // ---------------------------------------------------------------------------- 5 | 6 | using System; 7 | using System.Globalization; 8 | using Newtonsoft.Json.Linq; 9 | 10 | namespace Microsoft.WindowsAzure.MobileServices.SQLiteStore 11 | { 12 | internal class SqlHelpers 13 | { 14 | static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); 15 | 16 | public static object SerializeValue(JValue value, bool allowNull) 17 | { 18 | string storeType = SqlHelpers.GetStoreType(value.Type, allowNull); 19 | return SerializeValue(value, storeType, value.Type); 20 | } 21 | 22 | public static object SerializeValue(JToken value, string storeType, JTokenType columnType) 23 | { 24 | if (value == null || value.Type == JTokenType.Null) 25 | { 26 | return null; 27 | } 28 | 29 | if (IsTextType(storeType)) 30 | { 31 | return SerializeAsText(value, columnType); 32 | } 33 | if (IsRealType(storeType)) 34 | { 35 | return SerializeAsReal(value, columnType); 36 | } 37 | if (IsNumberType(storeType)) 38 | { 39 | return SerializeAsNumber(value, columnType); 40 | } 41 | 42 | return value.ToString(); 43 | } 44 | 45 | public static JToken DeserializeValue(object value, string storeType, JTokenType columnType) 46 | { 47 | if (value == null) 48 | { 49 | return null; 50 | } 51 | 52 | if (IsTextType(storeType)) 53 | { 54 | return SqlHelpers.ParseText(columnType, value); 55 | } 56 | if (IsRealType(storeType)) 57 | { 58 | return SqlHelpers.ParseReal(columnType, value); 59 | } 60 | if (IsNumberType(storeType)) 61 | { 62 | return SqlHelpers.ParseNumber(columnType, value); 63 | } 64 | 65 | return null; 66 | } 67 | 68 | // https://www.sqlite.org/datatype3.html (2.2 Affinity Name Examples) 69 | public static string GetStoreCastType(Type type) 70 | { 71 | if (type == typeof(bool) || 72 | type == typeof(DateTime) || 73 | type == typeof(decimal)) 74 | { 75 | return SqlColumnType.Numeric; 76 | } 77 | else if (type == typeof(int) || 78 | type == typeof(uint) || 79 | type == typeof(long) || 80 | type == typeof(ulong) || 81 | type == typeof(short) || 82 | type == typeof(ushort) || 83 | type == typeof(byte) || 84 | type == typeof(sbyte)) 85 | { 86 | return SqlColumnType.Integer; 87 | } 88 | else if (type == typeof(float) || 89 | type == typeof(double)) 90 | { 91 | return SqlColumnType.Real; 92 | } 93 | else if (type == typeof(string) || 94 | type == typeof(Guid) || 95 | type == typeof(byte[]) || 96 | type == typeof(Uri) || 97 | type == typeof(TimeSpan)) 98 | { 99 | return SqlColumnType.Text; 100 | } 101 | 102 | throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture, "Value of type '{0}' is not supported.", type.Name)); 103 | } 104 | 105 | public static string GetStoreType(JTokenType type, bool allowNull) 106 | { 107 | switch (type) 108 | { 109 | case JTokenType.Boolean: 110 | return SqlColumnType.Boolean; 111 | case JTokenType.Integer: 112 | return SqlColumnType.Integer; 113 | case JTokenType.Date: 114 | return SqlColumnType.DateTime; 115 | case JTokenType.Float: 116 | return SqlColumnType.Float; 117 | case JTokenType.String: 118 | return SqlColumnType.Text; 119 | case JTokenType.Guid: 120 | return SqlColumnType.Guid; 121 | case JTokenType.Array: 122 | case JTokenType.Object: 123 | return SqlColumnType.Json; 124 | case JTokenType.Bytes: 125 | return SqlColumnType.Blob; 126 | case JTokenType.Uri: 127 | return SqlColumnType.Uri; 128 | case JTokenType.TimeSpan: 129 | return SqlColumnType.TimeSpan; 130 | case JTokenType.Null: 131 | if (allowNull) 132 | { 133 | return null; 134 | } 135 | throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture, "Property of type '{0}' is not supported.", type)); 136 | case JTokenType.Comment: 137 | case JTokenType.Constructor: 138 | case JTokenType.None: 139 | case JTokenType.Property: 140 | case JTokenType.Raw: 141 | case JTokenType.Undefined: 142 | default: 143 | throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture, "Property of type '{0}' is not supported.", type)); 144 | } 145 | } 146 | 147 | public static string FormatTableName(string tableName) 148 | { 149 | ValidateIdentifier(tableName); 150 | return string.Format("[{0}]", tableName); 151 | } 152 | 153 | public static string FormatMember(string memberName) 154 | { 155 | ValidateIdentifier(memberName); 156 | return string.Format("[{0}]", memberName); 157 | } 158 | 159 | private static bool IsNumberType(string storeType) 160 | { 161 | return storeType == SqlColumnType.Integer || 162 | storeType == SqlColumnType.Numeric || 163 | storeType == SqlColumnType.Boolean || 164 | storeType == SqlColumnType.DateTime; 165 | } 166 | 167 | private static bool IsRealType(string storeType) 168 | { 169 | return storeType == SqlColumnType.Real || 170 | storeType == SqlColumnType.Float; 171 | } 172 | 173 | private static bool IsTextType(string storeType) 174 | { 175 | return storeType == SqlColumnType.Text || 176 | storeType == SqlColumnType.Blob || 177 | storeType == SqlColumnType.Guid || 178 | storeType == SqlColumnType.Json || 179 | storeType == SqlColumnType.Uri || 180 | storeType == SqlColumnType.TimeSpan; 181 | } 182 | 183 | private static object SerializeAsNumber(JToken value, JTokenType columnType) 184 | { 185 | if (columnType == JTokenType.Date) 186 | { 187 | return SerializeDateTime(value); 188 | } 189 | return value.Value(); 190 | } 191 | 192 | private static double SerializeAsReal(JToken value, JTokenType columnType) 193 | { 194 | return value.Value(); 195 | } 196 | 197 | private static string SerializeAsText(JToken value, JTokenType columnType) 198 | { 199 | if (columnType == JTokenType.Bytes && value.Type == JTokenType.Bytes) 200 | { 201 | return Convert.ToBase64String(value.Value()); 202 | } 203 | 204 | return value.ToString(); 205 | } 206 | 207 | private static JToken ParseText(JTokenType type, object value) 208 | { 209 | string strValue = value as string; 210 | if (value == null) 211 | { 212 | return strValue; 213 | } 214 | 215 | if (type == JTokenType.Guid) 216 | { 217 | return Guid.Parse(strValue); 218 | } 219 | if (type == JTokenType.Bytes) 220 | { 221 | strValue = System.Text.Encoding.Default.GetString((byte[])value); 222 | return Convert.FromBase64String(strValue); 223 | } 224 | if (type == JTokenType.TimeSpan) 225 | { 226 | return TimeSpan.Parse(strValue); 227 | } 228 | if (type == JTokenType.Uri) 229 | { 230 | return new Uri(strValue, UriKind.RelativeOrAbsolute); 231 | } 232 | if (type == JTokenType.Array || type == JTokenType.Object) 233 | { 234 | return JToken.Parse(strValue); 235 | } 236 | 237 | return strValue; 238 | } 239 | 240 | private static JToken ParseReal(JTokenType type, object value) 241 | { 242 | double dblValue = Convert.ToDouble(value); 243 | if (type == JTokenType.Date) // for compatibility reason i.e. in earlier release datetime was serialized as real type 244 | { 245 | return DeserializeDateTime(dblValue); 246 | } 247 | 248 | return dblValue; 249 | } 250 | 251 | private static JToken ParseNumber(JTokenType type, object value) 252 | { 253 | if (type == JTokenType.Date) 254 | { 255 | return DeserializeDateTime(Convert.ToDouble(value)); 256 | } 257 | 258 | long longValue = Convert.ToInt64(value); 259 | if (type == JTokenType.Boolean) 260 | { 261 | bool boolValue = longValue == 1; 262 | return boolValue; 263 | } 264 | return longValue; 265 | } 266 | 267 | private static JToken DeserializeDateTime(double value) 268 | { 269 | return epoch.AddSeconds(value); 270 | } 271 | 272 | private static double SerializeDateTime(JToken value) 273 | { 274 | var date = value.ToObject(); 275 | if (date.Kind == DateTimeKind.Unspecified) 276 | { 277 | date = DateTime.SpecifyKind(date, DateTimeKind.Utc); 278 | } 279 | double unixTimestamp = Math.Round((date.ToUniversalTime() - epoch).TotalSeconds, 3); 280 | return unixTimestamp; 281 | } 282 | 283 | private static void ValidateIdentifier(string identifier) 284 | { 285 | if (!IsValidIdentifier(identifier)) 286 | { 287 | throw new ArgumentException(string.Format("'{0}' is not a valid identifier. Identifiers must be under 128 characters in length, start with a letter or underscore, and can contain only alpha-numeric and underscore characters.", identifier), "identifier"); 288 | } 289 | } 290 | 291 | private static bool IsValidIdentifier(string identifier) 292 | { 293 | if (String.IsNullOrWhiteSpace(identifier) || identifier.Length > 128) 294 | { 295 | return false; 296 | } 297 | 298 | char first = identifier[0]; 299 | if (!(Char.IsLetter(first) || first == '_')) 300 | { 301 | return false; 302 | } 303 | 304 | for (int i = 1; i < identifier.Length; i++) 305 | { 306 | char ch = identifier[i]; 307 | if (!(Char.IsLetterOrDigit(ch) || ch == '_')) 308 | { 309 | return false; 310 | } 311 | } 312 | 313 | return true; 314 | } 315 | } 316 | } 317 | #endif -------------------------------------------------------------------------------- /Assets/LightBuzz_Azure/Source/LightBuzz.Azure/AppServiceTableDAO.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (c) LightBuzz Software. 3 | // All rights reserved. 4 | // 5 | // http://lightbuzz.com 6 | // 7 | // Redistribution and use in source and binary forms, with or without 8 | // modification, are permitted provided that the following conditions 9 | // are met: 10 | // 11 | // 1. Redistributions of source code must retain the above copyright 12 | // notice, this list of conditions and the following disclaimer. 13 | // 14 | // 2. Redistributions in binary form must reproduce the above copyright 15 | // notice, this list of conditions and the following disclaimer in the 16 | // documentation and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 25 | // OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26 | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 28 | // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | // POSSIBILITY OF SUCH DAMAGE. 30 | // 31 | 32 | using System; 33 | using System.Collections.Generic; 34 | using System.Linq; 35 | using System.Linq.Expressions; 36 | using System.Text; 37 | using System.Threading; 38 | using System.Threading.Tasks; 39 | using Microsoft.WindowsAzure.MobileServices; 40 | using Microsoft.WindowsAzure.MobileServices.SQLiteStore; 41 | using Microsoft.WindowsAzure.MobileServices.Sync; 42 | using Newtonsoft.Json; 43 | using Newtonsoft.Json.Linq; 44 | using UnityEngine; 45 | 46 | namespace LightBuzz.Azure 47 | { 48 | /// 49 | /// A generic table data access object. 50 | /// 51 | /// The type of table to handle. 52 | public class AppServiceTableDAO 53 | { 54 | /// 55 | /// The database table to handle. 56 | /// 57 | public IMobileServiceSyncTable TableLocal { get; set; } 58 | 59 | /// 60 | /// The database table to handle. 61 | /// 62 | public IMobileServiceTable TableCloud { get; set; } 63 | 64 | /// 65 | /// Specifies whether the app stores data locally. 66 | /// 67 | private bool _supportsLocalStore { get; set; } 68 | 69 | /// 70 | /// The MobileServiceSQLiteStore that connects to the local database. 71 | /// 72 | private MobileServiceSQLiteStore _store; 73 | 74 | /// 75 | /// Creates a new instance of the data access object. 76 | /// 77 | /// The Azure App Service client. 78 | public AppServiceTableDAO(LightBuzzMobileServiceClient azureClient) 79 | { 80 | _supportsLocalStore = azureClient.SupportsLocalStore; 81 | _store = azureClient.LocalStore; 82 | 83 | if (_supportsLocalStore) 84 | TableLocal = azureClient.GetSyncTable(); 85 | else 86 | TableCloud = azureClient.GetTable(); 87 | } 88 | 89 | /// 90 | /// Pulls the data from the remote Azure App Service and stores them into the local database. 91 | /// 92 | /// The cancellation token. 93 | /// The unique ID of the query. 94 | /// The predicate to use. 95 | /// 96 | public async Task Pull(CancellationToken ct, string uniqueQueryId, Expression> predicate) 97 | { 98 | if (_supportsLocalStore) 99 | await TableLocal.PullAsync(uniqueQueryId, TableLocal.Where(predicate), ct); 100 | } 101 | 102 | /// 103 | /// Performs a database Insert operation. 104 | /// 105 | /// The object to save. 106 | /// 107 | public async Task Insert(T objectToSave) 108 | { 109 | if (_supportsLocalStore) 110 | await TableLocal.InsertAsync(objectToSave); 111 | else 112 | await TableCloud.InsertAsync(objectToSave); 113 | } 114 | 115 | /// 116 | /// Performs a database Update operation. 117 | /// 118 | /// The object to update. 119 | /// 120 | public async Task Update(T objectToUpdate) 121 | { 122 | if (_supportsLocalStore) 123 | await TableLocal.UpdateAsync(objectToUpdate); 124 | else 125 | await TableCloud.UpdateAsync(objectToUpdate); 126 | } 127 | 128 | /// 129 | /// Performs a database Delete operation. 130 | /// 131 | /// The object to delete. 132 | /// 133 | public async Task Delete(T objectToDelete) 134 | { 135 | if (_supportsLocalStore) 136 | await TableLocal.DeleteAsync(objectToDelete); 137 | else 138 | await TableCloud.DeleteAsync(objectToDelete); 139 | } 140 | 141 | /// 142 | /// Performs a database Get operation and returns all of the items included in the table. 143 | /// 144 | /// 145 | public async Task> FindAll() 146 | { 147 | if (_supportsLocalStore) 148 | return await TableLocal.ToListAsync(); 149 | else 150 | return await TableCloud.ToListAsync(); 151 | } 152 | 153 | /// 154 | /// Performs a database Get operation and returns all of the items that correspond to the specified predicate. 155 | /// 156 | /// The predicate to use. 157 | /// The criteria for the where clause. 158 | /// The list of T objects matching the predicate or the criteria 159 | public async Task> FindAll(Expression> predicate, Dictionary criteria = null) 160 | { 161 | if (_supportsLocalStore) 162 | { 163 | 164 | if (Application.platform == RuntimePlatform.IPhonePlayer) 165 | { 166 | if (PredicateCanRunAsSql(predicate.Body.ToString()) && criteria != null) 167 | { 168 | return FindAllSql(criteria); 169 | } 170 | } 171 | 172 | return await TableLocal.Where(predicate).ToListAsync(); 173 | } 174 | else 175 | { 176 | return await TableCloud.Where(predicate).ToListAsync(); 177 | } 178 | } 179 | 180 | /// 181 | /// Returns true if the predicate matches our citeria to run as Sql 182 | /// 183 | /// The predicate to examine 184 | /// 185 | private bool PredicateCanRunAsSql(string predicateString) 186 | { 187 | return predicateString.Contains("value(") && !predicateString.Contains("orElse"); 188 | } 189 | 190 | /// 191 | /// Performs a database Get operation and returns all of the items that correspond to the specified criteria after building an Sql Query. 192 | /// 193 | /// The criteria for the where clause. 194 | /// The list of T objects matching the criteria 195 | public List FindAllSql(Dictionary criteria) 196 | { 197 | List listObj = new List(); 198 | 199 | Dictionary parameters = new Dictionary(); 200 | 201 | StringBuilder whereClause = new StringBuilder(); 202 | 203 | foreach (KeyValuePair set in criteria) 204 | { 205 | if (whereClause.Length > 0) 206 | { 207 | whereClause.Append(" and "); 208 | } 209 | 210 | var list = set.Value as List; 211 | if (list != null) 212 | { 213 | whereClause.Append(set.Key + " IN ("); 214 | int lastIndex = list.Count; 215 | for (int i = 0; i < lastIndex; i++) 216 | { 217 | whereClause.Append("'" + list[i] + "'"); 218 | if (i != lastIndex - 1) 219 | { 220 | whereClause.Append(","); 221 | } 222 | } 223 | whereClause.Append(")"); 224 | } 225 | else 226 | { 227 | parameters.Add("@" + set.Key, set.Value); 228 | 229 | whereClause.Append(set.Key + "=" + "@" + set.Key); 230 | } 231 | } 232 | 233 | string sqlQuery = $"Select * from {TableLocal.TableName}"; 234 | 235 | if (!string.IsNullOrEmpty(whereClause.ToString())) 236 | { 237 | sqlQuery += $" where {whereClause}"; 238 | } 239 | 240 | List result = _store.ExecuteQueryAsync(TableLocal.TableName, sqlQuery, parameters).Result.ToList(); 241 | 242 | foreach (var obj in result) 243 | { 244 | listObj.Add(JsonConvert.DeserializeObject(obj.ToString())); 245 | } 246 | 247 | return listObj; 248 | } 249 | 250 | /// 251 | /// Performs a database Get operation and returns all of the items that correspond to the specified criteria after building an Sql Query. 252 | /// 253 | /// The criteria for the where clause. 254 | /// The list of T objects matching the criteria 255 | public List FindAllSql(AppServiceTableCriteria criteria) 256 | { 257 | List listObj = new List(); 258 | 259 | Dictionary parameters = new Dictionary(); 260 | 261 | StringBuilder whereClause = new StringBuilder(); 262 | 263 | foreach (KeyValuePair set in criteria) 264 | { 265 | parameters.Add("@" + set.Key, set.Value.Data); 266 | 267 | if (whereClause.Length > 0) 268 | { 269 | whereClause.Append(" " + set.Value.AdditiveOperator + " "); 270 | } 271 | 272 | whereClause.Append(set.Key + "=" + "@" + set.Key); 273 | } 274 | 275 | string sqlQuery = $"Select * from {TableLocal.TableName}"; 276 | 277 | if (!string.IsNullOrEmpty(whereClause.ToString())) 278 | { 279 | sqlQuery += $" where {whereClause}"; 280 | } 281 | 282 | List result = _store.ExecuteQueryAsync(TableLocal.TableName, sqlQuery, parameters).Result.ToList(); 283 | 284 | foreach (var obj in result) 285 | { 286 | listObj.Add(JsonConvert.DeserializeObject(obj.ToString())); 287 | } 288 | 289 | return listObj; 290 | } 291 | 292 | /// 293 | /// Performs a database Get operation and returns the item that corresponds to the specified id. 294 | /// 295 | /// The id to find 296 | /// The requested T object 297 | public async Task FindById(string id) 298 | { 299 | if (_supportsLocalStore) 300 | return await TableLocal.LookupAsync(id); 301 | else 302 | return await TableCloud.LookupAsync(id); 303 | } 304 | } 305 | } 306 | --------------------------------------------------------------------------------