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