Esempio n. 1
0
 public void addToJSON(JSONBuilder jb)
 {
     jb.beginItem();
     jb.addField("position");
     jb.addPrimitive(position.ToString());
     jb.addField("direction");
     jb.addPrimitive(direction.ToString());
     jb.addField("handUp");
     jb.addPrimitive(handUp.ToString());
     jb.endItem();
 }
Esempio n. 2
0
        public void addToJSON(JSONBuilder jb)
        {
            jb.beginItem();

            jb.addField("dt");
            jb.addPrimitive(dt.ToString());

            jb.addField("pose");
            pose.addToJSON(jb);

            jb.endItem();
        }
Esempio n. 3
0
        public void addToJSON(JSONBuilder jb)
        {
            jb.beginItem();

            jb.addField("dataType");
            jb.addPrimitive(dataType);

            jb.addField("value");
            jb.beginArray();
            foreach (IJSONable obj in value)
            {
                obj.addToJSON(jb);
            }
            jb.endArray();

            jb.endItem();
        }
Esempio n. 4
0
 public void addToJSON(JSONBuilder jb)
 {
     jb.addPrimitive(val.ToString());
 }