src/engine/LibraryEntities.h

Go to the documentation of this file.
00001 
00012 #ifndef LIBRARYENTITIES_H
00013 #define LIBRARYENTITIES_H
00014 
00015 #include "EntityTemplate.h"
00016 
00017 namespace green
00018 {
00019         class DefaultEntity
00020         {
00021                 public:
00022                         static EntityTemplatePtr CreateTemplate()
00023                         {
00024                                 // Create an InitFormat with no arguments
00025                                 InitFormatPtr emptyInitFormat(new InitFormat());
00026                                 
00027                                 // create a new entity template for the default type of entity
00028                                 EntityTemplatePtr newEntityType(new EntityTemplate());
00029                                 
00030                                 // Set the new EntityTemplate's InitFormat
00031                                 newEntityType->SetInitFormat(emptyInitFormat);
00032                                 
00033                                 return newEntityType;
00034                         }
00035         };
00036         
00037 }
00038 
00039 #endif

Generated on Fri Apr 27 10:27:37 2007 for Green Engine by  doxygen 1.5.1