<commit_before>package gengine.components;

import gengine.math.*;

class AnimatedSprite2D extends UrhoComponent
{
    public function new(?animationSet, ?animation, ?loopMode=0)
    {
        super();

        untyped __js__("this.object = new Module.AnimatedSprite2D(gengine.getContext())");
        untyped __js__("window.dummyNode.addComponent(this.object, 0, 0);");

        if(animationSet != null)
        {
            setAnimationSet(animationSet);

            if(animation != null)
            {
                setAnimation(animation, loopMode);
            }
        }
    }

    public function setAnimationSet(animationSet:Dynamic)
    {
        untyped __js__("this.object.setAnimationSet(animationSet)");
    }

    public function setAnimation(name:String, ?loopMode=0)
    {
        untyped __js__("this.object.setAnimation(name, loopMode)");
    }

    public function setLayer(layer:Int)
    {
        untyped __js__("this.object.setLayer(layer)");
    }

    public function getLayer():Int
    {
        return untyped __js__("this.object.getLayer()");
    }

    public function setEntity(entityName:String)
    {
        untyped __js__("this.object.setEntity(entityName)");
    }

    public function setLoopMode(loopMode:Int)
    {
        untyped __js__("this.object.setLoopMode(loopMode)");
    }

    public function setSpeed(speed:Float)
    {
        untyped __js__("this.object.setSpeed(speed)");
    }
}
<commit_msg>Updated AnimatedSprite2D.hx<commit_after>package gengine.components;

import gengine.math.*;

class AnimatedSprite2D extends UrhoComponent
{
    public function new(?animationSet, ?animation, ?loopMode=0)
    {
        super();

        untyped __js__("this.object = new Module.AnimatedSprite2D(gengine.getContext())");
        untyped __js__("window.dummyNode.addComponent(this.object, 0, 0);");

        if(animationSet != null)
        {
            setAnimationSet(animationSet);

            if(animation != null)
            {
                setAnimation(animation, loopMode);
            }
        }
    }

    public function setAnimationSet(animationSet:Dynamic)
    {
        this.object.setAnimationSet(animationSet);
    }

    public function setAnimation(name:String, ?loopMode=0)
    {
        this.object.setAnimation(name, loopMode);
    }

    public function setLayer(layer:Int)
    {
        this.object.setLayer(layer);
    }

    public function getLayer():Int
    {
        return this.object.getLayer();
    }

    public function setEntity(entityName:String)
    {
        this.object.setEntity(entityName);
    }

    public function setLoopMode(loopMode:Int)
    {
        this.object.setLoopMode(loopMode);
    }

    public function setSpeed(speed:Float)
    {
        this.object.setSpeed(speed);
    }
}

{'fraction_non_alphanumeric': 0.11314655172413793, 'fraction_numerical': 0.004669540229885058, 'mean_word_length': 2.5796915167095116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4619200', 'n_tokens_mistral': 847, 'n_tokens_neox': 835, 'n_words': 128}