tsshapeconstruct.h

来自「五行MMORPG引擎系统V1.0」· C头文件 代码 · 共 50 行

H
50
字号
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------

#ifndef _TSSHAPECONSTRUCT_H_
#define _TSSHAPECONSTRUCT_H_

#ifndef _TSSHAPE_H_
#include "ts/tsShape.h"
#endif
#ifndef _CONSOLEOBJECT_H_
#include "console/consoleObject.h"
#endif
#ifndef _SIMBASE_H_
#include "console/simBase.h"
#endif

/// This class allows an artist to export their animations for the model
/// into the .dsq format.  This class in particular matches up the model
/// with the .dsqs to create a nice animated model.
class TSShapeConstructor : public SimDataBlock
{
   typedef SimDataBlock Parent;

   enum {
      NumSequenceBits = 7,
      MaxSequences = (1 << NumSequenceBits) - 1
   };

   StringTableEntry mShape;
   StringTableEntry mSequence[MaxSequences];

   Resource<TSShape> hShape;

public:

   TSShapeConstructor();
   ~TSShapeConstructor();
   bool onAdd();
   bool preload(bool server, char errorBuffer[256]);
   void packData(BitStream* stream);
   void unpackData(BitStream* stream);

   DECLARE_CONOBJECT(TSShapeConstructor);
   static void initPersistFields();
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?