Commit d95ddb07 authored by gaorui's avatar gaorui
Browse files

feat(app): 优化模块结构命名,优化代码命名

parent dba3e756
{
"name": "HoolaiDemo",
"rootNamespace": "HoolaiDemo",
"references": [
"HoolaiSDK",
"Unity.TextMeshPro"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
fileFormatVersion: 2
guid: 4ad29b91a96fd4dd0a7c1c680da6e981
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
{ {
"name": "NewAssembly", "name": "HoolaiSDK",
"rootNamespace": "", "rootNamespace": "HoolaiSDK",
"references": [ "references": [
"Unity.TextMeshPro" "Newtonsoft.Json"
], ],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
"versionDefines": [ "versionDefines": [
{ {
"name": "com.unity.nuget.newtonsoft-json", "name": "com.unity.nuget.newtonsoft-json",
"expression": "", "expression": "3.0.0",
"define": "" "define": "NEWTONSOFT_JSON_AVAILABLE"
} }
], ],
"noEngineReferences": false "noEngineReferences": false
......
...@@ -66,33 +66,33 @@ public class PlayerInfo ...@@ -66,33 +66,33 @@ public class PlayerInfo
public void AddExtra(string key, int value) public void AddExtra(string key, int value)
{ {
if (string.IsNullOrEmpty(key)) return; if (string.IsNullOrEmpty(key)) return;
_extra += key + ":" + CrateValue(value) + ","; _extra += key + ":" + CreateValue(value) + ",";
} }
public void AddExtra(string key, double value) public void AddExtra(string key, double value)
{ {
if (string.IsNullOrEmpty(key)) return; if (string.IsNullOrEmpty(key)) return;
_extra += key + ":" + CrateValue(value) + ","; _extra += key + ":" + CreateValue(value) + ",";
} }
public void AddExtra(string key, string value) public void AddExtra(string key, string value)
{ {
if (string.IsNullOrEmpty(key) || value == null) return; if (string.IsNullOrEmpty(key) || value == null) return;
_extra += key + ":" + CrateValue(value) + ","; _extra += key + ":" + CreateValue(value) + ",";
} }
private string CrateValue(int val) private string CreateValue(int val)
{ {
return "INT|||" + val; return "INT|||" + val;
} }
private string CrateValue(double val) private string CreateValue(double val)
{ {
return "DOUBLE|||" + val; return "DOUBLE|||" + val;
} }
private string CrateValue(string val) private string CreateValue(string val)
{ {
return val; return val;
} }
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<linker> <linker>
<assembly fullname="Assembly-CSharp"> <assembly fullname="HoolaiSDK">
<!-- core config --> <!-- core config -->
<type fullname="HoolaiSdkManager" preserve="all"/> <type fullname="HoolaiSdkManager" preserve="all"/>
<type fullname="PlatformCallback" preserve="all"/> <type fullname="PlatformCallback" preserve="all"/>
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<assembly fullname="Newtonsoft.Json" preserve="all"/> <assembly fullname="Newtonsoft.Json" preserve="all"/>
<!-- mscorlib config --> <!-- mscorlib config -->
<assembly fullname="mscorlib"> <!-- <assembly fullname="mscorlib">
<type fullname="System.Collections.Generic.List`1" preserve="all"/> <type fullname="System.Collections.Generic.List`1" preserve="all"/>
<type fullname="System.Collections.Generic.Dictionary`2" preserve="all"/> <type fullname="System.Collections.Generic.Dictionary`2" preserve="all"/>
</assembly> </assembly> -->
</linker> </linker>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment