Added resource folder for lightweight run-time resources that is also relevant to code, eg. shaders and XML schemas
This commit is contained in:
+1
-1
Submodule assets updated: 2aa3725df7...6b30aa83cf
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="components" elementFormDefault="qualified">
|
||||
<xs:include schemaLocation="Components/Transform.xsd"/>
|
||||
<xs:include schemaLocation="Components/Test.xsd"/>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,6 @@
|
||||
<c:Test>
|
||||
<Integer>1</Integer>
|
||||
<Float>1.333</Float>
|
||||
<Vector X="1.33333" Y="2.33333" Z="3.33333"/>
|
||||
<Quaternion I="1.33333" J="2.33333" K="3.33333"/>
|
||||
</c:Test>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types" xmlns:meta="../Schema.xsd">
|
||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||
|
||||
<xs:element name="Test">
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
<meta:allocation>8</meta:allocation>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="Integer" type="xs:integer" minOccurs="0"/>
|
||||
<xs:element name="Float" type="xs:decimal" minOccurs="0"/>
|
||||
<xs:element name="Vector" type="t:Vector" minOccurs="0"/>
|
||||
<xs:element name="Quaternion" type="t:Quaternion" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,5 @@
|
||||
<TransformComponent>
|
||||
<Position X="0" Y="0" Z="0"/>
|
||||
<Orientation I="0" J="0" K="0"/>
|
||||
<Scale X="1" Y="1" Z="1"/>
|
||||
</TransformComponent>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types" xmlns:meta="../Schema.xsd">
|
||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||
|
||||
<xs:element name="Transform">
|
||||
<xs:annotation>
|
||||
<xs:documentation>It's a transform thingy!</xs:documentation>
|
||||
<xs:appinfo>
|
||||
<meta:allocation>8</meta:allocation>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="Position" type="t:Vector" minOccurs="0">
|
||||
<xs:annotation><xs:documentation>The position vector</xs:documentation></xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="Orientation" type="t:Quaternion" minOccurs="0"/>
|
||||
<xs:element name="Scale" type="t:Vector" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="types" elementFormDefault="qualified">
|
||||
<xs:include schemaLocation="Types/Quaternion.xsd"/>
|
||||
<xs:include schemaLocation="Types/Vector.xsd"/>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="components">
|
||||
<xs:import schemaLocation="Components.xsd" namespace="components"/>
|
||||
|
||||
<xs:element name="Entity">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element name="Components">
|
||||
<xs:complexType>
|
||||
<xs:all>
|
||||
<xs:element ref="c:Transform" minOccurs="0"/>
|
||||
<xs:element ref="c:Test" minOccurs="0"/>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="Children" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="Entity" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="types" elementFormDefault="qualified">
|
||||
<xs:complexType name="Quaternion">
|
||||
<xs:attribute name="I" type="xs:decimal" default="0.0"/>
|
||||
<xs:attribute name="J" type="xs:decimal" default="0.0"/>
|
||||
<xs:attribute name="K" type="xs:decimal" default="0.0"/>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="types" elementFormDefault="qualified">
|
||||
<xs:complexType name="Vector">
|
||||
<xs:attribute name="X" type="xs:decimal" default="0.0"/>
|
||||
<xs:attribute name="Y" type="xs:decimal" default="0.0"/>
|
||||
<xs:attribute name="Z" type="xs:decimal" default="0.0"/>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
+16
-8
@@ -2,26 +2,34 @@
|
||||
|
||||
SET DeployLocation=bin\
|
||||
|
||||
ECHO Deploying resources to %DeployLocation%
|
||||
ECHO Deploying assets to %DeployLocation%
|
||||
:: Asset folders
|
||||
RMDIR "%DeployLocation%\Models"
|
||||
RMDIR "%DeployLocation%\Textures"
|
||||
RMDIR "%DeployLocation%\Sounds"
|
||||
MKLINK "%DeployLocation%\Models\" "assets\Models" /J
|
||||
RMDIR "%DeployLocation%\Textures"
|
||||
MKLINK "%DeployLocation%\Textures\" "assets\Textures\" /J
|
||||
MKLINK "%DeployLocation%\Sounds\" "assets\Sounds\" /J
|
||||
:: Configuration files
|
||||
MKLINK "%DeployLocation%\DefaultConfig.ini" "assets\DefaultConfig.ini" /H
|
||||
RMDIR "%DeployLocation%\Audio"
|
||||
MKLINK "%DeployLocation%\Audio\" "assets\Audio\" /J
|
||||
|
||||
ECHO Deploying resources to %DeployLocation%
|
||||
:: Schemas
|
||||
RMDIR "%DeployLocation%\Schema"
|
||||
MKLINK "%DeployLocation%\Schema\" "resources\Schema" /J
|
||||
:: Shaders
|
||||
RMDIR /S /Q "%DeployLocation%\Shaders"
|
||||
MKDIR "%DeployLocation%\Shaders"
|
||||
MKLINK "%DeployLocation%\Shaders\OpenGL\" "src\game\Rendering\OpenGL\Shaders\" /J
|
||||
MKLINK "%DeployLocation%\Shaders\DirectX\" "src\game\Rendering\DirectX\Shaders\" /J
|
||||
MKLINK "%DeployLocation%\Shaders\" "resources\Shaders" /J
|
||||
MKLINK "%DeployLocation%\Shaders\" "resources\Shaders" /J
|
||||
:: Configuration files
|
||||
MKLINK "%DeployLocation%\DefaultConfig.ini" "resources\DefaultConfig.ini" /H
|
||||
|
||||
:: Platform specific binaries
|
||||
IF "%~1"=="" GOTO :EOF
|
||||
ECHO Deploying %1 binaries to %DeployLocation%
|
||||
COPY "deps\bin\%1\x64\*.dll" "%DeployLocation%"
|
||||
|
||||
:: Licenses
|
||||
::ECHO Copying licenses %DeployLocation%
|
||||
::COPY "libs\assimp-3.1.1\LICENSE" "%ConfigPath%\Assimp License.txt"
|
||||
::COPY "libs\glew-1.11.0\LICENSE.txt" "%ConfigPath%\GLEW License.txt"
|
||||
::COPY "libs\glm-0.9.5.4\copying.txt" "%ConfigPath%\GLM License.txt"
|
||||
|
||||
Reference in New Issue
Block a user