예제 #1
0
        public EntityInternal CreateEntity(long templateId, string configPath, long entityId)
        {
            EntityInternal entity = this.engineService.CreateEntityBuilder().SetId(entityId).SetName(configPath).SetConfig(configPath).SetTemplate(TemplateRegistry.GetTemplateInfo(templateId)).Build(false);

            this.RegisterEntity(entity, EntityState.Created);
            return(entity);
        }