示例#1
0
 protected TChild CreateFromPrefab(Entity prefabEntity)
 {
     m_creationStrategy = new CreateFromPrefabStrategy(prefabEntity);
     return((TChild)this);
 }
示例#2
0
 protected TChild CreateFromArchetype <T>() where T : IArchetypeDescriptor
 {
     m_creationStrategy = new CreateFromArchetypeStrategy <T>(WorldType.DEFAULT);
     return((TChild)this);
 }
示例#3
0
 protected TChild CreateFromArchetype <T>(WorldType worldType) where T : IClientServerArchetypeDescriptor
 {
     m_creationStrategy = new CreateFromArchetypeStrategy <T>(worldType);
     return((TChild)this);
 }
示例#4
0
 protected TChild CreateEmpty()
 {
     m_creationStrategy = new CreateEmptyStrategy();
     return((TChild)this);
 }
 protected EntityBuilder CreateFromPrefab(Entity prefabEntity)
 {
     creationStrategy = new CreateFromPrefabStrategy(prefabEntity);
     return(this);
 }
 protected EntityBuilder CreateFromArchetype <T>() where T : IArchetypeDescriptor
 {
     creationStrategy = new CreateFromArchetypeStrategy <T>();
     return(this);
 }
 public EntityBuilder SetCreationStrategy(IEntityCreationStrategy strategy)
 {
     creationStrategy = strategy;
     return(this);
 }
 protected EntityBuilder CreateEmpty()
 {
     creationStrategy = new CreateEmptyStrategy();
     return(this);
 }