Coder Social home page Coder Social logo

bosphorus's People

Contributors

bobsummerwill avatar ztzg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

bosphorus's Issues

Figure out deserialization mapping of non-public fields

Some YAML files refer to internal properties which are not directly exposed in the .NET API, but that data is most probably necessary to properly implement some of the public method or global behaviours.

As an example, ParticleSystem only exposes a small set of properties, but its serialization includes a large list of "modules" which determine its exact behaviour at runtime:

InitialModule:
  enabled: 1
  startLifetime:
    scalar: 3.5
    maxCurve:
      serializedVersion: 2
      m_Curve:
      - time: 0
        value: 1
        inSlope: 0
        outSlope: 0
        tangentMode: 0
      - time: 1
[…]
SubModule:
  enabled: 0
  subEmitterBirth: {fileID: 0}
  subEmitterBirth1: {fileID: 0}
  subEmitterCollision: {fileID: 0}
  subEmitterCollision1: {fileID: 0}
  subEmitterDeath: {fileID: 0}
  subEmitterDeath1: {fileID: 0}

Note the elision marker. The *Module subtree actually spans 1013 lines!

YamlDotNet pull request TODO

Hi Bob,

Is there still work TODO on YamlDotNet which I'll need to pick up to keep
working on Disunity? Did you submit pull requests?

What's the status? Thanks!

Yes and no.

My (mandatory) pull request still hasn't been merged. A (slightly
different) patch should be cooked up which allows to toggle the parser
between the YAML 1.1 and 1.2 semantics:

aaubry/YamlDotNet#102 (comment)

It's in my queue, but under a lot of other stuff :) In the meantime,
please continue using the Kitsilano fork.

Additionally, some of the custom parsing done in Disunity could be
generalized and folded back into the YamlDotNet classes, and the
resulting patches turned into pull requests. This is lower priority, as
it is only a "cleanup." The upside of doing so would be: less custom
parsing in Disunity.

HTH, -D

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.