1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 Jiang Yin. All rights reserved.
- // Homepage: https://gameframework.cn/
- // Feedback: mailto:ellan@gameframework.cn
- //------------------------------------------------------------
- using System.IO;
- namespace MetaClient.Editor.DataTableTools
- {
- public sealed partial class DataTableProcessor
- {
- private sealed class IdProcessor : DataProcessor
- {
- public override System.Type Type
- {
- get
- {
- return typeof(int);
- }
- }
- public override bool IsId
- {
- get
- {
- return true;
- }
- }
- public override bool IsComment
- {
- get
- {
- return false;
- }
- }
- public override bool IsSystem
- {
- get
- {
- return false;
- }
- }
- public override string LanguageKeyword
- {
- get
- {
- return "int";
- }
- }
- public override string[] GetTypeStrings()
- {
- return new string[]
- {
- "id"
- };
- }
- public override void WriteToStream(DataTableProcessor dataTableProcessor, BinaryWriter binaryWriter, string value)
- {
- binaryWriter.Write7BitEncodedInt32(int.Parse(value));
- }
- }
- }
- }
|