public void Load(ContentManager content) { _blockWorldEffect = content.Load <Effect>("blockWorld"); _modelEffect = content.Load <Effect>("modelEffect"); _blockAtlas = content.Load <Texture2D>("IsomitesAtlas"); EntitySchematics.Init(content, _modelEffect); SM = new SegmentManager(Device); _editor = new WorldEditor(SM); _editor.LoadContent(content, _modelEffect); EC = new EntityContainer(this); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(0, 4, 0))); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(2, 4, 0))); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(4, 4, 0))); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(6, 4, 0))); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(8, 4, 0))); EC.AddEntityExternal(new BaseEntity(this, EntitySchematics.Tree, new Vector3(10, 4, 0))); _man = new BaseEntityAi(this, EntitySchematics.Man, new Vector3(10, 4, 10)); JM.AddJob(new EntityJob(EntitySchematics.Tree)); }
public void AddEntity(BaseEntity entity) { EC.AddEntityExternal(entity); }