private void GenerateAddToManagers(ICodeBlock codeBlock, ReferencedFileSave file) { if (file.GetProperty <bool>(EntityCreationManager.CreateEntitiesInGeneratedCodePropertyName)) { var instanceName = file.GetInstanceName(); codeBlock.Line( $"FlatRedBall.TileEntities.TileEntityInstantiator.CreateEntitiesFrom({instanceName});"); } }
internal void ReactToRfsSelected(ReferencedFileSave rfs) { ReactingToChangedProperties = false; if (GlueState.Self.CurrentReferencedFileSave != null) { if (viewModel == null) { viewModel = new TiledMapEntityCreationViewModel(); } viewModel.CreateEntitiesInGeneratedCode = rfs.GetProperty <bool>( CreateEntitiesInGeneratedCodePropertyName); } ReactingToChangedProperties = true; }