<commit_before>package gengine.components;

import gengine.math.*;

class StaticSprite2D extends UrhoComponent
{
    public inline function new(?sprite)
    {
        super();

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

        if(sprite != null)
        {
            setSprite(sprite);
        }
    }

    public function setSprite(sprite:Dynamic)
    {
        untyped __js__("this.object.setSprite(sprite)");
    }

    public function setDrawRect(rect:Rect)
    {
        untyped __js__("this.object.setDrawRect(rect)");
    }

    public function setTextureRect(rect:Rect)
    {
        untyped __js__("this.object.setTextureRect(rect)");
    }

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

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

    public function setHotSpot(hotSpot:Vector2)
    {
        untyped __js__("this.object.setHotSpot(hotSpot)");
    }

    public function setUseHotSpot(useHotSpot:Bool)
    {
        untyped __js__("this.object.setUseHotSpot(useHotSpot)");
    }

    public function setColor(color:Color)
    {
        untyped __js__("this.object.setColor(color)");
    }

}<commit_msg>Updated StaticSprite2D.hx<commit_after>package gengine.components;

import gengine.math.*;

class StaticSprite2D extends UrhoComponent
{
    public inline function new(?sprite)
    {
        super();

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

        if(sprite != null)
        {
            setSprite(sprite);
        }
    }

    public inline function setSprite(sprite:Dynamic)
    {
        this.object.setSprite(sprite);
    }

    public inline function setDrawRect(rect:Rect)
    {
        this.object.setDrawRect(rect);
    }

    public inline function setTextureRect(rect:Rect)
    {
        this.object.setTextureRect(rect);
    }

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

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

    public inline function setHotSpot(hotSpot:Vector2)
    {
        this.object.setHotSpot(hotSpot);
    }

    public inline function setUseHotSpot(useHotSpot:Bool)
    {
        this.object.setUseHotSpot(useHotSpot);
    }

    public inline function setColor(color:Color)
    {
        this.object.setColor(color);
    }

}
{'fraction_non_alphanumeric': 0.11337099811676082, 'fraction_numerical': 0.004143126177024482, 'mean_word_length': 2.688888888888889, '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': '7050211', 'n_tokens_mistral': 865, 'n_tokens_neox': 842, 'n_words': 132}