| | |
| | | maxTextureSize: 2048 |
| | | textureCompression: 1 |
| | | textureFormat: 50 |
| | | - folderName: Realm |
| | | blockOffset: 1 |
| | | enableRotation: 0 |
| | | enableTightPacking: 0 |
| | | padding: 4 |
| | | readable: 0 |
| | | generateMipMaps: 0 |
| | | sRGB: 1 |
| | | filterMode: 1 |
| | | platformSettings: |
| | | - name: Standalone |
| | | maxTextureSize: 2048 |
| | | textureCompression: 1 |
| | | textureFormat: 4 |
| | | - name: Android |
| | | maxTextureSize: 2048 |
| | | textureCompression: 1 |
| | | textureFormat: 50 |
| | | - name: iPhone |
| | | maxTextureSize: 2048 |
| | | textureCompression: 1 |
| | | textureFormat: 50 |
| | |
| | | {
|
| | | return StringUtility.Contact("public readonly int[][] ", field.Trim(), ";");
|
| | | }
|
| | | else if (type.Contains("Dictionary<int, int>"))
|
| | | {
|
| | | return StringUtility.Contact("public readonly Dictionary<int, int> ", field.Trim(), ";");
|
| | | }
|
| | | else if (type.Contains("Dictionary<int, int[]>"))
|
| | | {
|
| | | return StringUtility.Contact("public readonly Dictionary<int, int[]> ", field.Trim(), ";");
|
| | | }
|
| | | else if (type.Contains("float[][]"))
|
| | | {
|
| | | return StringUtility.Contact("public readonly float[][] ", field.Trim(), ";");
|
| | |
| | |
|
| | | public static string GetRead(string type, string field, int index)
|
| | | {
|
| | | |
| | | field = field.Replace(" ", "");
|
| | | if (type.Contains("int[][]"))
|
| | | {
|
| | | return StringUtility.Contact(field, " = JsonMapper.ToObject<int[][]>(tables", "[", index, "].Replace(\"(\", \"[\").Replace(\")\", \"]\")); ");
|
| | | }
|
| | | else if (type.Contains("Dictionary<int, int>"))
|
| | | {
|
| | | return StringUtility.Contact(field, " = ConfigParse.ParseIntDict(tables", "[", index, "]); ");
|
| | | }
|
| | | else if (type.Contains("Dictionary<int, int[]>"))
|
| | | {
|
| | | return StringUtility.Contact(field, " = ConfigParse.ParseIntArrayDict(tables", "[", index, "]); ");
|
| | | }
|
| | | else if (type.Contains("float[][]"))
|
| | | {
|
| | | return StringUtility.Contact(field, " = JsonMapper.ToObject<float[][]>(tables", "[", index, "].Replace(\"(\", \"[\").Replace(\")\", \"]\")); ");
|