Ejemplo n.º 1
0
        private void AddCustomTypes()
        {
            Script  managerScript = GD.Load <Script>("res://Addons/Wayfarer.Core/Core/Systems/Managers/Manager.cs");
            Texture managerIcon   = GD.Load <Texture>("res://Addons/Wayfarer.Core/Assets/Icons/manager.png");

            if (managerScript != null)
            {
                if (managerIcon != null)
                {
                    AddCustomType("Manager", "Node", managerScript, managerIcon);
                }
                else
                {
                    Texture icon = GD.Load <Texture>("res://icon.png");
                    AddCustomType("Manager", "Node", managerScript, icon);
                }
            }
        }
 VoxelTextureInfo(Godot.Texture voxelTexture, Vector2 origin, Vector2 size)
 {
     VoxelTexture = voxelTexture;
     Origin       = origin;
     Size         = size;
 }