Пример #1
0
        public static JsonObject serialize(RotationFeature feature)
        {
            JsonObject obj = new JsonObject(JsonObject.JsonType.OBJECT);

            obj["value"] = feature.value;
            return(obj);
        }
Пример #2
0
        public override ParticleFeature create(JsonObject initData)
        {
            float val = 0f;

            if (initData["value"] != null)
            {
                val = (float)initData["value"];
            }
            RotationFeature lf = new RotationFeature(val);

            return(lf);
        }