├── .gitattributes ├── .gitignore ├── ClientTableDefine.cs ├── README.md ├── RawTable.cs ├── TextManager.cs ├── UI_Text.cs ├── UI_TextEditor.cs ├── csv └── CSVParser.cs ├── ini ├── Exceptions │ └── ParsingException.cs ├── Extensions │ └── RegexExtension.cs ├── IniFile.cs ├── Pair.cs └── Section.cs ├── makeTable.bat ├── makeTableNPOI.bat ├── tables ├── Achievement.xls ├── _TableConfig.xls ├── _TextConfig.xls ├── exportData.bat ├── exportDataNPOI.bat ├── exportText.bat ├── exportTextNPOI.bat ├── output │ ├── CH.bytes │ ├── DataDefine.cs │ ├── EN.bytes │ ├── FR.bytes │ ├── GM.bytes │ ├── IT.bytes │ ├── JP.bytes │ ├── KR.bytes │ ├── PT.bytes │ ├── RU.bytes │ ├── SP.bytes │ ├── TCN.bytes │ ├── TEXT_HEAD.bytes │ ├── TextDefine.cs │ ├── hash.txt │ ├── tAchievement.bytes │ └── tAchievement2.bytes └── text.xls └── tools ├── ClientDataTableHashExporter.exe ├── ClientDataTableHashExporter ├── ClientDataTableHashExporter.sln ├── ClientDataTableHashExporter.v11.suo └── ClientDataTableHashExporter │ ├── App.config │ ├── ClientDataTableHashExporter.csproj │ ├── ClientDataTableHashExporter.csproj.user │ ├── Program.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── obj │ ├── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ └── Release │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── ClientExcelExporter.exe ├── ClientExcelExporter ├── .vs │ └── ClientExcelExporter │ │ └── v15 │ │ ├── .suo │ │ └── Server │ │ └── sqlite3 │ │ ├── db.lock │ │ ├── storage.ide │ │ ├── storage.ide-shm │ │ └── storage.ide-wal ├── ClientExcelExporter.sln ├── ClientExcelExporter.suo ├── ClientExcelExporter │ ├── ClientExcelExporter.csproj │ ├── ClientExcelExporter.csproj.user │ ├── Microsoft.SqlServer.Replication.dll │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SingleExcelExport.cs │ ├── bin │ │ ├── Debug │ │ │ ├── BuildingStructure.xls │ │ │ ├── ClientExcelExporter.exe │ │ │ ├── ClientExcelExporter.pdb │ │ │ ├── ClientExcelExporter.vshost.exe │ │ │ ├── DataDefine.cs │ │ │ ├── Microsoft.SqlServer.Replication.dll │ │ │ ├── _TableConfig.xls │ │ │ ├── skillDefine.xls │ │ │ ├── tBuildingStructure.bytes │ │ │ ├── tSkillDefine.bytes │ │ │ ├── text.xls │ │ │ ├── textCutSence.xls │ │ │ └── zh-CHS │ │ │ │ └── Microsoft.SqlServer.Replication.resources.dll │ │ └── Release │ │ │ └── ClientExcelExporterNPOI.exe │ └── obj │ │ ├── Debug │ │ ├── ClientExcelExporter.csproj.FileListAbsolute.txt │ │ ├── ClientExcelExporter.exe │ │ └── ClientExcelExporter.pdb │ │ ├── Release │ │ ├── ClientExcelExporter.csproj.FileListAbsolute.txt │ │ ├── ClientExcelExporter.exe │ │ └── ClientExcelExporter.pdb │ │ └── x86 │ │ ├── Debug │ │ ├── ClientExcelExporter.csproj.CoreCompileInputs.cache │ │ ├── ClientExcelExporter.csproj.FileListAbsolute.txt │ │ ├── ClientExcelExporter.exe │ │ ├── ClientExcelExporter.pdb │ │ └── ResolveAssemblyReference.cache │ │ └── Release │ │ ├── ClientExcelExporter.csproj.CoreCompileInputs.cache │ │ ├── ClientExcelExporter.csproj.FileListAbsolute.txt │ │ └── ClientExcelExporter.exe └── ClientMultiTextExporter │ ├── ClientMultiLanguageTextExporter.cs │ ├── ClientMultiTextExporter.csproj │ ├── ClientMultiTextExporter.csproj.user │ ├── Program.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── SingleExcelExport.cs │ ├── bin │ └── Debug │ │ ├── ClientMultiTextExporter.exe │ │ ├── ClientMultiTextExporter.pdb │ │ ├── ClientMultiTextExporter.vshost.exe │ │ ├── EN.bytes │ │ ├── FR.bytes │ │ ├── IT.bytes │ │ ├── PT.bytes │ │ ├── SP.bytes │ │ ├── TEXT_HEAD.bytes │ │ ├── TextDefine.cs │ │ ├── _TextConfig.xls │ │ ├── text.xls │ │ └── text2.xls │ └── obj │ ├── Debug │ ├── ClientMultiTextExporter.csproj.FileListAbsolute.txt │ ├── ClientMultiTextExporter.exe │ └── ClientMultiTextExporter.pdb │ ├── Release │ └── ClientMultiTextExporter.csproj.CoreCompileInputs.cache │ └── x86 │ └── Debug │ ├── ClientMultiTextExporter.csproj.CoreCompileInputs.cache │ └── ClientMultiTextExporter.csprojAssemblyReference.cache ├── ClientExcelExporterNPOI.exe ├── ClientExcelExporterNPOI ├── .vs │ └── ClientExcelExporterNPOI │ │ └── v15 │ │ ├── .suo │ │ └── Server │ │ └── sqlite3 │ │ ├── db.lock │ │ ├── storage.ide │ │ ├── storage.ide-shm │ │ └── storage.ide-wal ├── ClientExcelExporterNPOI.sln ├── ClientExcelExporterNPOI │ ├── App.config │ ├── ClientExcelExporterNPOI.csproj │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SingleExcelExport.cs │ ├── bin │ │ ├── Debug │ │ │ ├── ClientExcelExporterNPOI.exe │ │ │ ├── ClientExcelExporterNPOI.exe.config │ │ │ ├── ClientExcelExporterNPOI.pdb │ │ │ ├── Ionic.Zip.dll │ │ │ └── NPOI.dll │ │ └── Release │ │ │ ├── ClientExcelExporterNPOI.exe │ │ │ ├── ClientExcelExporterNPOI.exe.config │ │ │ ├── ClientExcelExporterNPOI.pdb │ │ │ ├── Ionic.Zip.dll │ │ │ └── NPOI.dll │ └── obj │ │ ├── Debug │ │ ├── ClientExcelExporterNPOI.csproj.CopyComplete │ │ ├── ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache │ │ ├── ClientExcelExporterNPOI.csproj.FileListAbsolute.txt │ │ ├── ClientExcelExporterNPOI.csprojAssemblyReference.cache │ │ ├── ClientExcelExporterNPOI.exe │ │ ├── ClientExcelExporterNPOI.pdb │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── Release │ │ ├── ClientExcelExporterNPOI.csproj.CopyComplete │ │ ├── ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache │ │ ├── ClientExcelExporterNPOI.csproj.FileListAbsolute.txt │ │ ├── ClientExcelExporterNPOI.csprojAssemblyReference.cache │ │ ├── ClientExcelExporterNPOI.exe │ │ ├── ClientExcelExporterNPOI.pdb │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── ClientMultiTextExporterNPOI │ ├── App.config │ ├── ClientMultiLanguageTextExporter.cs │ ├── ClientMultiTextExporterNPOI.csproj │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SingleExcelExport.cs │ ├── bin │ │ ├── Debug │ │ │ ├── ClientMultiTextExporterNPOI.exe │ │ │ ├── ClientMultiTextExporterNPOI.exe.config │ │ │ ├── ClientMultiTextExporterNPOI.pdb │ │ │ ├── Ionic.Zip.dll │ │ │ └── NPOI.dll │ │ └── Release │ │ │ ├── ClientMultiTextExporterNPOI.exe │ │ │ ├── ClientMultiTextExporterNPOI.exe.config │ │ │ ├── ClientMultiTextExporterNPOI.pdb │ │ │ ├── Ionic.Zip.dll │ │ │ └── NPOI.dll │ └── obj │ │ ├── Debug │ │ ├── ClientMultiTextExporterNPOI.csproj.CopyComplete │ │ ├── ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache │ │ ├── ClientMultiTextExporterNPOI.csproj.FileListAbsolute.txt │ │ ├── ClientMultiTextExporterNPOI.csprojAssemblyReference.cache │ │ ├── ClientMultiTextExporterNPOI.exe │ │ ├── ClientMultiTextExporterNPOI.pdb │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── Release │ │ ├── ClientMultiTextExporterNPOI.csproj.CopyComplete │ │ ├── ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache │ │ ├── ClientMultiTextExporterNPOI.csproj.FileListAbsolute.txt │ │ ├── ClientMultiTextExporterNPOI.csprojAssemblyReference.cache │ │ ├── ClientMultiTextExporterNPOI.exe │ │ ├── ClientMultiTextExporterNPOI.pdb │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── Ionic.Zip.dll └── NPOI.dll ├── ClientMultiTextExporter.exe ├── ClientMultiTextExporterNPOI.exe ├── Ionic.Zip.dll └── NPOI.dll /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.meta -------------------------------------------------------------------------------- /ClientTableDefine.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | public abstract class TableData 6 | { 7 | // table 8 | protected RawTable mTableData; 9 | protected uint mHash = 0; 10 | static Dictionary s_hashDictionary = new Dictionary(); 11 | public static void Reset() 12 | { 13 | s_hashDictionary.Clear(); 14 | } 15 | static void CheckHash(string _path, uint _hash) 16 | { 17 | int key = _path.GetHashCode(); 18 | uint oldHash; 19 | if (s_hashDictionary.TryGetValue(key, out oldHash)) 20 | { 21 | if (oldHash != _hash) 22 | { 23 | Application.Quit(); 24 | } 25 | } 26 | else 27 | s_hashDictionary.Add(key, _hash); 28 | } 29 | 30 | public static uint ComputeHash(byte[] s) 31 | { 32 | uint h = 0; 33 | for (int i = s.Length - 1; i >= 0; --i) 34 | { 35 | h = (h << 5) - h + s[i]; 36 | } 37 | return h; 38 | } 39 | public static uint ComputeHash(char[] s) 40 | { 41 | uint h = 0; 42 | for (int i = s.Length - 1; i >= 0; --i) 43 | { 44 | h = (h << 5) - h + s[i]; 45 | } 46 | return h; 47 | } 48 | protected virtual uint GetHash() 49 | { 50 | return 0; 51 | } 52 | protected abstract string GetPath(); 53 | protected abstract void _ParseData(); 54 | 55 | public uint CheckHash() 56 | { 57 | uint hash = GetHash(); 58 | 59 | CheckHash(GetPath(), hash); 60 | 61 | return hash; 62 | } 63 | public void ReadTable() 64 | { 65 | if (mTableData == null) 66 | mTableData = new RawTable(); 67 | 68 | mTableData.readBinary(GetPath()); 69 | } 70 | public void ParseData() 71 | { 72 | _ParseData(); 73 | CheckHash(); 74 | mTableData = null; 75 | } 76 | } 77 | 78 | 79 | public class TableAchievementInfo : TableData 80 | { 81 | // file path 82 | public readonly string sFilePath = "tAchievement"; 83 | 84 | public const int RATE_ACHIEVEMENT_ID = 10000; 85 | public const int FB_ACHIEVEMENT_ID = 21; 86 | 87 | // data 88 | public class Data 89 | { 90 | public int mAchId; 91 | public string mTitle; 92 | public string mDetail; 93 | public string mIcon; 94 | public int mType; 95 | public int mConditionValue; 96 | public string mBonus; 97 | public string mProductId; 98 | 99 | public string GetTitle() 100 | { 101 | return TextManager.GetInstance().GetText(mTitle); 102 | } 103 | public string GetDetail() 104 | { 105 | return TextManager.GetInstance().GetText(mDetail); 106 | } 107 | } 108 | 109 | public Dictionary mData; 110 | 111 | protected override string GetPath() 112 | { 113 | return sFilePath; 114 | } 115 | 116 | protected override void _ParseData() 117 | { 118 | mData = new Dictionary(); 119 | bool parseBonusSuccess = true; 120 | for (int i=0; i mData; 174 | 175 | protected override string GetPath() 176 | { 177 | return sFilePath; 178 | } 179 | 180 | protected override void _ParseData() 181 | { 182 | mData = new Dictionary(); 183 | bool parseBonusSuccess = true; 184 | for (int i=0; i 67 | -------------------------------------------------------------------------------- /RawTable.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * RawDataTableReader 3 | * Cosmosliu: 2011-10-9 4 | * define basic data of a table 5 | */ 6 | using UnityEngine; 7 | using System.Collections; 8 | using System.Collections.Generic; 9 | using System.IO; 10 | using System.Text; 11 | using System; 12 | 13 | public class RawTable 14 | { 15 | static List s_hashTable; 16 | 17 | static List HashTable 18 | { 19 | get 20 | { 21 | if (s_hashTable == null) 22 | { 23 | s_hashTable = new List(); 24 | TextAsset text = null; 25 | // #if UNITY_EDITOR 26 | // if (Constants.USE_ASSETBUNDLE) 27 | // { 28 | // text = ResourceLibrary.instance.Load(AssetBundleManager.EBundleType.eDat, "hash") as TextAsset; 29 | // } 30 | // else 31 | // { 32 | // text = (TextAsset)UnityEditor.AssetDatabase.LoadAssetAtPath("Assets/Resources/dat/hash.txt", typeof(TextAsset)); 33 | // } 34 | // #else 35 | // text = ResourceLibrary.instance.Load(AssetBundleManager.EBundleType.eDat, "hash") as TextAsset; 36 | // #endif 37 | string[] hashList = text.text.Split(new char[] { '#' }, StringSplitOptions.RemoveEmptyEntries); 38 | foreach (string hash in hashList) 39 | { 40 | ulong uint_hash = ulong.Parse(hash); 41 | s_hashTable.Add(~uint_hash); 42 | } 43 | 44 | } 45 | return s_hashTable; 46 | } 47 | } 48 | public static ulong GetHash(int index) 49 | { 50 | return ~s_hashTable[index]; 51 | } 52 | 53 | public string[,] _data; 54 | public int _nRows; 55 | public int _nColumns; 56 | 57 | //read binary data 58 | public void readBinary(string tableName) 59 | { 60 | ClearData(); 61 | 62 | TextAsset binaryStream = null; 63 | 64 | // #if UNITY_EDITOR 65 | // if (Constants.USE_ASSETBUNDLE) 66 | // { 67 | // binaryStream = ResourceLibrary.instance.Load(AssetBundleManager.EBundleType.eDat, tableName) as TextAsset; 68 | // } 69 | // else 70 | // { 71 | // binaryStream = (TextAsset)UnityEditor.AssetDatabase.LoadAssetAtPath("Assets/Resources/dat/"+tableName+".bytes", typeof(TextAsset)); 72 | // } 73 | // #else 74 | // binaryStream = ResourceLibrary.instance.Load(AssetBundleManager.EBundleType.eDat, tableName) as TextAsset; 75 | // #endif 76 | 77 | if (binaryStream == null) 78 | { 79 | Debug.Log("Error reading table:" + tableName); 80 | return; 81 | } 82 | if (!HashTable.Contains(~ComputeHash(binaryStream.bytes))) 83 | { 84 | Application.Quit(); 85 | } 86 | 87 | byte[] bytes = TEA.decode(binaryStream.bytes); 88 | 89 | MemoryStream ms = new MemoryStream(bytes); 90 | BinaryReader br = new BinaryReader(ms, Encoding.Unicode); 91 | 92 | int columns = 0, rows = 0; 93 | rows = br.ReadInt32(); 94 | columns = br.ReadInt32(); 95 | 96 | _nRows = rows; 97 | _nColumns = columns; 98 | 99 | if(_nRows == 0 || _nColumns==0) 100 | Debug.Log("Error reading tablesize Rows is "+_nRows.ToString()+" and _nColumns is "+_nColumns.ToString()+"."); 101 | _data = new string[_nRows, _nColumns]; 102 | for (int i = 0; i < rows; i++) 103 | { 104 | for (int j = 0; j < columns; j++) 105 | { 106 | _data[i,j] = br.ReadString(); 107 | } 108 | } 109 | } 110 | 111 | public string GetStr(int row, int column) 112 | { 113 | if (row < _nRows && column < _nColumns) 114 | return _data[row,column]; 115 | else 116 | { 117 | Debug.Log("Error reading Row: "+row.ToString()+" Columns: "+column.ToString()+"."); 118 | return string.Empty; 119 | } 120 | } 121 | 122 | public int GetInt(int row, int column) 123 | { 124 | string result = GetStr(row, column); 125 | if (result != string.Empty) 126 | { 127 | return int.Parse(result); 128 | } 129 | else 130 | { 131 | Debug.Log("Error when try int.parse in Row: "+row.ToString()+" Columns: "+column.ToString()+"."); 132 | return 0; 133 | } 134 | } 135 | 136 | public short GetShort(int row, int column) 137 | { 138 | string result = GetStr(row, column); 139 | if (result != string.Empty) 140 | { 141 | return short.Parse(result); 142 | } 143 | else 144 | { 145 | Debug.Log("Error when try short.parse in Row: "+row.ToString()+" Columns: "+column.ToString()+"."); 146 | return 0; 147 | } 148 | } 149 | 150 | public byte GetByte(int row, int column) 151 | { 152 | string result = GetStr(row, column); 153 | if (result != string.Empty) 154 | { 155 | return byte.Parse(result); 156 | } 157 | else 158 | { 159 | Debug.Log("Error when try byte.parse in Row: "+row.ToString()+" Columns: "+column.ToString()+"."); 160 | return 0; 161 | } 162 | } 163 | 164 | public float GetFloat(int row, int column) 165 | { 166 | string result = GetStr(row, column); 167 | if (result != string.Empty) 168 | { 169 | return float.Parse(result); 170 | } 171 | else 172 | { 173 | Debug.Log("Error when try float.parse in Row: "+row.ToString()+" Columns: "+column.ToString()+"."); 174 | return 0; 175 | } 176 | } 177 | 178 | public void ClearData() 179 | { 180 | _data = null; 181 | } 182 | 183 | ulong ComputeHash(byte[] s) 184 | { 185 | ulong hash = 0x9A9AA99A; 186 | for (int i = 0; i < s.Length; i++) 187 | { 188 | if ((i & 1) == 0) 189 | { 190 | hash ^= ((hash << 7) ^ s[i] ^ (hash >> 3)); 191 | } 192 | else 193 | { 194 | hash ^= (~((hash << 11) ^ s[i] ^ (hash >> 5))); 195 | } 196 | } 197 | return hash; 198 | } 199 | } 200 | 201 | class TEA 202 | { 203 | readonly static uint[] KP = 204 | { 205 | 0x243F6A88, 0x95A308D3, 0x13198A2E, 0x03707344, 206 | 0xA4093832, 0x299F31D0, 0x082EFA98, 0xEC7E6C89, 207 | 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6D, 208 | 0xC0AC29B7, 0xC97A50DD, 0x3F84D4B5, 0xB5470917, 209 | 0x9216D5D9, 0x7979FB1B 210 | }; 211 | 212 | static void code(uint y, uint z, uint[] k, out uint o1, out uint o2) 213 | { 214 | uint sum = 0; 215 | uint delta = 0x9e3779b9; 216 | uint n = 32; 217 | 218 | while (n-- > 0) 219 | { 220 | y += (z << 4 ^ z >> 5) + z ^ sum + k[(sum & 3) % k.Length]; 221 | sum += delta; 222 | z += (y << 4 ^ y >> 5) + y ^ sum + k[(sum >> 11 & 3) % k.Length]; 223 | } 224 | 225 | o1 = y; 226 | o2 = z; 227 | } 228 | static void decode(uint y, uint z, uint[] k, out uint o1, out uint o2) 229 | { 230 | uint n = 32; 231 | uint sum; 232 | uint delta = 0x9e3779b9; 233 | 234 | sum = delta << 5; 235 | 236 | while (n-- > 0) 237 | { 238 | z -= (y << 4 ^ y >> 5) + y ^ sum + k[(sum >> 11 & 3) % k.Length]; 239 | sum -= delta; 240 | y -= (z << 4 ^ z >> 5) + z ^ sum + k[(sum & 3) % k.Length]; 241 | } 242 | 243 | o1 = y; 244 | o2 = z; 245 | } 246 | 247 | public static byte[] code(byte[] input) 248 | { 249 | byte[] output = new byte[8 * (1 + (input.Length - 1) / 8)]; 250 | for (int i = 0; i < input.Length; i += 8) 251 | { 252 | uint y = byteToUint(input, i); 253 | uint z = byteToUint(input, i + 4); 254 | uint o1, o2; 255 | code(y, z, KP, out o1, out o2); 256 | uintToByte(o1, output, i); 257 | uintToByte(o2, output, i + 4); 258 | } 259 | return output; 260 | } 261 | public static byte[] decode(byte[] input) 262 | { 263 | byte[] output = new byte[input.Length]; 264 | for (int i = 0; i < input.Length; i += 8) 265 | { 266 | uint y = byteToUint(input, i); 267 | uint z = byteToUint(input, i + 4); 268 | uint o1, o2; 269 | decode(y, z, KP, out o1, out o2); 270 | uintToByte(o1, output, i); 271 | uintToByte(o2, output, i + 4); 272 | } 273 | return output; 274 | } 275 | 276 | static uint byteToUint(byte[] input, int index) 277 | { 278 | uint output = 0; 279 | if (index < input.Length) 280 | output += ((uint)input[index++]); 281 | if (index < input.Length) 282 | output += ((uint)input[index++] << 8); 283 | if (index < input.Length) 284 | output += ((uint)input[index++] << 16); 285 | if (index < input.Length) 286 | output += ((uint)input[index++] << 24); 287 | return output; 288 | } 289 | 290 | static void uintToByte(uint input, byte[] output, int index) 291 | { 292 | if (index < output.Length) 293 | output[index++] = ((byte)((input & 0xFF))); 294 | if (index < output.Length) 295 | output[index++] = ((byte)((input >> 8) & 0xFF)); 296 | if (index < output.Length) 297 | output[index++] = ((byte)((input >> 16) & 0xFF)); 298 | if (index < output.Length) 299 | output[index++] = ((byte)((input >> 24) & 0xFF)); 300 | } 301 | } -------------------------------------------------------------------------------- /TextManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Text; 6 | 7 | public class TextManager 8 | { 9 | public enum LANGUAGE{ 10 | EN = 0, 11 | FR, 12 | SP, 13 | PT, 14 | IT, 15 | GM, 16 | RU, 17 | CN, 18 | JP, 19 | KR, 20 | TCN, 21 | NA, 22 | }; 23 | 24 | public const int LANGUAGE_COUNT = 11; 25 | static string HEADERNAME = "TEXT_HEAD"; 26 | 27 | // Should not changed, it is also used in the protocol: GetUserInfoRequest 28 | public static string[] FILENAME = new string[11]{ 29 | "EN", 30 | "FR", 31 | "SP", 32 | "PT", 33 | "IT", 34 | "GM", 35 | "RU", 36 | "CH", 37 | "JP", 38 | "KR", 39 | "TCN",}; 40 | 41 | public static bool USE_EASTEN_CHARACTER = false; 42 | 43 | public LANGUAGE currentLanguage; 44 | 45 | string[] texts; 46 | int textsCount; 47 | Dictionary headerDictionary = new Dictionary(); 48 | 49 | private bool mHasLoadHeader; 50 | private LANGUAGE mCurrentLoadedLanguage; 51 | 52 | static TextManager instance; 53 | 54 | public static TextManager GetInstance() 55 | { 56 | if (instance == null) 57 | { 58 | instance = new TextManager(); 59 | } 60 | return instance; 61 | } 62 | 63 | private TextManager() 64 | { 65 | currentLanguage = LANGUAGE.NA; 66 | Clear(); 67 | } 68 | 69 | public int GetTextCount(){return textsCount;} 70 | 71 | public void Clear() 72 | { 73 | mHasLoadHeader = false; 74 | mCurrentLoadedLanguage = LANGUAGE.NA; 75 | USE_EASTEN_CHARACTER = false; 76 | } 77 | 78 | private void LoadHeader() 79 | { 80 | bool result = ReadTextFile(HEADERNAME); 81 | 82 | if (result) 83 | { 84 | headerDictionary.Clear(); 85 | for (int i=0; i=0 && _id < textsCount) 243 | { 244 | return texts[_id]; 245 | } 246 | else 247 | { 248 | return string.Empty; 249 | } 250 | } 251 | 252 | public string GetText(string _key) 253 | { 254 | if (_key == null || _key == string.Empty) return string.Empty; 255 | int _id = -1; 256 | if(!headerDictionary.TryGetValue(_key, out _id)) 257 | { 258 | return _key; 259 | } 260 | return GetText(_id); 261 | } 262 | 263 | public Dictionary GetTextHeader() 264 | { 265 | return headerDictionary; 266 | } 267 | 268 | bool ReadTextFile(string filename) 269 | { 270 | filename = "dat/" + filename; 271 | TextAsset binaryStream = (TextAsset)Resources.Load(filename); 272 | MemoryStream ms = new MemoryStream(binaryStream.bytes); 273 | BinaryReader br = new BinaryReader(ms, Encoding.Unicode); 274 | 275 | int rows = 0; 276 | rows = br.ReadInt32(); 277 | if(rows == 0) 278 | { 279 | Debug.LogError("Error reading tablesize "+filename); 280 | return false; 281 | } 282 | 283 | textsCount = rows; 284 | texts = new string[textsCount]; 285 | for (int i = 0; i < textsCount; i++) 286 | { 287 | texts[i] = br.ReadString(); 288 | //Debug.LogError ("filename " + texts[i]); 289 | } 290 | #if !UNITY_METRO 291 | br.Close(); 292 | #endif 293 | return true; 294 | } 295 | 296 | 297 | bool ReadTextFileAssetBundle(AssetBundle assetBundle, string filename) 298 | { 299 | TextAsset binaryStream = (TextAsset)assetBundle.LoadAsset(filename); 300 | MemoryStream ms = new MemoryStream(binaryStream.bytes); 301 | BinaryReader br = new BinaryReader(ms, Encoding.Unicode); 302 | 303 | int rows = 0; 304 | rows = br.ReadInt32(); 305 | if(rows == 0) 306 | { 307 | Debug.LogError("Error reading tablesize "+filename); 308 | return false; 309 | } 310 | 311 | textsCount = rows; 312 | texts = new string[textsCount]; 313 | for (int i = 0; i < textsCount; i++) 314 | { 315 | texts[i] = br.ReadString(); 316 | } 317 | #if !UNITY_METRO 318 | br.Close(); 319 | #endif 320 | 321 | return true; 322 | } 323 | } -------------------------------------------------------------------------------- /UI_Text.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | // UI_FontNum.cs 8 | // Author: Lu Zexi 9 | // 2015-03-31 10 | 11 | 12 | //font num 13 | [AddComponentMenu("UI/UI Text")] 14 | [RequireComponent (typeof(Text))] 15 | public class UI_Text : MonoBehaviour 16 | { 17 | public string mTextStr; 18 | private Text mText; 19 | 20 | void Awake() 21 | { 22 | this.mText = this.GetComponent(); 23 | SetText (this.mTextStr); 24 | } 25 | 26 | public void SetText(string _str) 27 | { 28 | if(this.mText == null) 29 | { 30 | this.mText = this.GetComponent(); 31 | } 32 | string txt = TextManager.instance.GetText(_str); 33 | Debug.Log("txt " + txt + " " +_str); 34 | if(txt != null && txt != string.Empty) 35 | { 36 | this.mText.text = txt; 37 | } 38 | else 39 | { 40 | this.mText.text = _str; 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /UI_TextEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | using UnityEngine.EventSystems; 5 | using System; 6 | using System.Reflection; 7 | using System.Collections; 8 | using System.Collections.Generic; 9 | 10 | [CustomEditor(typeof(UI_Text))] 11 | public class UI_TextEditor : Editor 12 | { 13 | // private int mTextID; 14 | private string mTextStr; 15 | 16 | void OnEnable () 17 | { 18 | serializedObject.Update(); 19 | UI_Text text = target as UI_Text; 20 | // this.mTextID = text.mTextID; 21 | this.mTextStr = text.mTextStr; 22 | } 23 | 24 | // [MenuItem("GameObject/UI/UIText")] 25 | // static void CreateUIText() 26 | // { 27 | // Type[] types = new Type[]{typeof(Text),typeof(UI_Text)}; 28 | // GameObject obj = EditorUtility.CreateGameObjectWithHideFlags("Text",HideFlags.None,types); 29 | // // 30 | // } 31 | 32 | // [InitializeOnLoadMethod] 33 | // static void StartInitializeOnLoadMethod() 34 | // { 35 | // EditorApplication.hierarchyWindowItemOnGUI += OnHierarchyGUI; 36 | // } 37 | 38 | // static void OnHierarchyGUI(int instanceID, Rect selectionRect) 39 | // { 40 | // Event evt = Event.current; 41 | // // Debug.LogError("kkk " + evt.button + " " + evt.type); 42 | // if (evt != null && selectionRect.Contains(evt.mousePosition) 43 | // && evt.button == 1 && evt.type == EventType.MouseDown) 44 | // { 45 | // Debug.LogError("in"); 46 | // GameObject selectedGameObject = EditorUtility.InstanceIDToObject(instanceID) as GameObject; 47 | // //这里可以判断selectedGameObject的条件 48 | // if (selectedGameObject) 49 | // { 50 | // Debug.LogError("in2"); 51 | // Vector2 mousePosition = Event.current.mousePosition; 52 | 53 | // EditorUtility.DisplayPopupMenu(new Rect(mousePosition.x, mousePosition.y, 0, 0), "GameObject/",null); 54 | // evt.Use(); 55 | // } 56 | // } 57 | // } 58 | 59 | public override void OnInspectorGUI() 60 | { 61 | serializedObject.Update(); 62 | UI_Text text = target as UI_Text; 63 | text.mTextStr = EditorGUILayout.TextField("Text",text.mTextStr); 64 | if (this.mTextStr != text.mTextStr) 65 | { 66 | this.mTextStr = text.mTextStr; 67 | // TextManager.instance.LoadLanguage(TextManager.CN); 68 | // text.SetText(text.mTextStr); 69 | } 70 | if(GUILayout.Button("Change text")) 71 | { 72 | TextManager.instance.LoadLanguage(TextManager.LANGUAGE.CN); 73 | text.SetText(text.mTextStr); 74 | } 75 | serializedObject.ApplyModifiedProperties(); 76 | } 77 | } 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /csv/CSVParser.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | 6 | // CSV.cs 7 | // Author: Lu Zexi 8 | // 2013-11-13 9 | 10 | 11 | 12 | //csv parse 13 | public class CSVParser 14 | { 15 | //parse csv from row 3. 16 | public static List ParseFromRow2(string csvText) 17 | { 18 | string[,] vecStr = Parse(csvText); 19 | List lst = new List(); 20 | 21 | for (int j = 2; j < vecStr.GetLength(1)-2; j++) 22 | { 23 | for (int i = 0; i < vecStr.GetLength(0)-2; i++) 24 | { 25 | lst.Add(vecStr[i, j]); 26 | } 27 | } 28 | return lst; 29 | } 30 | 31 | // splits a CSV file into a 2D string array 32 | public static string[,] Parse(string csvText) 33 | { 34 | string[] lines = csvText.Split("\n"[0]); 35 | 36 | // finds the max width of row 37 | int width = 0; 38 | for (int i = 0; i < lines.Length; i++) 39 | { 40 | string[] row = SplitCsvLine(lines[i]); 41 | width = Mathf.Max(width, row.Length); 42 | } 43 | 44 | // creates new 2D string grid to output to 45 | string[,] outputGrid = new string[width + 1, lines.Length + 1]; 46 | for (int y = 0; y < lines.Length; y++) 47 | { 48 | string[] row = SplitCsvLine(lines[y]); 49 | for (int x = 0; x < row.Length; x++) 50 | { 51 | outputGrid[x, y] = row[x]; 52 | 53 | // This line was to replace "" with " in my output. 54 | // Include or edit it as you wish. 55 | outputGrid[x, y] = outputGrid[x, y].Replace("\"\"", "\""); 56 | } 57 | } 58 | 59 | return outputGrid; 60 | } 61 | 62 | //split csv line 63 | public static string[] SplitCsvLine(string line) 64 | { 65 | return (from System.Text.RegularExpressions.Match m in System.Text.RegularExpressions.Regex.Matches(line, 66 | @"(((?(?=[,\r\n]+))|""(?([^""]|"""")+)""|(?[^,\r\n]+)),?)", 67 | System.Text.RegularExpressions.RegexOptions.ExplicitCapture) 68 | select m.Groups[1].Value).ToArray(); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /ini/Exceptions/ParsingException.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | 4 | namespace IniSharp.Exceptions 5 | { 6 | internal class ParsingException : Exception 7 | { 8 | public ParsingException() 9 | { 10 | } 11 | 12 | public ParsingException(string message) 13 | : base(message) 14 | { 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /ini/Extensions/RegexExtension.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Text.RegularExpressions; 3 | 4 | namespace IniSharp.Extension 5 | { 6 | static class RegexExtension 7 | { 8 | public static string GetGroupValue(this Regex regex, string input,int index) 9 | { 10 | return regex.Match(input).Groups[index].Value; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ini/IniFile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Runtime.InteropServices; 6 | using System.Text.RegularExpressions; 7 | using IniSharp.Exceptions; 8 | using IniSharp.Extension; 9 | 10 | namespace IniSharp 11 | { 12 | internal class IniFile 13 | { 14 | // [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); 15 | 16 | 17 | private static string _path; 18 | private const string CommentChar = ";"; 19 | 20 | private static readonly Regex SectionRegex = new Regex(@"\[(.+?)\]"); 21 | private static readonly Regex PairRegex = new Regex(@"^(.+?)=(.*?)$"); 22 | 23 | public List
Sections { get; private set; } 24 | 25 | public IniFile(string path) 26 | { 27 | Sections = new List
(); 28 | _path = Path.IsPathRooted(path) ? path : Path.Combine(Environment.CurrentDirectory, path); 29 | if (File.Exists(_path)) 30 | { 31 | ProcessFile(); 32 | } 33 | else 34 | { 35 | File.Create(_path).Close(); 36 | } 37 | } 38 | 39 | public void Write(string section, string key, string newValue) 40 | { 41 | // WritePrivateProfileString(section, key, newValue, _path); 42 | var sp = new Stopwatch();sp.Start(); 43 | ProcessFile(); 44 | sp.Stop();Console.Write(sp.Elapsed.ToString()); 45 | } 46 | 47 | private void ProcessFile() 48 | { 49 | using (var reader = new StreamReader(_path)) 50 | { 51 | string line; 52 | 53 | var section = new Section(); 54 | 55 | while ((line = reader.ReadLine()) != null) 56 | { 57 | if (line.StartsWith(CommentChar)) continue; 58 | if (String.IsNullOrEmpty(line)) continue; 59 | 60 | var isSection = SectionRegex.IsMatch(line); 61 | var isPair = PairRegex.IsMatch(line); 62 | if (!isSection && !isPair) throw new ParsingException(); 63 | 64 | if (isSection) 65 | { 66 | if (section.Pairs.Count != 0) Sections.Add(section); 67 | section = new Section(SectionRegex.Match(line).Groups[1].Value); 68 | } 69 | 70 | if (isPair) 71 | { 72 | var pair = new Pair(PairRegex.GetGroupValue(line, 1), PairRegex.GetGroupValue(line, 2)); 73 | section.Pairs.Add(pair); 74 | } 75 | 76 | } 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /ini/Pair.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace IniSharp 3 | { 4 | using System; 5 | 6 | class Pair 7 | { 8 | public string Key { get; set; } 9 | public string Value { get; set; } 10 | 11 | public Pair() 12 | { 13 | 14 | } 15 | public Pair(string key, string value) 16 | { 17 | Key = key; 18 | Value = value; 19 | } 20 | 21 | public override string ToString() 22 | { 23 | return String.Format("{0}={1}", Key, Value); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ini/Section.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace IniSharp 4 | { 5 | 6 | using System; 7 | using System.Collections.Generic; 8 | 9 | class Section 10 | { 11 | public string Key { get; set; } 12 | public List Pairs { get; set; } 13 | 14 | public Section() 15 | { 16 | Pairs = new List(); 17 | } 18 | public Section(string key) : this() 19 | { 20 | Key = key; 21 | } 22 | 23 | public Section(string key, List pairs) 24 | { 25 | Key = key; 26 | Pairs = pairs; 27 | } 28 | 29 | public override string ToString() 30 | { 31 | return String.Format("Key: {0} Pairs: Count = {1}", Key, Pairs.Count); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /makeTable.bat: -------------------------------------------------------------------------------- 1 | IF NOT EXIST tables/output GOTO :MAKEOUTPUTDIR 2 | cd tables/output 3 | del *.bytes 4 | del *.cs 5 | cd .. 6 | cd .. 7 | GOTO EXPORTSTUFF 8 | 9 | :MAKEOUTPUTDIR 10 | cd tables 11 | md output 12 | cd .. 13 | 14 | :EXPORTSTUFF 15 | cd tables 16 | call exportData.bat 17 | call exportText.bat 18 | cd .. 19 | 20 | 21 | @echo off 22 | setlocal enabledelayedexpansion 23 | set fn=.\tables\output\TextDefine.cs 24 | set n=3 25 | (for /f "tokens=*" %%i in ('type "%fn%"') do ( 26 | set /a m+=1 27 | if !m!==%n% (echo public class TText{) else echo %%i))>TextDefine.cs 28 | move /y TextDefine.cs "%fn%" 29 | @echo on 30 | 31 | :: copy .\tables\output\*.cs .\project\Assets\scripts\dataTable\ /y 32 | :: copy .\tables\output\*.bytes .\project\Assets\Resources\dat\ /y 33 | 34 | :: .\tools\ClientDataTableHashExporter.exe .\project\Assets\Resources\dat\ 35 | .\tools\ClientDataTableHashExporter.exe .\tables\output\ 36 | 37 | pause -------------------------------------------------------------------------------- /makeTableNPOI.bat: -------------------------------------------------------------------------------- 1 | IF NOT EXIST tables/output GOTO :MAKEOUTPUTDIR 2 | cd tables/output 3 | del *.bytes 4 | del *.cs 5 | cd .. 6 | cd .. 7 | GOTO EXPORTSTUFF 8 | 9 | :MAKEOUTPUTDIR 10 | cd tables 11 | md output 12 | cd .. 13 | 14 | :EXPORTSTUFF 15 | cd tables 16 | call exportDataNPOI.bat 17 | call exportTextNPOI.bat 18 | cd .. 19 | 20 | 21 | @echo off 22 | setlocal enabledelayedexpansion 23 | set fn=.\tables\output\TextDefine.cs 24 | set n=3 25 | (for /f "tokens=*" %%i in ('type "%fn%"') do ( 26 | set /a m+=1 27 | if !m!==%n% (echo public class TText{) else echo %%i))>TextDefine.cs 28 | move /y TextDefine.cs "%fn%" 29 | @echo on 30 | 31 | :: copy .\tables\output\*.cs .\project\Assets\scripts\dataTable\ /y 32 | :: copy .\tables\output\*.bytes .\project\Assets\Resources\dat\ /y 33 | 34 | :: .\tools\ClientDataTableHashExporter.exe .\project\Assets\Resources\dat\ 35 | .\tools\ClientDataTableHashExporter.exe .\tables\output\ 36 | 37 | pause -------------------------------------------------------------------------------- /tables/Achievement.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/Achievement.xls -------------------------------------------------------------------------------- /tables/_TableConfig.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/_TableConfig.xls -------------------------------------------------------------------------------- /tables/_TextConfig.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/_TextConfig.xls -------------------------------------------------------------------------------- /tables/exportData.bat: -------------------------------------------------------------------------------- 1 | ..\tools\ClientExcelExporter .\_TableConfig Sheet1 .\ .\output\ .\output\ -------------------------------------------------------------------------------- /tables/exportDataNPOI.bat: -------------------------------------------------------------------------------- 1 | ..\tools\ClientExcelExporterNPOI .\_TableConfig Sheet1 .\ .\output\ .\output\ -------------------------------------------------------------------------------- /tables/exportText.bat: -------------------------------------------------------------------------------- 1 | ..\tools\ClientMultiTextExporter .\_TextConfig Sheet1 .\ .\output\ .\output\ -------------------------------------------------------------------------------- /tables/exportTextNPOI.bat: -------------------------------------------------------------------------------- 1 | ..\tools\ClientMultiTextExporterNPOI .\_TextConfig Sheet1 .\ .\output\ .\output\ -------------------------------------------------------------------------------- /tables/output/CH.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/CH.bytes -------------------------------------------------------------------------------- /tables/output/DataDefine.cs: -------------------------------------------------------------------------------- 1 | //This file is generated by tools! 2 | //Please do not modify this file! 3 | public class DataDefine { 4 | 5 | public const int Achievement_Achievement_achId = 0; 6 | public const int Achievement_Achievement_title = 1; 7 | public const int Achievement_Achievement_desc = 2; 8 | public const int Achievement_Achievement_icon = 3; 9 | public const int Achievement_Achievement_cond1_type = 4; 10 | public const int Achievement_Achievement_cond1_value = 5; 11 | public const int Achievement_Achievement_cond1_bonus = 6; 12 | public const int Achievement_Achievement_cond2_type = 7; 13 | public const int Achievement_Achievement_cond2_value = 8; 14 | public const int Achievement_Achievement_cond2_bonus = 9; 15 | public const int Achievement_Achievement_cond3_type = 10; 16 | public const int Achievement_Achievement_cond3_value = 11; 17 | public const int Achievement_Achievement_cond3_bonus = 12; 18 | public const int Achievement_Achievement_all_finishd_bonus = 13; 19 | public const int Achievement_Achievement_productId = 14; 20 | public const int Achievement_Achievement2_achId = 0; 21 | public const int Achievement_Achievement2_title = 1; 22 | public const int Achievement_Achievement2_desc = 2; 23 | public const int Achievement_Achievement2_icon = 3; 24 | public const int Achievement_Achievement2_cond1_type = 4; 25 | public const int Achievement_Achievement2_cond1_value = 5; 26 | public const int Achievement_Achievement2_cond1_bonus = 6; 27 | public const int Achievement_Achievement2_cond2_type = 7; 28 | public const int Achievement_Achievement2_cond2_value = 8; 29 | public const int Achievement_Achievement2_cond2_bonus = 9; 30 | public const int Achievement_Achievement2_cond3_type = 10; 31 | public const int Achievement_Achievement2_cond3_value = 11; 32 | public const int Achievement_Achievement2_cond3_bonus = 12; 33 | public const int Achievement_Achievement2_all_finishd_bonus = 13; 34 | public const int Achievement_Achievement2_productId = 14; 35 | 36 | } -------------------------------------------------------------------------------- /tables/output/EN.bytes: -------------------------------------------------------------------------------- 1 | SuccessWrong password -------------------------------------------------------------------------------- /tables/output/FR.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/FR.bytes -------------------------------------------------------------------------------- /tables/output/GM.bytes: -------------------------------------------------------------------------------- 1 |  Erfolg"Falsches Passwort -------------------------------------------------------------------------------- /tables/output/IT.bytes: -------------------------------------------------------------------------------- 1 | SuccessoPassword errata -------------------------------------------------------------------------------- /tables/output/JP.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/JP.bytes -------------------------------------------------------------------------------- /tables/output/KR.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/KR.bytes -------------------------------------------------------------------------------- /tables/output/PT.bytes: -------------------------------------------------------------------------------- 1 | SucessoSenha incorreta -------------------------------------------------------------------------------- /tables/output/RU.bytes: -------------------------------------------------------------------------------- 1 |  2 | #A?5E525@=K9 ?0@>;L -------------------------------------------------------------------------------- /tables/output/SP.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/SP.bytes -------------------------------------------------------------------------------- /tables/output/TCN.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/TCN.bytes -------------------------------------------------------------------------------- /tables/output/TEXT_HEAD.bytes: -------------------------------------------------------------------------------- 1 | SUCCESS(LOGIN_PASSWORD_WRONG -------------------------------------------------------------------------------- /tables/output/TextDefine.cs: -------------------------------------------------------------------------------- 1 | //This file is generated by tools 2 | //Please do not modify this file 3 | public class TText{ 4 | public const int SUCCESS = 0; 5 | public const int LOGIN_PASSWORD_WRONG = 1; 6 | } 7 | -------------------------------------------------------------------------------- /tables/output/hash.txt: -------------------------------------------------------------------------------- 1 | 1775918571#18411835012045377687#2538513926586811301# -------------------------------------------------------------------------------- /tables/output/tAchievement.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/tAchievement.bytes -------------------------------------------------------------------------------- /tables/output/tAchievement2.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/output/tAchievement2.bytes -------------------------------------------------------------------------------- /tables/text.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tables/text.xls -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter.exe -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientDataTableHashExporter", "ClientDataTableHashExporter\ClientDataTableHashExporter.csproj", "{37A2A01E-89A3-4C22-A6A1-8646F1897A1D}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {37A2A01E-89A3-4C22-A6A1-8646F1897A1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {37A2A01E-89A3-4C22-A6A1-8646F1897A1D}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {37A2A01E-89A3-4C22-A6A1-8646F1897A1D}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {37A2A01E-89A3-4C22-A6A1-8646F1897A1D}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter.v11.suo -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/ClientDataTableHashExporter.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {37A2A01E-89A3-4C22-A6A1-8646F1897A1D} 8 | Exe 9 | Properties 10 | ClientDataTableHashExporter 11 | ClientDataTableHashExporter 12 | v4.5 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 58 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/ClientDataTableHashExporter.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | c:\Hero_binary\project\Assets\Resources\dat\ 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/Program.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using System; 4 | using System.Text; 5 | 6 | namespace ClientDataTableHashExporter 7 | { 8 | class Program 9 | { 10 | static void Main(string[] args) 11 | { 12 | string path = args[0]; 13 | ulong hash = 0; 14 | List files = SearchDir(path, "*.*"); 15 | List crcList = new List(); 16 | foreach (string fullname in files) 17 | { 18 | FileInfo fi = new FileInfo(fullname); 19 | string filename = fi.Name; 20 | //Console.WriteLine(filename); 21 | if (filename.StartsWith("t") && filename.EndsWith(".bytes")) 22 | { 23 | ulong crc = ComputeHash(File.ReadAllBytes(fullname)); 24 | hash += crc; 25 | crcList.Add(crc.ToString()); 26 | //Console.WriteLine(filename + " " + crc); 27 | } 28 | } 29 | hash = ComputeHash(hash.ToString().ToCharArray()); 30 | StringBuilder sb = new StringBuilder(); 31 | sb.Append(hash); 32 | sb.Append("#"); 33 | foreach (string crc in crcList) 34 | { 35 | sb.Append(crc); 36 | sb.Append("#"); 37 | } 38 | File.WriteAllText(Path.Combine(path, "hash.txt"), sb.ToString()); 39 | } 40 | static List SearchDir(string path, string searchFor) 41 | { 42 | List result = new List(); 43 | string[] directories = Directory.GetDirectories(path); 44 | for (int i = 0; i < directories.Length; ++i) 45 | { 46 | result.AddRange(SearchDir(directories[i], searchFor)); 47 | } 48 | result.AddRange(Directory.GetFiles(path, searchFor)); 49 | 50 | return result; 51 | } 52 | static uint ComputeHash(char[] s) 53 | { 54 | uint h = 0; 55 | for (int i = s.Length - 1; i >= 0; --i) 56 | { 57 | h = (h << 5) - h + s[i]; 58 | } 59 | return h; 60 | } 61 | static ulong ComputeHash(byte[] s) 62 | { 63 | ulong hash = 0x9A9AA99A; 64 | for (int i = 0; i < s.Length; i++) 65 | { 66 | if ((i & 1) == 0) 67 | { 68 | hash ^= ((hash << 7) ^ s[i] ^ (hash >> 3)); 69 | } 70 | else 71 | { 72 | hash ^= (~((hash << 11) ^ s[i] ^ (hash >> 5))); 73 | } 74 | } 75 | return hash; 76 | } 77 | 78 | #if false 79 | static uint[] CRC32Table = null; 80 | static void MakeCRC32Table() 81 | { 82 | if (CRC32Table != null) return; 83 | CRC32Table = new uint[256]; 84 | for (uint i = 0; i < 256; i++) 85 | { 86 | uint vCRC = i; 87 | for (int j = 0; j < 8; j++) 88 | { 89 | if (vCRC % 2 == 0) 90 | vCRC = (uint)(vCRC >> 1); 91 | else 92 | vCRC = (uint)((vCRC >> 1) ^ 0xEDB88320); 93 | } 94 | CRC32Table[i] = vCRC; 95 | } 96 | } 97 | static uint GenerateCRC(byte[] bytes) 98 | { 99 | MakeCRC32Table(); 100 | 101 | long len = bytes.Length; 102 | byte ch; 103 | uint u_crc = 0xFFFFFFFF; 104 | for (long i = 0; i < len; i++) 105 | { 106 | ch = (byte)bytes[i]; 107 | u_crc = ((u_crc >> 8) & 0x00FFFFFF) ^ CRC32Table[(u_crc ^ ch) & 0xFF]; 108 | } 109 | u_crc = u_crc ^ 0xFFFFFFFF; 110 | return u_crc; 111 | } 112 | static uint GenerateCRC(char[] bytes) 113 | { 114 | MakeCRC32Table(); 115 | 116 | long len = bytes.Length; 117 | char ch; 118 | uint u_crc = 0xFFFFFFFF; 119 | for (long i = 0; i < len; i++) 120 | { 121 | ch = (char)bytes[i]; 122 | u_crc = ((u_crc >> 8) & 0x00FFFFFF) ^ CRC32Table[(u_crc ^ ch) & 0xFF]; 123 | } 124 | u_crc = u_crc ^ 0xFFFFFFFF; 125 | return u_crc; 126 | } 127 | #endif 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ClientDataTableHashExporter")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Windows User")] 12 | [assembly: AssemblyProduct("ClientDataTableHashExporter")] 13 | [assembly: AssemblyCopyright("Copyright © Windows User 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("83a0d339-f18e-4ef4-a482-6aca7f1b7ace")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientDataTableHashExporter/ClientDataTableHashExporter/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/.suo -------------------------------------------------------------------------------- /tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/db.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/db.lock -------------------------------------------------------------------------------- /tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/storage.ide: -------------------------------------------------------------------------------- 1 | SQLite format 3@ .A  -------------------------------------------------------------------------------- /tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/storage.ide-shm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/storage.ide-shm -------------------------------------------------------------------------------- /tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/storage.ide-wal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/.vs/ClientExcelExporter/v15/Server/sqlite3/storage.ide-wal -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientExcelExporter", "ClientExcelExporter\ClientExcelExporter.csproj", "{F648423F-B61C-437E-903F-A0592E04200B}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientMultiTextExporter", "ClientMultiTextExporter\ClientMultiTextExporter.csproj", "{82F73D47-6D25-4208-AA69-3573D3B7E664}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | {F648423F-B61C-437E-903F-A0592E04200B} = {F648423F-B61C-437E-903F-A0592E04200B} 9 | EndProjectSection 10 | EndProject 11 | Global 12 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 13 | Debug|Any CPU = Debug|Any CPU 14 | Debug|x86 = Debug|x86 15 | Release|Any CPU = Release|Any CPU 16 | Release|x86 = Release|x86 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {F648423F-B61C-437E-903F-A0592E04200B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {F648423F-B61C-437E-903F-A0592E04200B}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {F648423F-B61C-437E-903F-A0592E04200B}.Debug|x86.ActiveCfg = Debug|x86 22 | {F648423F-B61C-437E-903F-A0592E04200B}.Debug|x86.Build.0 = Debug|x86 23 | {F648423F-B61C-437E-903F-A0592E04200B}.Release|Any CPU.ActiveCfg = Release|Any CPU 24 | {F648423F-B61C-437E-903F-A0592E04200B}.Release|Any CPU.Build.0 = Release|Any CPU 25 | {F648423F-B61C-437E-903F-A0592E04200B}.Release|x86.ActiveCfg = Release|x86 26 | {F648423F-B61C-437E-903F-A0592E04200B}.Release|x86.Build.0 = Release|x86 27 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 28 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Debug|Any CPU.Build.0 = Debug|Any CPU 29 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Debug|x86.ActiveCfg = Debug|x86 30 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Release|Any CPU.ActiveCfg = Release|Any CPU 31 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Release|Any CPU.Build.0 = Release|Any CPU 32 | {82F73D47-6D25-4208-AA69-3573D3B7E664}.Release|x86.ActiveCfg = Release|Any CPU 33 | EndGlobalSection 34 | GlobalSection(SolutionProperties) = preSolution 35 | HideSolutionNode = FALSE 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter.suo -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/ClientExcelExporter.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 9.0.21022 7 | 2.0 8 | {F648423F-B61C-437E-903F-A0592E04200B} 9 | Exe 10 | Properties 11 | ClientExcelExporter 12 | ClientExcelExporter 13 | v3.5 14 | 512 15 | false 16 | 17 | 18 | 19 | 20 | 3.5 21 | publish\ 22 | true 23 | Disk 24 | false 25 | Foreground 26 | 7 27 | Days 28 | false 29 | false 30 | true 31 | 2 32 | 1.3.0.%2a 33 | false 34 | true 35 | 36 | 37 | true 38 | full 39 | false 40 | bin\Debug\ 41 | DEBUG;TRACE 42 | prompt 43 | 4 44 | 45 | 46 | pdbonly 47 | true 48 | bin\Release\ 49 | TRACE 50 | prompt 51 | 4 52 | 53 | 54 | x86 55 | bin\Debug\ 56 | 57 | 58 | x86 59 | bin\Release\ 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 3.5 68 | 69 | 70 | 3.5 71 | 72 | 73 | 3.5 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | False 86 | .NET Framework 3.5 SP1 Client Profile 87 | false 88 | 89 | 90 | False 91 | .NET Framework 2.0 %28x86%29 92 | false 93 | 94 | 95 | False 96 | .NET Framework 3.0 %28x86%29 97 | false 98 | 99 | 100 | False 101 | .NET Framework 3.5 102 | true 103 | 104 | 105 | False 106 | .NET Framework 3.5 SP1 107 | false 108 | 109 | 110 | False 111 | Windows Installer 3.1 112 | true 113 | 114 | 115 | 116 | 123 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/ClientExcelExporter.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | data .\ .\ .\_TableConfig Sheet1 text,textCutSence,textCutSence Sheet1,dialog,other 5 | 6 | 7 | text .\ .\ text,textCutSence,textCutSence Sheet1,dialog,other 8 | 9 | 10 | publish\ 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | zh-CN 20 | false 21 | 22 | 23 | 24 | D:\ClientExcelExporter\ClientExcelExporter\bin\Debug\ 25 | 26 | 27 | c:\Hero_binary\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug 28 | .\_TableConfig Sheet1 .\ .\ .\ 29 | Project 30 | 31 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/Microsoft.SqlServer.Replication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/Microsoft.SqlServer.Replication.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | /************************************************************************/ 10 | /* exl file exporter by cosmosliu 11 | * to fit the needs of Panda project 12 | * 13 | * input: _TableConfig.xls which includes all configs of exl exporting 14 | /************************************************************************/ 15 | 16 | namespace ClientExcelExporter 17 | { 18 | //this is for data 19 | class ClientExcelExporter 20 | { 21 | static void Main(string[] args) 22 | { 23 | try 24 | { 25 | if (args != null) 26 | { 27 | if (args.Length < 5) 28 | { 29 | Console.WriteLine("Not enough param number!"); 30 | return; 31 | } 32 | 33 | string configFilePath = ""; 34 | string configFileSheetName = ""; 35 | string rawDataFilePath = ""; 36 | string outDataFilePath = ""; 37 | string outCodeFilePath = ""; 38 | 39 | configFilePath = args[0]; 40 | configFileSheetName = args[1]; 41 | rawDataFilePath = args[2]; 42 | outDataFilePath = args[3]; 43 | outCodeFilePath = args[4]; 44 | 45 | if (true) 46 | { 47 | Console.WriteLine("configFilePath is " + configFilePath); 48 | Console.WriteLine("configFileSheetName is " + configFileSheetName); 49 | Console.WriteLine("rawFilePath is " + rawDataFilePath); 50 | Console.WriteLine("outFilePath is " + outDataFilePath); 51 | Console.WriteLine("outCodeFilePath is " + outCodeFilePath); 52 | } 53 | 54 | //read config file 55 | SingleExcelExport.ReadXLS(configFilePath + ".xls", configFileSheetName); 56 | int ColCount = SingleExcelExport.dtData.Columns.Count; 57 | int RowCount = SingleExcelExport.dtData.Rows.Count; 58 | 59 | if (ColCount > 0 && RowCount > 0) 60 | { 61 | string[,] exportSettings = new string[RowCount, ColCount]; 62 | for (int i = 0; i < RowCount; i++) 63 | { 64 | if (SingleExcelExport.dtData.Rows[i][0].ToString() == null) 65 | continue; 66 | 67 | for (int j = 0; j < ColCount; j++) 68 | { 69 | exportSettings[i, j] = SingleExcelExport.dtData.Rows[i][j].ToString(); 70 | } 71 | } 72 | 73 | Dictionary dicHeaders = new Dictionary(); 74 | //start export 75 | for (int i = 0; i < RowCount; i++) 76 | { 77 | //this excatly fit the settings of _tableConfig.xls 78 | if (exportSettings[i, 0] == null) 79 | return; 80 | if (exportSettings[i, 1] == null) 81 | return; 82 | if (exportSettings[i, 2] == null) 83 | return; 84 | 85 | string fileName = rawDataFilePath + exportSettings[i, 1]; 86 | string sheetName = exportSettings[i, 2]; 87 | string outFileName = outDataFilePath + exportSettings[i, 3]; 88 | string configFlag = exportSettings[i, 4]; 89 | string ColRange = exportSettings[i, 5]; 90 | string RowRange = exportSettings[i, 6]; 91 | string[] colRange = ColRange.Split(','); 92 | string[] rowRange = RowRange.Split(','); 93 | int startCol = int.Parse(colRange[0]); 94 | int endCol = int.Parse(colRange[1]); 95 | int startRow = int.Parse(rowRange[0]); 96 | int endRow = int.Parse(rowRange[1]); 97 | 98 | if (configFlag.Equals("S"))//if this table is only for server 99 | continue; 100 | 101 | string [] headers = SingleExcelExport.Export(fileName, sheetName, outFileName, startCol, endCol, startRow, endRow); 102 | for(int j=0; j< headers.Length; j++) 103 | { 104 | dicHeaders.Add(exportSettings[i, 1] + "_" + sheetName + "_" + headers[j], j); 105 | } 106 | } 107 | 108 | string filename = outCodeFilePath + "DataDefine.cs"; 109 | //write to header 110 | using (StreamWriter sw = new StreamWriter(filename)) 111 | { 112 | string content; 113 | StringBuilder sb = new StringBuilder(); 114 | 115 | sb.Append("//This file is generated by tools!").Append("\n"); 116 | sb.Append("//Please do not modify this file!").Append("\n"); 117 | sb.Append("public class DataDefine {").Append("\n").Append("\n"); 118 | 119 | 120 | foreach (var item in dicHeaders) 121 | { 122 | string header = String.Copy(item.Key); 123 | if (header.Contains(" ")) 124 | { 125 | header = header.Replace(' ', '_'); 126 | } 127 | sb.Append("\tpublic const int " + header + " = " + item.Value + ";").Append("\n"); 128 | } 129 | 130 | sb.Append("\n"); 131 | sb.Append("}"); 132 | 133 | content = sb.ToString(); 134 | sw.Write(content); 135 | } 136 | } 137 | } 138 | 139 | 140 | } 141 | catch (Exception exception) 142 | { 143 | Console.WriteLine(exception.Message); 144 | Console.WriteLine(exception.StackTrace); 145 | } 146 | } 147 | } 148 | } 149 | 150 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过下列属性集 6 | // 控制。更改这些属性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("ClientExcelExporter")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ClientExcelExporter")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 使此程序集中的类型 18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, 19 | // 则将该类型上的 ComVisible 属性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("d8d23657-dc69-4dce-aab9-d08323a22365")] 24 | 25 | // 程序集的版本信息由下面四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 内部版本号 30 | // 修订号 31 | // 32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/SingleExcelExport.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | namespace ClientExcelExporter 10 | { 11 | class SingleExcelExport 12 | { 13 | public static bool DEBUG = false; 14 | public static DataTable dtData; 15 | 16 | public static string[] Export(string exlFilePath, string sheetName, string outBinPath, 17 | int colStart, int colEnd, int rowStart, int rowEnd) 18 | { 19 | if (DEBUG) 20 | { 21 | Console.WriteLine("rawFilePath is " + exlFilePath); 22 | Console.WriteLine("sheetName is " + sheetName); 23 | Console.WriteLine("outBinPath is " + outBinPath); 24 | Console.WriteLine("setting is " + colStart.ToString() + "," + colEnd.ToString() + "," + rowStart.ToString() + "," + rowEnd.ToString()); 25 | } 26 | 27 | try 28 | { 29 | ReadXLS(exlFilePath + ".xls", sheetName); 30 | 31 | if (dtData.Columns.Count > 0 && dtData.Rows.Count > 0) 32 | { 33 | string[] returnValue = ExportData(outBinPath + ".bytes", colStart, colEnd, rowStart, rowEnd); 34 | Encrypt(outBinPath + ".bytes"); 35 | return returnValue; 36 | } 37 | else 38 | return null; 39 | } 40 | catch (Exception exception) 41 | { 42 | //if (DEBUG) 43 | { 44 | Console.WriteLine(exception.Message); 45 | Console.WriteLine(exception.StackTrace); 46 | } 47 | return null; 48 | } 49 | } 50 | 51 | public static void ReadXLS(string filetoread, string sheetName) 52 | { 53 | // Must be saved as excel 2003 workbook, not 2007, mono issue really 54 | string con = "Driver={Microsoft Excel Driver (*.xls)}; DriverId=790; Dbq=" + filetoread + ";"; 55 | 56 | if (DEBUG) 57 | Console.WriteLine(con); 58 | 59 | string dataQuery = "SELECT * FROM [" + sheetName + "$]"; 60 | // odbc connector 61 | OdbcConnection oCon = new OdbcConnection(con); 62 | // command object 63 | OdbcCommand oCmd = new OdbcCommand(dataQuery, oCon); 64 | // table to hold the data 65 | dtData = new DataTable("Data"); 66 | // open the connection 67 | oCon.Open(); 68 | // datareader to fill that table 69 | OdbcDataReader rData = oCmd.ExecuteReader(); 70 | // load data 71 | DataSet dataSet = new DataSet(); 72 | dataSet.Tables.Add(dtData); 73 | dataSet.EnforceConstraints = false; 74 | dtData.Load(rData); 75 | // close that reader 76 | rData.Close(); 77 | // close connection 78 | oCon.Close(); 79 | } 80 | 81 | public static string[] GetColumnHeader() 82 | { 83 | string[] result = new string[dtData.Columns.Count - 1]; 84 | for (int i = 0; i < dtData.Columns.Count - 1; i++) 85 | { 86 | result[i] = dtData.Columns[i + 1].ColumnName; 87 | } 88 | return result; 89 | } 90 | 91 | public static string[] GetColumnHeaderAll() 92 | { 93 | string[] result = new string[dtData.Columns.Count]; 94 | for (int i = 0; i < dtData.Columns.Count; i++) 95 | { 96 | result[i] = dtData.Columns[i].ColumnName; 97 | } 98 | return result; 99 | } 100 | 101 | public static string[] GetRowHeader() 102 | { 103 | string[] result = new string[dtData.Rows.Count]; 104 | for (int i = 0; i < dtData.Rows.Count; i++) 105 | { 106 | result[i] = dtData.Rows[i][0].ToString(); 107 | } 108 | return result; 109 | } 110 | 111 | public static string[] GetColumnData(string columnName) 112 | { 113 | int columnIndex = 1; 114 | for (int i = 0; i < dtData.Columns.Count; i++) 115 | { 116 | if (columnName.Equals(dtData.Columns[i].ColumnName)) 117 | { 118 | columnIndex = i; 119 | break; 120 | } 121 | } 122 | 123 | string[] result = new string[dtData.Rows.Count]; 124 | for (int i = 0; i < dtData.Rows.Count; i++) 125 | { 126 | result[i] = dtData.Rows[i][columnIndex].ToString(); 127 | } 128 | return result; 129 | } 130 | 131 | public static string[] ExportData(string filetowrite, int colStart, int colEnd, int rowStart, int rowEnd) 132 | { 133 | if ((colStart > colEnd) || (colStart == 0 && colEnd == 0)) 134 | { 135 | colStart = 0; 136 | colEnd = dtData.Columns.Count - 1; 137 | } 138 | if ((rowStart > rowEnd) || (rowStart == 0 && rowEnd == 0)) 139 | { 140 | rowStart = 0; 141 | rowEnd = dtData.Rows.Count - 1; 142 | } 143 | 144 | int actualRowEnd = 0; 145 | int actualColumnEnd = 0; 146 | for (int i = rowStart; i <= rowEnd; i++) 147 | { 148 | if (!dtData.Rows[i][0].ToString().Equals("")) 149 | actualRowEnd = i; 150 | } 151 | 152 | for (int j = colStart; j <= colEnd; j++) 153 | { 154 | if (!dtData.Rows[0][j].ToString().Equals("")) 155 | actualColumnEnd = j; 156 | } 157 | 158 | int ExportRows = actualRowEnd - rowStart + 1; 159 | int ExportCols = actualColumnEnd - colStart + 1; 160 | 161 | try 162 | { 163 | FileStream fs = new FileStream(filetowrite, FileMode.Create); 164 | BinaryWriter bw = new BinaryWriter(fs, Encoding.Unicode); 165 | bw.Write(ExportRows);//dtData.Rows.Count); 166 | bw.Write(ExportCols);//dtData.Columns.Count); 167 | for (int i = rowStart; i <= actualRowEnd; i++) 168 | { 169 | for (int j = colStart; j <= actualColumnEnd; j++) 170 | { 171 | //Debug.Log(dtData.Rows[i][j].GetType().ToString()); 172 | bw.Write(dtData.Rows[i][j].ToString()); 173 | } 174 | } 175 | fs.Close(); 176 | fs.Dispose(); 177 | } 178 | catch (IOException exception) 179 | { 180 | if (DEBUG) 181 | { 182 | Console.WriteLine(exception.Message); 183 | Console.WriteLine(exception.StackTrace); 184 | } 185 | } 186 | string[] headers; 187 | string[] getHeaders = GetColumnHeaderAll(); 188 | if (ExportCols == getHeaders.Length) 189 | { 190 | return getHeaders; 191 | } 192 | else if (getHeaders.Length < ExportCols) 193 | { 194 | return null; 195 | } 196 | else 197 | { 198 | headers = new string[ExportCols]; 199 | for (int i = 0; i < ExportCols; i++) 200 | { 201 | headers[i] = getHeaders[i]; 202 | } 203 | return headers; 204 | } 205 | } 206 | static void Encrypt(string _path) 207 | { 208 | byte[] bytes = File.ReadAllBytes(_path); 209 | bytes = TEA.code(bytes); 210 | File.WriteAllBytes(_path, bytes); 211 | } 212 | } 213 | class TEA 214 | { 215 | readonly static uint[] KP = 216 | { 217 | 0x243F6A88, 0x95A308D3, 0x13198A2E, 0x03707344, 218 | 0xA4093832, 0x299F31D0, 0x082EFA98, 0xEC7E6C89, 219 | 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6D, 220 | 0xC0AC29B7, 0xC97A50DD, 0x3F84D4B5, 0xB5470917, 221 | 0x9216D5D9, 0x7979FB1B 222 | }; 223 | 224 | static void code(uint y, uint z, uint[] k, out uint o1, out uint o2) 225 | { 226 | uint sum = 0; 227 | uint delta = 0x9e3779b9; 228 | uint n = 32; 229 | 230 | while (n-- > 0) 231 | { 232 | y += (z << 4 ^ z >> 5) + z ^ sum + k[(sum & 3) % k.Length]; 233 | sum += delta; 234 | z += (y << 4 ^ y >> 5) + y ^ sum + k[(sum >> 11 & 3) % k.Length]; 235 | } 236 | 237 | o1 = y; 238 | o2 = z; 239 | } 240 | static void decode(uint y, uint z, uint[] k, out uint o1, out uint o2) 241 | { 242 | uint n = 32; 243 | uint sum; 244 | uint delta = 0x9e3779b9; 245 | 246 | sum = delta << 5; 247 | 248 | while (n-- > 0) 249 | { 250 | z -= (y << 4 ^ y >> 5) + y ^ sum + k[(sum >> 11 & 3) % k.Length]; 251 | sum -= delta; 252 | y -= (z << 4 ^ z >> 5) + z ^ sum + k[(sum & 3) % k.Length]; 253 | } 254 | 255 | o1 = y; 256 | o2 = z; 257 | } 258 | 259 | public static byte[] code(byte[] input) 260 | { 261 | byte[] output = new byte[8 * (1 + (input.Length - 1) / 8)]; 262 | for (int i = 0; i < input.Length; i += 8) 263 | { 264 | uint y = byteToUint(input, i); 265 | uint z = byteToUint(input, i + 4); 266 | uint o1, o2; 267 | code(y, z, KP, out o1, out o2); 268 | uintToByte(o1, output, i); 269 | uintToByte(o2, output, i + 4); 270 | } 271 | return output; 272 | } 273 | public static byte[] decode(byte[] input) 274 | { 275 | byte[] output = new byte[input.Length]; 276 | for (int i = 0; i < input.Length; i += 8) 277 | { 278 | uint y = byteToUint(input, i); 279 | uint z = byteToUint(input, i + 4); 280 | uint o1, o2; 281 | decode(y, z, KP, out o1, out o2); 282 | uintToByte(o1, output, i); 283 | uintToByte(o2, output, i + 4); 284 | } 285 | return output; 286 | } 287 | 288 | static uint byteToUint(byte[] input, int index) 289 | { 290 | uint output = 0; 291 | if (index < input.Length) 292 | output += ((uint)input[index++]); 293 | if (index < input.Length) 294 | output += ((uint)input[index++] << 8); 295 | if (index < input.Length) 296 | output += ((uint)input[index++] << 16); 297 | if (index < input.Length) 298 | output += ((uint)input[index++] << 24); 299 | return output; 300 | } 301 | 302 | static void uintToByte(uint input, byte[] output, int index) 303 | { 304 | if (index < output.Length) 305 | output[index++] = ((byte)((input & 0xFF))); 306 | if (index < output.Length) 307 | output[index++] = ((byte)((input >> 8) & 0xFF)); 308 | if (index < output.Length) 309 | output[index++] = ((byte)((input >> 16) & 0xFF)); 310 | if (index < output.Length) 311 | output[index++] = ((byte)((input >> 24) & 0xFF)); 312 | } 313 | } 314 | } 315 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/BuildingStructure.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/BuildingStructure.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/ClientExcelExporter.vshost.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/DataDefine.cs: -------------------------------------------------------------------------------- 1 | //This file is generated by tools! 2 | //Please do not modify this file! 3 | public class DataDefine { 4 | 5 | public const int BuildingStructure_Structure_Structure_ID = 0; 6 | public const int BuildingStructure_Structure_Level = 1; 7 | public const int BuildingStructure_Structure_Name = 2; 8 | public const int BuildingStructure_Structure_Menu_Type = 3; 9 | public const int BuildingStructure_Structure_Logic_Type = 4; 10 | public const int BuildingStructure_Structure_Unlock_Level = 5; 11 | public const int BuildingStructure_Structure_Population = 6; 12 | public const int BuildingStructure_Structure_Size = 7; 13 | public const int BuildingStructure_Structure_Multiple = 8; 14 | public const int BuildingStructure_Structure_Removeable = 9; 15 | public const int BuildingStructure_Structure_Time = 10; 16 | public const int BuildingStructure_Structure_Description = 11; 17 | public const int BuildingStructure_Structure_OnlyBuildByCp = 12; 18 | public const int BuildingStructure_Structure_Gold = 13; 19 | public const int BuildingStructure_Structure_Wood = 14; 20 | public const int BuildingStructure_Structure_Water = 15; 21 | public const int BuildingStructure_Structure_Stone = 16; 22 | public const int BuildingStructure_Structure_Iron = 17; 23 | public const int BuildingStructure_Structure_Coin = 18; 24 | public const int BuildingStructure_Structure_Collectable = 19; 25 | public const int BuildingStructure_Structure_ObjResID = 20; 26 | public const int BuildingStructure_Structure_UIResID = 21; 27 | public const int skillDefine_skill_Name = 0; 28 | public const int skillDefine_skill_Description = 1; 29 | public const int skillDefine_skill_ID = 2; 30 | public const int skillDefine_skill_Level = 3; 31 | public const int skillDefine_skill_Passive = 4; 32 | public const int skillDefine_skill_Consume_Type = 5; 33 | public const int skillDefine_skill_Consum_Value = 6; 34 | public const int skillDefine_skill_Target_Camp = 7; 35 | public const int skillDefine_skill_Damage_Type = 8; 36 | public const int skillDefine_skill_Damage_Value = 9; 37 | public const int skillDefine_skill_Damage_Area_Type = 10; 38 | public const int skillDefine_skill_Damage_Area_Distance = 11; 39 | public const int skillDefine_skill_Damage_Area_Wide = 12; 40 | public const int skillDefine_skill_Damage_Residual = 13; 41 | public const int skillDefine_skill_Implact_Area = 14; 42 | public const int skillDefine_skill_Implact_Size = 15; 43 | public const int skillDefine_skill_Implact_Chance = 16; 44 | public const int skillDefine_skill_Implacts = 17; 45 | public const int skillDefine_skill_CounterChance = 18; 46 | public const int skillDefine_skill_Skill_Area = 19; 47 | public const int skillDefine_skill_Skill_Range = 20; 48 | public const int skillDefine_skill_Skill_Cooldown = 21; 49 | public const int skillDefine_skill_Skill_Distance = 22; 50 | public const int skillDefine_skill_Skill_Wide = 23; 51 | public const int skillDefine_skill_Skill_Behavior = 24; 52 | public const int skillDefine_skill_Usage_Chance = 25; 53 | public const int skillDefine_skill_Basic_Attack = 26; 54 | public const int skillDefine_skill_Melee_Attack = 27; 55 | 56 | } -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/Microsoft.SqlServer.Replication.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/Microsoft.SqlServer.Replication.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/_TableConfig.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/_TableConfig.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/skillDefine.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/skillDefine.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/tBuildingStructure.bytes: -------------------------------------------------------------------------------- 1 | 211$name_commandcenter01007,7008a030030030030030000Command center Command_Center_421name_barrack11013,301300a030025080505010Barracks Command_Center_131name_hospital11012,20125a0250100120303030HospitalHospital41"name_skillAcademy11013,40160a0600450150404030Skill academyWizard_Order51name_tech11015,401180a080055060010010030technology Command_Center_261name_outpost11012,21145a0650480150757580OutpostOutpost71name_blacksmith11014,4018a030030030030030040Blacksmith Command_Center_281name_gemhouse11013,3018a030030030030030050Gem HouseWeapon_Shop_191name_shelter22032,2115a030030030030030031ShelterWarehouse_2101name_camp22042,21115a030030030030030091CampWarehouse_2111name_hacienda22042,31160a030030030030030031HaciendaWarehouse_2121name_hovel22043,31190a0300300300300300101 2 | HovelWarehouse_2131name_bunkhouse22053,311150a030030030030030031BunkhouseWarehouse_2141name_shack22053,311300a030030030030030021 3 | ShackWarehouse_2151name_antiShack22054,411720a030030030030030021Antipathy ShackWarehouse_2161name_scraphouse22064,4111500a030030030030030021Scrap HouseWarehouse_2171name_rowhouse22074,5112160a030030030030030021Row HousesWarehouse_2181name_newhouse22084,5114800a030030030030030021New HouseWarehouse_2191&name_smallplantfarm36071,111900a01000500500500520"Small plants farmPlant_Farm_1201name_plantfarm36052,2113600a0400020002000200030020Plants farmPlant_Farm_1211"name_advplantfarm36032,3113600a10000020Adv Plants farmPlant_Farm_1221(name_smallanimalfarm36072,2111800a02000100010001000520"Small animal farmAnimal_Farm_1231name_animalfarm36052,3117200a0800040004000400030010Animal farmAnimal_Farm_1241$name_advanimalfarm36033,4113600a10000010Adv Animal farmAnimal_Farm_1251$name_militarystore351513,30115a030030030030030010military storeWarehouse_1261"name_basicMiliFac352513,30115a030030030030030010,basic military factoryWarehouse_1271$name_mediumMiliFac354514,40115a030030030030030010.medium military factoryWarehouse_1281name_advMiliFac356514,40115a0300300300300300102advanced military factoryWarehouse_1291"name_royalMiliFac358515,50115a030030030030030010,royal military factoryWarehouse_1301name_warchest41014,40012a01005020101011War chestItem_Shop_3311&name_smallwarehouse47082,21111a0608055510Small warehouseWarehouse_1321"name_smalladvware47062,21110a030030030030030010&small avd WarehouseWarehouse_1331"name_medwarehouse47082,21115a030030030030030010Med WarehouseWarehouse_1341name_advmedware47062,21115a030030030030030010"med adv WarehouseWarehouse_1351"name_bigwarehouse470103,31115a030030030030030010Big Ware houseWarehouse_1361name_bigadvware47083,31115a030030030030030010"big adv WarehouseWarehouse_1371name_ironyard44012,2118a05030555120Iron yard Gold_Gathering_1381name_ironmill44013,31110a0300300300300300120Iron Mill Gold_Gathering_1391"name_ironrefinery44014,41115a0300300300300300120Iron Refinery Gold_Gathering_1401name_lumberyard44012,2118a0405055510Lumber yard Wood_Gathering_1411name_lumbershed44013,31110a030030030030030010Lumber Shed Wood_Gathering_1421name_lumbermill44014,41115a030030030030030010Lumber Mill Wood_Gathering_1431name_waterwell44011,1118a0304055520Water well"Water_Gathering_2441name_waterwheel44013,31110a030030030030030040Water Wheel"Water_Gathering_2451name_waterpump44013,31115a030030030030030060Water Pump"Water_Gathering_2461name_stronyard44012,2118a0805055580stone yard"Stone_Gathering_1471name_stonemill44013,31110a0300300300300300100Stone Mil"Stone_Gathering_1481 name_stonequarry44014,41115a0300300300300300120Stone Quarry"Stone_Gathering_1491name_tree1559001,1110a0101010101010tree_15Warehouse_1501name_expansion510007,7100a0101010101010Expansion LandWarehouse_1 -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/tSkillDefine.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/tSkillDefine.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/text.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/text.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/textCutSence.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/textCutSence.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/zh-CHS/Microsoft.SqlServer.Replication.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Debug/zh-CHS/Microsoft.SqlServer.Replication.resources.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/bin/Release/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/bin/Release/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Debug/ClientExcelExporter.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.exe 2 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.pdb 3 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Debug\ResolveAssemblyReference.cache 4 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Debug\ClientExcelExporter.exe 5 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Debug\ClientExcelExporter.pdb 6 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Debug\ClientExcelExporter.exe 7 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Debug\ClientExcelExporter.pdb 8 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.exe 9 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.pdb 10 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Debug\ResolveAssemblyReference.cache 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Debug/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/Debug/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Debug/ClientExcelExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/Debug/ClientExcelExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Release/ClientExcelExporter.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.exe 2 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.pdb 3 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Release\ResolveAssemblyReference.cache 4 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Release\ClientExcelExporter.exe 5 | E:\Visual Studio 2008 Projects\ClientExcelExporter\ClientExcelExporter\obj\Release\ClientExcelExporter.pdb 6 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Release\ClientExcelExporter.exe 7 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Release\ClientExcelExporter.pdb 8 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.exe 9 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.pdb 10 | E:\Panda_Proj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\Release\ResolveAssemblyReference.cache 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Release/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/Release/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/Release/ClientExcelExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/Release/ClientExcelExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a6fddd98cf5a6903d1f1052bd58054355becefe0 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.exe 2 | D:\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.pdb 3 | D:\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ResolveAssemblyReference.cache 4 | D:\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.exe 5 | D:\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.pdb 6 | D:\ClientExcelExporter\ClientExcelExporter\bin\Debug\Microsoft.SqlServer.Replication.dll 7 | D:\ClientExcelExporter\ClientExcelExporter\bin\Debug\zh-CHS\Microsoft.SqlServer.Replication.resources.dll 8 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.exe 9 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.pdb 10 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.exe 11 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.pdb 12 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ResolveAssemblyReference.cache 13 | C:\Hero_binary\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.exe 14 | C:\Hero_binary\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.exe 15 | C:\Hero_binary\tools\ClientExcelExporter\ClientExcelExporter\bin\Debug\ClientExcelExporter.pdb 16 | C:\Hero_binary\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Debug\ClientExcelExporter.pdb 17 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ClientExcelExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Debug/ResolveAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Release/ClientExcelExporter.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a6fddd98cf5a6903d1f1052bd58054355becefe0 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Release/ClientExcelExporter.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.exe 2 | D:\ClientExcelExporter\ClientExcelExporter\obj\x86\Release\ResolveAssemblyReference.cache 3 | D:\ClientExcelExporter\ClientExcelExporter\obj\x86\Release\ClientExcelExporter.exe 4 | D:\ClientExcelExporter\ClientExcelExporter\bin\Release\Microsoft.SqlServer.Replication.dll 5 | D:\ClientExcelExporter\ClientExcelExporter\bin\Release\zh-CHS\Microsoft.SqlServer.Replication.resources.dll 6 | D:\work\github\Unity3DTable\tools\ClientExcelExporter\ClientExcelExporter\bin\Release\ClientExcelExporter.exe 7 | D:\work\github\Unity3DTable\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Release\ClientExcelExporter.csproj.CoreCompileInputs.cache 8 | D:\work\github\Unity3DTable\tools\ClientExcelExporter\ClientExcelExporter\obj\x86\Release\ClientExcelExporter.exe 9 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Release/ClientExcelExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientExcelExporter/obj/x86/Release/ClientExcelExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/ClientMultiLanguageTextExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | namespace ClientExcelExporter 10 | { 11 | //this for text 12 | class ClientMultiLanguageTextExporter 13 | { 14 | public static void ExportMLTextFiles(string[] textFileNames, string[] SheetName, string outPath,string outCodeFilePath) 15 | { 16 | try 17 | { 18 | Console.WriteLine("Start Export ML Text File!"); 19 | 20 | DataTable allStringData = new DataTable(); 21 | for (int i = 0; i < textFileNames.Length; i++) 22 | { 23 | if (SheetName.Length <= i) 24 | Console.WriteLine("Sheet input wrong!"); 25 | 26 | SingleExcelExport.ReadXLS(textFileNames[i] + ".xls", SheetName[i]); 27 | 28 | for (int j = 0; j < SingleExcelExport.dtData.Columns.Count; j++) 29 | { 30 | SingleExcelExport.dtData.Columns[j].MaxLength = Int32.MaxValue; 31 | } 32 | 33 | if (i == 0) 34 | allStringData = SingleExcelExport.dtData.Copy(); 35 | else 36 | { 37 | for (int j = 0; j < SingleExcelExport.dtData.Rows.Count; j++) 38 | { 39 | allStringData.Rows.Add(SingleExcelExport.dtData.Rows[j].ItemArray); 40 | } 41 | } 42 | 43 | } 44 | 45 | int length = allStringData.Rows.Count; 46 | Console.WriteLine("Multi text file Length is " + length.ToString()); 47 | 48 | //export head 49 | Console.WriteLine("Exporting HEAD!" + " !"); 50 | ExportOneLanguageData(allStringData, "TEXT_HEAD", 0, outPath, outCodeFilePath); 51 | 52 | //export text data, use one header, notice all header of files should be same 53 | string[] ColHeaders = SingleExcelExport.GetColumnHeader();//still has last table's head 54 | for (int i = 0; i < ColHeaders.Length; i++) 55 | { 56 | Console.WriteLine("Exporting " + ColHeaders[i] + " !"); 57 | ExportOneLanguageData(allStringData, ColHeaders[i], i + 1, outPath, outCodeFilePath); 58 | } 59 | 60 | Console.WriteLine("End Export ML Text File!"); 61 | } 62 | catch (Exception exception) 63 | { 64 | Console.WriteLine(exception.Message); 65 | } 66 | } 67 | 68 | public static void ExportOneLanguageData(DataTable dataInput, string LanguageName, int Column, string outPath, string outCodeFilePath) 69 | { 70 | string filetowrite = outPath + LanguageName + ".bytes"; 71 | 72 | int colStart, colEnd, rowStart, rowEnd; 73 | colStart = Column; 74 | colEnd = Column; 75 | rowStart = 0; 76 | rowEnd = dataInput.Rows.Count - 1; 77 | 78 | try 79 | { 80 | FileStream fs = new FileStream(filetowrite, FileMode.Create); 81 | BinaryWriter bw = new BinaryWriter(fs, Encoding.Unicode); 82 | bw.Write(dataInput.Rows.Count); 83 | for (int i = rowStart; i <= rowEnd; i++) 84 | { 85 | for (int j = colStart; j <= colEnd; j++) 86 | { 87 | bw.Write(dataInput.Rows[i][j].ToString()); 88 | } 89 | } 90 | bw.Close(); 91 | fs.Close(); 92 | } 93 | catch (IOException exception) 94 | { 95 | Console.WriteLine(exception.Message); 96 | } 97 | 98 | // export text define file 99 | string filename = outCodeFilePath + "TextDefine.cs"; 100 | //string[] headers = SingleExcelExport.GetRowHeader(); 101 | string[] headers = new string[dataInput.Rows.Count]; 102 | for (int i = 0; i < dataInput.Rows.Count; i++) 103 | { 104 | headers[i] = dataInput.Rows[i][0].ToString(); 105 | } 106 | 107 | using (StreamWriter sw = new StreamWriter(filename)) 108 | { 109 | string content; 110 | 111 | StringBuilder sb = new StringBuilder(); 112 | 113 | sb.Append("//This file is generated by tools!").Append("\n"); 114 | sb.Append("//Please do not modify this file!").Append("\n"); 115 | sb.Append("public class Text {").Append("\n").Append("\n"); 116 | 117 | 118 | for (int i = 0; i < headers.Length; i++) 119 | { 120 | string header = headers[i]; 121 | if (header.Contains(" ")) 122 | { 123 | header = header.Replace(' ', '_'); 124 | } 125 | sb.Append("\tpublic const int " + header + " = " + i + ";").Append("\n"); 126 | } 127 | 128 | sb.Append("\n"); 129 | sb.Append("}"); 130 | 131 | content = sb.ToString(); 132 | sw.Write(content); 133 | } 134 | } 135 | } 136 | } 137 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/ClientMultiTextExporter.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 9.0.21022 7 | 2.0 8 | {82F73D47-6D25-4208-AA69-3573D3B7E664} 9 | Exe 10 | Properties 11 | ClientMultiTextExporter 12 | ClientMultiTextExporter 13 | v3.5 14 | 512 15 | ClientExcelExporter.ClientMultiTextExporter 16 | false 17 | 18 | 19 | 20 | 21 | 3.5 22 | publish\ 23 | true 24 | Disk 25 | false 26 | Foreground 27 | 7 28 | Days 29 | false 30 | false 31 | true 32 | 0 33 | 1.0.0.%2a 34 | false 35 | true 36 | 37 | 38 | true 39 | full 40 | false 41 | bin\Debug\ 42 | DEBUG;TRACE 43 | prompt 44 | 4 45 | x86 46 | 47 | 48 | pdbonly 49 | true 50 | bin\Release\ 51 | TRACE 52 | prompt 53 | 4 54 | x86 55 | 56 | 57 | x86 58 | bin\Debug\ 59 | 60 | 61 | x86 62 | bin\x86\Release\ 63 | 64 | 65 | 66 | 67 | 3.5 68 | 69 | 70 | 3.5 71 | 72 | 73 | 3.5 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | False 87 | .NET Framework 3.5 SP1 Client Profile 88 | false 89 | 90 | 91 | False 92 | .NET Framework 2.0 %28x86%29 93 | false 94 | 95 | 96 | False 97 | .NET Framework 3.0 %28x86%29 98 | false 99 | 100 | 101 | False 102 | .NET Framework 3.5 103 | true 104 | 105 | 106 | False 107 | .NET Framework 3.5 SP1 108 | false 109 | 110 | 111 | False 112 | Windows Installer 3.1 113 | true 114 | 115 | 116 | 117 | 124 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/ClientMultiTextExporter.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | D:\ClientExcelExporter\ClientMultiTextExporter\bin\Debug\ 5 | .\_TextConfig Sheet1 .\ .\ .\ 6 | 7 | 8 | publish\ 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | zh-CN 18 | false 19 | 20 | 21 | 22 | .\_TextConfig Sheet1 .\ .\ .\ 23 | G:\InuProj\trunk\tools\ClientExcelExporter\ClientMultiTextExporter\bin\Debug\ 24 | 25 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | /************************************************************************/ 10 | /* exl file exporter by cosmosliu 11 | * to fit the needs of Panda project 12 | * 13 | * input: _TableConfig.xls which includes all configs of exl exporting 14 | /************************************************************************/ 15 | 16 | namespace ClientExcelExporter 17 | { 18 | //this is for multi language text 19 | class ClientMultiTextExporter 20 | { 21 | static void Main(string[] args) 22 | { 23 | try 24 | { 25 | if (args != null) 26 | { 27 | if (args.Length < 5) 28 | return; 29 | 30 | string configFilePath = ""; 31 | string configFileSheetName = ""; 32 | string rawDataFilePath = ""; 33 | string outDataFilePath = ""; 34 | string outCodeFilePath = ""; 35 | 36 | configFilePath = args[0]; 37 | configFileSheetName = args[1]; 38 | rawDataFilePath = args[2]; 39 | outDataFilePath = args[3]; 40 | outCodeFilePath = args[4]; 41 | 42 | if (true) 43 | { 44 | Console.WriteLine("configFilePath is " + configFilePath); 45 | Console.WriteLine("configFileSheetName is " + configFileSheetName); 46 | Console.WriteLine("rawFilePath is " + rawDataFilePath); 47 | Console.WriteLine("outFilePath is " + outDataFilePath); 48 | Console.WriteLine("outCodeFilePath is " + outCodeFilePath); 49 | } 50 | 51 | //read config file 52 | SingleExcelExport.ReadXLS(configFilePath + ".xls", configFileSheetName); 53 | int ColCount = SingleExcelExport.dtData.Columns.Count; 54 | int RowCount = SingleExcelExport.dtData.Rows.Count; 55 | 56 | string[] rawTextFileNames = new string[RowCount]; 57 | string[] rawTextFileSheetName = new string[RowCount]; 58 | for (int i = 0; i < RowCount; i++) 59 | { 60 | if (SingleExcelExport.dtData.Rows[i][0].ToString() == null) 61 | continue; 62 | rawTextFileNames[i] = SingleExcelExport.dtData.Rows[i][0].ToString(); 63 | rawTextFileSheetName[i] = SingleExcelExport.dtData.Rows[i][1].ToString(); 64 | } 65 | 66 | ClientMultiLanguageTextExporter.ExportMLTextFiles(rawTextFileNames, rawTextFileSheetName, outDataFilePath, outCodeFilePath); 67 | 68 | } 69 | } 70 | catch (Exception exception) 71 | { 72 | Console.WriteLine(exception.Message); 73 | } 74 | } 75 | } 76 | } 77 | 78 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过下列属性集 6 | // 控制。更改这些属性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("ClientMultiTextExporter")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("微软中国")] 12 | [assembly: AssemblyProduct("ClientMultiTextExporter")] 13 | [assembly: AssemblyCopyright("Copyright © 微软中国 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 使此程序集中的类型 18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, 19 | // 则将该类型上的 ComVisible 属性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("51d49771-5eb7-4d6c-8ffb-e5c6865bfa06")] 24 | 25 | // 程序集的版本信息由下面四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 内部版本号 30 | // 修订号 31 | // 32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/ClientMultiTextExporter.vshost.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/EN.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/EN.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/FR.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/FR.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/IT.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/IT.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/PT.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/PT.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/SP.bytes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/SP.bytes -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/TEXT_HEAD.bytes: -------------------------------------------------------------------------------- 1 | C TrainingFacility TechnologyCenter 2 | LevelRequireLevelUpgradeWeaponUpgradeArmorFavoriteTargetFavoriteTarget0FavoriteTarget1FavoriteTarget2FavoriteTarget3FavoriteTarget4FavoriteTarget5DamageTypeDamageType0DamageType1DamageType2TargetTypeTargetType0TargetType1TargetType2TargetType3AttackRangeAttackRange0ShipingSpaceTrainingCostTrainingTimeMovingSpeedHealthPointsArmorPointsShieldPointsDamagePerSecondStorageCapacity"TotalUnitCapacity$UpgradeWeaponCheck"UpgradeArmorCheckUpgradeTimeUpgradeCost4TechnologyUpgradeCondition&TechnologyUpgradingEmptySlotEquipItemneedMatteriumReinforcingSkillCoolDown Alliance_Welcome(Alliance_WarningNone*Alliance_Create_Tip_1*Alliance_Create_Tip_2*Alliance_Create_Tip_30Alliance_Create_Btn_Text HERO_DESC_GARIAN"HERO_DESC_SAURIUSHERO_DESC_HEATHERO_DESC_VESTA$HERO_DESC_LYUDMILAHERO_DESC_OLGA"HERO_DESC_CLAATOOHERO_DESC_PANDA$HERO_DESC_VESPARON"HERO_DESC_MINERVA(DIALOG_MISSION_1_1_1(DIALOG_MISSION_1_1_2(DIALOG_MISSION_1_1_3BACKUP_001BACKUP_002BACKUP_003 -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/TextDefine.cs: -------------------------------------------------------------------------------- 1 | //This file is generated by tools! 2 | //Please do not modify this file! 3 | public class Text { 4 | 5 | public const int TrainingFacility = 0; 6 | public const int TechnologyCenter = 1; 7 | public const int Level = 2; 8 | public const int RequireLevel = 3; 9 | public const int UpgradeWeapon = 4; 10 | public const int UpgradeArmor = 5; 11 | public const int FavoriteTarget = 6; 12 | public const int FavoriteTarget0 = 7; 13 | public const int FavoriteTarget1 = 8; 14 | public const int FavoriteTarget2 = 9; 15 | public const int FavoriteTarget3 = 10; 16 | public const int FavoriteTarget4 = 11; 17 | public const int FavoriteTarget5 = 12; 18 | public const int DamageType = 13; 19 | public const int DamageType0 = 14; 20 | public const int DamageType1 = 15; 21 | public const int DamageType2 = 16; 22 | public const int TargetType = 17; 23 | public const int TargetType0 = 18; 24 | public const int TargetType1 = 19; 25 | public const int TargetType2 = 20; 26 | public const int TargetType3 = 21; 27 | public const int AttackRange = 22; 28 | public const int AttackRange0 = 23; 29 | public const int ShipingSpace = 24; 30 | public const int TrainingCost = 25; 31 | public const int TrainingTime = 26; 32 | public const int MovingSpeed = 27; 33 | public const int HealthPoints = 28; 34 | public const int ArmorPoints = 29; 35 | public const int ShieldPoints = 30; 36 | public const int DamagePerSecond = 31; 37 | public const int StorageCapacity = 32; 38 | public const int TotalUnitCapacity = 33; 39 | public const int UpgradeWeaponCheck = 34; 40 | public const int UpgradeArmorCheck = 35; 41 | public const int UpgradeTime = 36; 42 | public const int UpgradeCost = 37; 43 | public const int TechnologyUpgradeCondition = 38; 44 | public const int TechnologyUpgrading = 39; 45 | public const int EmptySlot = 40; 46 | public const int EquipItem = 41; 47 | public const int needMatterium = 42; 48 | public const int Reinforcing = 43; 49 | public const int SkillCoolDown = 44; 50 | public const int Alliance_Welcome = 45; 51 | public const int Alliance_WarningNone = 46; 52 | public const int Alliance_Create_Tip_1 = 47; 53 | public const int Alliance_Create_Tip_2 = 48; 54 | public const int Alliance_Create_Tip_3 = 49; 55 | public const int Alliance_Create_Btn_Text = 50; 56 | public const int HERO_DESC_GARIAN = 51; 57 | public const int HERO_DESC_SAURIUS = 52; 58 | public const int HERO_DESC_HEAT = 53; 59 | public const int HERO_DESC_VESTA = 54; 60 | public const int HERO_DESC_LYUDMILA = 55; 61 | public const int HERO_DESC_OLGA = 56; 62 | public const int HERO_DESC_CLAATOO = 57; 63 | public const int HERO_DESC_PANDA = 58; 64 | public const int HERO_DESC_VESPARON = 59; 65 | public const int HERO_DESC_MINERVA = 60; 66 | public const int DIALOG_MISSION_1_1_1 = 61; 67 | public const int DIALOG_MISSION_1_1_2 = 62; 68 | public const int DIALOG_MISSION_1_1_3 = 63; 69 | public const int BACKUP_001 = 64; 70 | public const int BACKUP_002 = 65; 71 | public const int BACKUP_003 = 66; 72 | 73 | } -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/_TextConfig.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/_TextConfig.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/text.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/text.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/text2.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/bin/Debug/text2.xls -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/Debug/ClientMultiTextExporter.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\ClientExcelExporter\ClientMultiTextExporter\obj\Debug\ResolveAssemblyReference.cache 2 | D:\ClientExcelExporter\ClientMultiTextExporter\bin\Debug\ClientMultiTextExporter.exe 3 | D:\ClientExcelExporter\ClientMultiTextExporter\bin\Debug\ClientMultiTextExporter.pdb 4 | D:\ClientExcelExporter\ClientMultiTextExporter\obj\Debug\ClientMultiTextExporter.exe 5 | D:\ClientExcelExporter\ClientMultiTextExporter\obj\Debug\ClientMultiTextExporter.pdb 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/Debug/ClientMultiTextExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/obj/Debug/ClientMultiTextExporter.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/Debug/ClientMultiTextExporter.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/obj/Debug/ClientMultiTextExporter.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/Release/ClientMultiTextExporter.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | ecbd352b6244aada848a8e4fba6eeac3d6c255fd 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/x86/Debug/ClientMultiTextExporter.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | ecbd352b6244aada848a8e4fba6eeac3d6c255fd 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporter/ClientMultiTextExporter/obj/x86/Debug/ClientMultiTextExporter.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporter/ClientMultiTextExporter/obj/x86/Debug/ClientMultiTextExporter.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/.suo -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/db.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/db.lock -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/storage.ide: -------------------------------------------------------------------------------- 1 | SQLite format 3@ .A  -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/storage.ide-shm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/storage.ide-shm -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/storage.ide-wal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/.vs/ClientExcelExporterNPOI/v15/Server/sqlite3/storage.ide-wal -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2026 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientExcelExporterNPOI", "ClientExcelExporterNPOI\ClientExcelExporterNPOI.csproj", "{853C41E9-00FB-40BB-96C8-5C8E14E343B5}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientMultiTextExporterNPOI", "ClientMultiTextExporterNPOI\ClientMultiTextExporterNPOI.csproj", "{2339A488-3B5B-4027-ADEC-BFBC17167D32}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {853C41E9-00FB-40BB-96C8-5C8E14E343B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {853C41E9-00FB-40BB-96C8-5C8E14E343B5}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {853C41E9-00FB-40BB-96C8-5C8E14E343B5}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {853C41E9-00FB-40BB-96C8-5C8E14E343B5}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {2339A488-3B5B-4027-ADEC-BFBC17167D32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {2339A488-3B5B-4027-ADEC-BFBC17167D32}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {2339A488-3B5B-4027-ADEC-BFBC17167D32}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {2339A488-3B5B-4027-ADEC-BFBC17167D32}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {DC596261-ECCA-4D65-AF4B-9F465260C9EC} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/ClientExcelExporterNPOI.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {853C41E9-00FB-40BB-96C8-5C8E14E343B5} 8 | Exe 9 | ClientExcelExporterNPOI 10 | ClientExcelExporterNPOI 11 | v4.6.1 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | ..\Ionic.Zip.dll 38 | 39 | 40 | ..\NPOI.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | // using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | /************************************************************************/ 10 | /* exl file exporter by cosmosliu 11 | * to fit the needs of Panda project 12 | * 13 | * input: _TableConfig.xls which includes all configs of exl exporting 14 | /************************************************************************/ 15 | 16 | namespace ClientExcelExporter 17 | { 18 | //this is for data 19 | class ClientExcelExporter 20 | { 21 | static void Main(string[] args) 22 | { 23 | try 24 | { 25 | if (args != null) 26 | { 27 | if (args.Length < 5) 28 | { 29 | Console.WriteLine("Not enough param number!"); 30 | return; 31 | } 32 | 33 | string configFilePath = ""; 34 | string configFileSheetName = ""; 35 | string rawDataFilePath = ""; 36 | string outDataFilePath = ""; 37 | string outCodeFilePath = ""; 38 | 39 | configFilePath = args[0]; 40 | configFileSheetName = args[1]; 41 | rawDataFilePath = args[2]; 42 | outDataFilePath = args[3]; 43 | outCodeFilePath = args[4]; 44 | 45 | if (true) 46 | { 47 | Console.WriteLine("configFilePath is " + configFilePath); 48 | Console.WriteLine("configFileSheetName is " + configFileSheetName); 49 | Console.WriteLine("rawFilePath is " + rawDataFilePath); 50 | Console.WriteLine("outFilePath is " + outDataFilePath); 51 | Console.WriteLine("outCodeFilePath is " + outCodeFilePath); 52 | } 53 | 54 | //read config file 55 | SingleExcelExport.ReadXLS(configFilePath + ".xls", configFileSheetName); 56 | int ColCount = SingleExcelExport.dtData.Columns.Count; 57 | int RowCount = SingleExcelExport.dtData.Rows.Count; 58 | 59 | Console.WriteLine("ColCount is " + ColCount); 60 | Console.WriteLine("RowCount is " + RowCount); 61 | 62 | 63 | if (ColCount > 0 && RowCount > 0) 64 | { 65 | string[,] exportSettings = new string[RowCount, ColCount]; 66 | for (int i = 0; i < RowCount; i++) 67 | { 68 | if (SingleExcelExport.dtData.Rows[i][0].ToString() == null) 69 | continue; 70 | 71 | for (int j = 0; j < ColCount; j++) 72 | { 73 | exportSettings[i, j] = SingleExcelExport.dtData.Rows[i][j].ToString(); 74 | } 75 | } 76 | 77 | Dictionary dicHeaders = new Dictionary(); 78 | //start export 79 | for (int i = 0; i < RowCount; i++) 80 | { 81 | //this excatly fit the settings of _tableConfig.xls 82 | if (exportSettings[i, 0] == null) 83 | return; 84 | if (exportSettings[i, 1] == null) 85 | return; 86 | if (exportSettings[i, 2] == null) 87 | return; 88 | 89 | string fileName = rawDataFilePath + exportSettings[i, 1]; 90 | string sheetName = exportSettings[i, 2]; 91 | string outFileName = outDataFilePath + exportSettings[i, 3]; 92 | string configFlag = exportSettings[i, 4]; 93 | string ColRange = exportSettings[i, 5]; 94 | string RowRange = exportSettings[i, 6]; 95 | // printf(ColRange); 96 | // Console.WriteLine("ColRange is " + ColRange); 97 | // printf(RowRange); 98 | // Console.WriteLine("RowRange is " + RowRange); 99 | // return; 100 | string[] colRange = ColRange.Split(','); 101 | string[] rowRange = RowRange.Split(','); 102 | // return; 103 | int startCol = int.Parse(colRange[0]); 104 | int endCol = int.Parse(colRange[1]); 105 | int startRow = int.Parse(rowRange[0]); 106 | int endRow = int.Parse(rowRange[1]); 107 | 108 | if (configFlag.Equals("S"))//if this table is only for server 109 | continue; 110 | 111 | string [] headers = SingleExcelExport.Export(fileName, sheetName, outFileName, startCol, endCol, startRow, endRow); 112 | for(int j=0; j< headers.Length; j++) 113 | { 114 | dicHeaders.Add(exportSettings[i, 1] + "_" + sheetName + "_" + headers[j], j); 115 | } 116 | } 117 | 118 | string filename = outCodeFilePath + "DataDefine.cs"; 119 | //write to header 120 | using (StreamWriter sw = new StreamWriter(filename)) 121 | { 122 | string content; 123 | StringBuilder sb = new StringBuilder(); 124 | 125 | sb.Append("//This file is generated by tools!").Append("\n"); 126 | sb.Append("//Please do not modify this file!").Append("\n"); 127 | sb.Append("public class DataDefine {").Append("\n").Append("\n"); 128 | 129 | 130 | foreach (var item in dicHeaders) 131 | { 132 | string header = String.Copy(item.Key); 133 | if (header.Contains(" ")) 134 | { 135 | header = header.Replace(' ', '_'); 136 | } 137 | sb.Append("\tpublic const int " + header + " = " + item.Value + ";").Append("\n"); 138 | } 139 | 140 | sb.Append("\n"); 141 | sb.Append("}"); 142 | 143 | content = sb.ToString(); 144 | sw.Write(content); 145 | } 146 | } 147 | } 148 | 149 | 150 | } 151 | catch (Exception exception) 152 | { 153 | Console.WriteLine(exception.Message); 154 | Console.WriteLine(exception.StackTrace); 155 | } 156 | } 157 | } 158 | } 159 | 160 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("ClientExcelExporterNPOI")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ClientExcelExporterNPOI")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("853c41e9-00fb-40bb-96c8-5c8e14e343b5")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/ClientExcelExporterNPOI.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/ClientExcelExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/ClientExcelExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Debug/NPOI.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/ClientExcelExporterNPOI.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/ClientExcelExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/ClientExcelExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/bin/Release/NPOI.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csproj.CopyComplete -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 68dedd89d7d2b4a10056b750305b452892240c6d 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Debug\ClientExcelExporterNPOI.exe.config 2 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Debug\ClientExcelExporterNPOI.exe 3 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Debug\ClientExcelExporterNPOI.pdb 4 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Debug\Ionic.Zip.dll 5 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Debug\NPOI.dll 6 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Debug\ClientExcelExporterNPOI.csprojAssemblyReference.cache 7 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Debug\ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache 8 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Debug\ClientExcelExporterNPOI.csproj.CopyComplete 9 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Debug\ClientExcelExporterNPOI.exe 10 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Debug\ClientExcelExporterNPOI.pdb 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/ClientExcelExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csproj.CopyComplete -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 68dedd89d7d2b4a10056b750305b452892240c6d 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Release\ClientExcelExporterNPOI.exe.config 2 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Release\ClientExcelExporterNPOI.exe 3 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Release\ClientExcelExporterNPOI.pdb 4 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Release\Ionic.Zip.dll 5 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\bin\Release\NPOI.dll 6 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Release\ClientExcelExporterNPOI.csproj.CoreCompileInputs.cache 7 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Release\ClientExcelExporterNPOI.csproj.CopyComplete 8 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Release\ClientExcelExporterNPOI.exe 9 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Release\ClientExcelExporterNPOI.pdb 10 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientExcelExporterNPOI\obj\Release\ClientExcelExporterNPOI.csprojAssemblyReference.cache 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/ClientExcelExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientExcelExporterNPOI/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/ClientMultiLanguageTextExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | //using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | namespace ClientExcelExporter 10 | { 11 | //this for text 12 | class ClientMultiLanguageTextExporter 13 | { 14 | public static void ExportMLTextFiles(string[] textFileNames, string[] SheetName, string outPath,string outCodeFilePath) 15 | { 16 | try 17 | { 18 | Console.WriteLine("Start Export ML Text File!"); 19 | 20 | DataTable allStringData = new DataTable(); 21 | for (int i = 0; i < textFileNames.Length; i++) 22 | { 23 | if (SheetName.Length <= i) 24 | Console.WriteLine("Sheet input wrong!"); 25 | 26 | Console.WriteLine("textFileNames[i] " + textFileNames[i] + " - " + SheetName[i]); 27 | SingleExcelExport.ReadXLS(textFileNames[i] + ".xls", SheetName[i]); 28 | 29 | for (int j = 0; j < SingleExcelExport.dtData.Columns.Count; j++) 30 | { 31 | SingleExcelExport.dtData.Columns[j].MaxLength = Int32.MaxValue; 32 | } 33 | 34 | if (i == 0) 35 | allStringData = SingleExcelExport.dtData.Copy(); 36 | else 37 | { 38 | for (int j = 0; j < SingleExcelExport.dtData.Rows.Count; j++) 39 | { 40 | // Console.WriteLine("SingleExcelExport.dtData.Rows.Count is " + SingleExcelExport.dtData.Rows.Count); 41 | // Console.WriteLine("j is " + j); 42 | // Console.WriteLine("SingleExcelExport.dtData.Rows[j][0] is "+ SingleExcelExport.dtData.Rows[j][0].ToString()); 43 | // Console.WriteLine("SingleExcelExport.dtData.Rows[j][1] is " + SingleExcelExport.dtData.Rows[j][1].ToString()); 44 | allStringData.Rows.Add(SingleExcelExport.dtData.Rows[j].ItemArray); 45 | } 46 | } 47 | 48 | } 49 | 50 | int length = allStringData.Rows.Count; 51 | Console.WriteLine("Multi text file Length is " + length.ToString()); 52 | 53 | //export head 54 | Console.WriteLine("Exporting HEAD!" + " !"); 55 | ExportOneLanguageData(allStringData, "TEXT_HEAD", 0, outPath, outCodeFilePath); 56 | 57 | //export text data, use one header, notice all header of files should be same 58 | string[] ColHeaders = SingleExcelExport.GetColumnHeader();//still has last table's head 59 | for (int i = 0; i < ColHeaders.Length; i++) 60 | { 61 | Console.WriteLine("Exporting " + ColHeaders[i] + " !"); 62 | ExportOneLanguageData(allStringData, ColHeaders[i], i + 1, outPath, outCodeFilePath); 63 | } 64 | 65 | Console.WriteLine("End Export ML Text File!"); 66 | } 67 | catch (Exception exception) 68 | { 69 | Console.WriteLine(exception.Message); 70 | } 71 | } 72 | 73 | public static void ExportOneLanguageData(DataTable dataInput, string LanguageName, int Column, string outPath, string outCodeFilePath) 74 | { 75 | string filetowrite = outPath + LanguageName + ".bytes"; 76 | 77 | int colStart, colEnd, rowStart, rowEnd; 78 | colStart = Column; 79 | colEnd = Column; 80 | rowStart = 0; 81 | rowEnd = dataInput.Rows.Count - 1; 82 | 83 | try 84 | { 85 | FileStream fs = new FileStream(filetowrite, FileMode.Create); 86 | BinaryWriter bw = new BinaryWriter(fs, Encoding.Unicode); 87 | bw.Write(dataInput.Rows.Count); 88 | for (int i = rowStart; i <= rowEnd; i++) 89 | { 90 | for (int j = colStart; j <= colEnd; j++) 91 | { 92 | bw.Write(dataInput.Rows[i][j].ToString()); 93 | } 94 | } 95 | bw.Close(); 96 | fs.Close(); 97 | } 98 | catch (IOException exception) 99 | { 100 | Console.WriteLine(exception.Message); 101 | } 102 | 103 | // export text define file 104 | string filename = outCodeFilePath + "TextDefine.cs"; 105 | //string[] headers = SingleExcelExport.GetRowHeader(); 106 | string[] headers = new string[dataInput.Rows.Count]; 107 | for (int i = 0; i < dataInput.Rows.Count; i++) 108 | { 109 | headers[i] = dataInput.Rows[i][0].ToString(); 110 | } 111 | 112 | using (StreamWriter sw = new StreamWriter(filename)) 113 | { 114 | string content; 115 | 116 | StringBuilder sb = new StringBuilder(); 117 | 118 | sb.Append("//This file is generated by tools!").Append("\n"); 119 | sb.Append("//Please do not modify this file!").Append("\n"); 120 | sb.Append("public class Text {").Append("\n").Append("\n"); 121 | 122 | 123 | for (int i = 0; i < headers.Length; i++) 124 | { 125 | string header = headers[i]; 126 | if (header.Contains(" ")) 127 | { 128 | header = header.Replace(' ', '_'); 129 | } 130 | sb.Append("\tpublic const int " + header + " = " + i + ";").Append("\n"); 131 | } 132 | 133 | sb.Append("\n"); 134 | sb.Append("}"); 135 | 136 | content = sb.ToString(); 137 | sw.Write(content); 138 | } 139 | } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/ClientMultiTextExporterNPOI.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {2339A488-3B5B-4027-ADEC-BFBC17167D32} 8 | Exe 9 | ClientMultiTextExporterNPOI 10 | ClientMultiTextExporterNPOI 11 | v4.6.1 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | ..\Ionic.Zip.dll 38 | 39 | 40 | ..\NPOI.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections; 4 | using System.Data; 5 | //using System.Data.Odbc; 6 | using System.IO; 7 | using System.Text; 8 | 9 | /************************************************************************/ 10 | /* exl file exporter by cosmosliu 11 | * to fit the needs of Panda project 12 | * 13 | * input: _TableConfig.xls which includes all configs of exl exporting 14 | /************************************************************************/ 15 | 16 | namespace ClientExcelExporter 17 | { 18 | //this is for multi language text 19 | class ClientMultiTextExporter 20 | { 21 | static void Main(string[] args) 22 | { 23 | try 24 | { 25 | if (args != null) 26 | { 27 | if (args.Length < 5) 28 | return; 29 | 30 | string configFilePath = ""; 31 | string configFileSheetName = ""; 32 | string rawDataFilePath = ""; 33 | string outDataFilePath = ""; 34 | string outCodeFilePath = ""; 35 | 36 | configFilePath = args[0]; 37 | configFileSheetName = args[1]; 38 | rawDataFilePath = args[2]; 39 | outDataFilePath = args[3]; 40 | outCodeFilePath = args[4]; 41 | 42 | if (true) 43 | { 44 | Console.WriteLine("configFilePath is " + configFilePath); 45 | Console.WriteLine("configFileSheetName is " + configFileSheetName); 46 | Console.WriteLine("rawFilePath is " + rawDataFilePath); 47 | Console.WriteLine("outFilePath is " + outDataFilePath); 48 | Console.WriteLine("outCodeFilePath is " + outCodeFilePath); 49 | } 50 | 51 | //read config file 52 | SingleExcelExport.ReadXLS(configFilePath + ".xls", configFileSheetName); 53 | int ColCount = SingleExcelExport.dtData.Columns.Count; 54 | int RowCount = SingleExcelExport.dtData.Rows.Count; 55 | 56 | string[] rawTextFileNames = new string[RowCount]; 57 | string[] rawTextFileSheetName = new string[RowCount]; 58 | for (int i = 0; i < RowCount; i++) 59 | { 60 | if (SingleExcelExport.dtData.Rows[i][0].ToString() == null) 61 | continue; 62 | rawTextFileNames[i] = SingleExcelExport.dtData.Rows[i][0].ToString(); 63 | rawTextFileSheetName[i] = SingleExcelExport.dtData.Rows[i][1].ToString(); 64 | } 65 | 66 | ClientMultiLanguageTextExporter.ExportMLTextFiles(rawTextFileNames, rawTextFileSheetName, outDataFilePath, outCodeFilePath); 67 | 68 | } 69 | } 70 | catch (Exception exception) 71 | { 72 | Console.WriteLine(exception.Message); 73 | } 74 | } 75 | } 76 | } 77 | 78 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("ClientMultiTextExporterNPOI")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ClientMultiTextExporterNPOI")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("2339a488-3b5b-4027-adec-bfbc17167d32")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/ClientMultiTextExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/ClientMultiTextExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/ClientMultiTextExporterNPOI.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/ClientMultiTextExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/ClientMultiTextExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Debug/NPOI.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/ClientMultiTextExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/ClientMultiTextExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/ClientMultiTextExporterNPOI.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/ClientMultiTextExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/ClientMultiTextExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/bin/Release/NPOI.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csproj.CopyComplete -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 4a91059c04042e47915e002bbfdc7ff6eb318342 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Debug\ClientMultiTextExporterNPOI.exe.config 2 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Debug\ClientMultiTextExporterNPOI.exe 3 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Debug\ClientMultiTextExporterNPOI.pdb 4 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Debug\Ionic.Zip.dll 5 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Debug\NPOI.dll 6 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Debug\ClientMultiTextExporterNPOI.csprojAssemblyReference.cache 7 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Debug\ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache 8 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Debug\ClientMultiTextExporterNPOI.csproj.CopyComplete 9 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Debug\ClientMultiTextExporterNPOI.exe 10 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Debug\ClientMultiTextExporterNPOI.pdb 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/ClientMultiTextExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csproj.CopyComplete -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 4a91059c04042e47915e002bbfdc7ff6eb318342 2 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Release\ClientMultiTextExporterNPOI.exe.config 2 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Release\ClientMultiTextExporterNPOI.exe 3 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Release\ClientMultiTextExporterNPOI.pdb 4 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Release\Ionic.Zip.dll 5 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\bin\Release\NPOI.dll 6 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Release\ClientMultiTextExporterNPOI.csproj.CoreCompileInputs.cache 7 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Release\ClientMultiTextExporterNPOI.csproj.CopyComplete 8 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Release\ClientMultiTextExporterNPOI.exe 9 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Release\ClientMultiTextExporterNPOI.pdb 10 | D:\work\github\Unity3DTable\tools\ClientExcelExporterNPOI\ClientMultiTextExporterNPOI\obj\Release\ClientMultiTextExporterNPOI.csprojAssemblyReference.cache 11 | -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.exe -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/ClientMultiTextExporterNPOI.pdb -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/ClientMultiTextExporterNPOI/obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/ClientExcelExporterNPOI/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientExcelExporterNPOI/NPOI.dll -------------------------------------------------------------------------------- /tools/ClientMultiTextExporter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientMultiTextExporter.exe -------------------------------------------------------------------------------- /tools/ClientMultiTextExporterNPOI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/ClientMultiTextExporterNPOI.exe -------------------------------------------------------------------------------- /tools/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/Ionic.Zip.dll -------------------------------------------------------------------------------- /tools/NPOI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DTable/3e50bcbf6bdfae61df2538b8dfc65773eb45aa35/tools/NPOI.dll --------------------------------------------------------------------------------