working version for linux with usable scripting

This commit is contained in:
Hartmut Seichter 2019-01-16 15:40:37 +01:00
parent 28905d301e
commit 9d0c60c5f4
401 changed files with 90281 additions and 11 deletions

View file

@ -1,7 +1,6 @@
set(hdrs
include/pw/scripting/script.hpp
include/pw/scripting/scripting.hpp
)
set(srcs
@ -12,8 +11,10 @@ set(srcs
src/script_system.cpp
src/script_scene.hpp
src/script_scene.cpp
src/script_visual.cpp
)
src/script_visual.hpp
src/script_visual.cpp
src/scripting.hpp
)
add_library(pwscripting
STATIC

View file

@ -1,8 +1,6 @@
#include "pw/scripting/script.hpp"
#include "pw/scripting/scripting.hpp"
#include "pw/scene/node.hpp"
#include "scripting.hpp"
#include "script_core.hpp"
#include "script_system.hpp"

View file

@ -1,7 +1,7 @@
#ifndef PW_SCRIPTING_PRIVATE_CORE_HPP
#define PW_SCRIPTING_PRIVATE_CORE_HPP
#include <pw/scripting/scripting.hpp>
#include "scripting.hpp"
namespace pw {

View file

@ -1,7 +1,7 @@
#ifndef PW_SCRIPTING_PRIVATE_SCENE_HPP
#define PW_SCRIPTING_PRIVATE_SCENE_HPP
#include <pw/scripting/scripting.hpp>
#include "scripting.hpp"
namespace pw {

View file

@ -45,6 +45,7 @@ void script_system::load(sol::table &ns)
ns.new_usertype<window>("window",
"update",&window::update,
"on_update",sol::writeonly_property(&window::set_on_update),
"title",sol::writeonly_property(&window::set_title),
"size",sol::property(&window::size,&window::set_size),
"position",sol::property(&window::position,&window::set_position),

View file

@ -1,7 +1,7 @@
#ifndef PW_SCRIPTING_PRIVATE_SYSTEM_HPP
#define PW_SCRIPTING_PRIVATE_SYSTEM_HPP
#include <pw/scripting/scripting.hpp>
#include "scripting.hpp"
namespace pw {

View file