working version for linux with usable scripting
This commit is contained in:
parent
28905d301e
commit
9d0c60c5f4
401 changed files with 90281 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
0
src/scripting/src/script_visual.hpp
Normal file
0
src/scripting/src/script_visual.hpp
Normal file
Loading…
Add table
Add a link
Reference in a new issue