Giter Club home page Giter Club logo

unity3d_xmltoegg's Introduction

###Unity3D_XMLToEgg(Unity3D_XML2O)

Unity3D_XMLToEgg 基于C#编写的Unity3D工具,利用反射和泛型通过读取XML文件创建新的实例并且为实例赋值。 但是我更喜欢Unity3D_XML2O这个名字,O意味着object也象征着鸡蛋。

XMLToEgg or called XML2O can convert your XML files into objects.Used reflect && T

####用法 Usage

XmlToEgg<YourClass>.SetXmlPath(YourXMLPath);

Yourclass instance = XmlToEgg<Yourclass>.ToEgg();

很简单就能生成一个我们需要且从XML文件中读取数据的类。 详细内容参见xml-to-egg-test中的内容。

You can get values from xml files more easily.More details see xml-to-egg-test

####我的博客 My Web

慕容小匹夫

unity3d_xmltoegg's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity3d_xmltoegg's Issues

ToEgg应该关性以下2个核心点

ToEgg应该关性以下2个核心点

  1. 大量XML表。按手游来说,重量游戏几十张策划表,每张近百行、几十列。XML包含大量冗余的字段(属性名)。为了加速IO读取,可以选择另外格式储存文件,如CSV
  2. 避免第二重复反射。
  3. 字段格式扩展。XML属性不会是单纯的int、float、bool、string。如果是一个数组呢?那么字段如何提供这个数组表达?

另外:
4. 报警。类型转换绝不会一帆风顺。报错的原因?格式不对?错在第几行第几列?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.