1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //------------------------------------------------------------
- // 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 ByteProcessor : GenericDataProcessor<byte>
- {
- public override bool IsSystem
- {
- get
- {
- return true;
- }
- }
- public override string LanguageKeyword
- {
- get
- {
- return "byte";
- }
- }
- public override string[] GetTypeStrings()
- {
- return new string[]
- {
- "byte",
- "system.byte"
- };
- }
- public override byte Parse(string value)
- {
- return byte.Parse(value);
- }
- public override void WriteToStream(DataTableProcessor dataTableProcessor, BinaryWriter binaryWriter, string value)
- {
- binaryWriter.Write(Parse(value));
- }
- }
- }
- }
|