Ejemplo n.º 1
0
        public static Layer GenTestLayer(IAudioClipHandle handle)
        {
            var layer	= new Layer();
            layer.clipHandle	= handle;

            return layer;
        }
Ejemplo n.º 2
0
        //
        public static Layer CreateFromJSON(JSONObject json, IAudioClipPack clipPack)
        {
            var newlayer		= new Layer();

            var clipname		= json.GetField("clip").str;
            newlayer.clipHandle	= clipPack.GetHandle(clipname);

            json.GetField("tension", (tensionarr) =>
                {
                    var list	= tensionarr.list;
                    var count	= list.Count;
                    for(int i = 0; i < count; i++)
                    {
                        newlayer.AddTensionAutomation(Engine.Utils.ParseAutomationFromJSON(list[i]));
                    }
                });

            return newlayer;
        }