Initial commit
This commit is contained in:
20
Torque/SDK/example/demo/server/scripts/staticShape.cs
Normal file
20
Torque/SDK/example/demo/server/scripts/staticShape.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Hook into the mission editor.
|
||||
|
||||
function StaticShapeData::create(%data)
|
||||
{
|
||||
// The mission editor invokes this method when it wants to create
|
||||
// an object of the given datablock type.
|
||||
%obj = new StaticShape() {
|
||||
dataBlock = %data;
|
||||
};
|
||||
return %obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user