mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Initial implementation of separated client and server create/destroy functions for module setup
Implements fix so cubemap arrays load correctly when texture resolution settings have been lowered Begun refactor of asset import config editing/settings.
This commit is contained in:
parent
4dcac05b33
commit
d97c05b411
16 changed files with 484 additions and 447 deletions
10
Templates/BaseGame/game/data/ImportTesting/ImportTesting.cs
Normal file
10
Templates/BaseGame/game/data/ImportTesting/ImportTesting.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function ImportTesting::onCreate(%this)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function ImportTesting::onDestroy(%this)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<ModuleDefinition
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
ModuleId="ImportTesting"
|
||||
VersionId="1"
|
||||
Group="Game"
|
||||
scriptFile="ImportTesting.cs"
|
||||
CreateFunction="onCreate"
|
||||
DestroyFunction="onDestroy">
|
||||
<DeclaredAssets
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
Extension="asset.taml"
|
||||
Recurse="true" />
|
||||
<AutoloadAssets
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetType="ComponentAsset"
|
||||
Recurse="true" />
|
||||
<AutoloadAssets
|
||||
canSave="true"
|
||||
canSaveDynamicFields="true"
|
||||
AssetType="GUIAsset"
|
||||
Recurse="true" />
|
||||
</ModuleDefinition>
|
||||
|
|
@ -115,6 +115,7 @@ new Scene(DasBootLevel) {
|
|||
networked = "1";
|
||||
Enabled = "1";
|
||||
internalName = "MeshComponent";
|
||||
MeshAsset = "TTR:DasBoot";
|
||||
};
|
||||
new ShapeCollisionComponent() {
|
||||
componentType = "Collision";
|
||||
|
|
@ -137,46 +138,6 @@ new Scene(DasBootLevel) {
|
|||
Enabled = "1";
|
||||
internalName = "AnimationComponent";
|
||||
};
|
||||
new MeshComponent() {
|
||||
componentType = "Render";
|
||||
friendlyName = "Mesh Component";
|
||||
description = "Causes the object to render a non-animating 3d shape using the file provided.";
|
||||
networked = "1";
|
||||
Enabled = "1";
|
||||
internalName = "MeshComponent";
|
||||
MeshAsset = "TTR:Ucntrlos_ALBEDO";
|
||||
};
|
||||
new ShapeCollisionComponent() {
|
||||
componentType = "Collision";
|
||||
friendlyName = "Shape Collision";
|
||||
description = "A stub component class that physics components should inherit from.";
|
||||
networked = "0";
|
||||
Enabled = "1";
|
||||
internalName = "CollisionComponent";
|
||||
CollisionType = "Collision Mesh";
|
||||
LineOfSightType = "Collision Mesh";
|
||||
DecalType = "Collision Mesh";
|
||||
CollisionMeshPrefix = "Collision";
|
||||
BlockCollisions = "1";
|
||||
};
|
||||
new AnimationComponent() {
|
||||
componentType = "Animation";
|
||||
friendlyName = "Animation(Component)";
|
||||
description = "Allows a rendered mesh to be animated";
|
||||
networked = "1";
|
||||
Enabled = "1";
|
||||
internalName = "AnimationComponent";
|
||||
};
|
||||
};
|
||||
new Skylight() {
|
||||
Enabled = "1";
|
||||
ReflectionMode = "Baked Cubemap";
|
||||
position = "15.7048 -86.4983 63.9716";
|
||||
rotation = "1 0 0 0";
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
persistentId = "8cf2bb0a-8413-11e9-a4b8-a6148a4455c2";
|
||||
reflectionPath = "data/TTR/levels/DasBootLevel/probes/";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
|
|
|||
|
|
@ -14,8 +14,29 @@
|
|||
|
||||
function pbr::create( %this )
|
||||
{
|
||||
echo("LOADING PBR MODULE");
|
||||
}
|
||||
|
||||
function pbr::destroy( %this )
|
||||
{
|
||||
}
|
||||
|
||||
function pbr::onCreateServer(%this)
|
||||
{
|
||||
error("WE HAVE CREATED THE SERVER STUFFS FOR THE PBR MODULE!");
|
||||
}
|
||||
|
||||
function pbr::onDestroyServer(%this)
|
||||
{
|
||||
error("WE HAVE DESTROYED THE SERVER STUFFS FOR THE PBR MODULE!");
|
||||
}
|
||||
|
||||
function pbr::onCreateClient(%this)
|
||||
{
|
||||
error("WE HAVE CREATED THE CLIENT STUFFS FOR THE PBR MODULE!");
|
||||
}
|
||||
|
||||
function pbr::onDestroyClient(%this)
|
||||
{
|
||||
error("WE HAVE DESTROYED THE CLIENT STUFFS FOR THE PBR MODULE!");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue