void Start() { //initiation and evaluation shield = 0; bedManager = managerObject.GetComponent <BedManager>(); collisionManager = managerObject.GetComponent <CollisionManager>(); snakeBody = new List <Vector4>(); body = new List <GameObject>(); headPosition = new Vector2(20, 20); headDirection = Constants.HEAD_DIRECTION_RIGHT; overallManagerHandle = managerObject.GetComponent <OverallTileManager>(); homeManager = managerObject.GetComponent <HomeManager>(); followerHandle = cameraObject.GetComponent <SmoothFollow>(); followerHandle.updateTargetPosition(headPosition); followerHandle.updateSize(5); head = Instantiate(overallManagerHandle.avaliableSpritePrefabs[Constants.TO_SPRITE_ID_OFFSET], headPosition, transform.rotation); //TEST: with body /* * addBody(Constants.SPRITE_WOOD); * addBody(Constants.SPRITE_WOOD); * addBody(Constants.SPRITE_WOOD); * addBody(Constants.SPRITE_STONE); * addBody(Constants.SPRITE_WOOD); * addBody(Constants.SPRITE_WOOD); * addBody(Constants.SPRITE_STONE); */ //endtest makeASweetHome(headPosition + new Vector2(-2, 3)); }
// Use this for initialization void Start() { bedManager = GetComponent <BedManager>(); permenant = new List <Vector2Int>(); tileManager = gameObject.GetComponent <OverallTileManager>(); searchDirections = new int[4, 2] { { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 } }; directions = new int[4, 2, 2] { { { -1, 0 }, { 1, 0 } }, { { 0, 1 }, { 0, -1 } }, { { 1, 0 }, { -1, 0 } }, { { 0, -1 }, { 0, 1 } } }; // homeBody = new List<Vector2Int>(); }
private void Start() { bedM = FindObjectOfType <BedManager>(); if (GameManager.player != null) { if (GameManager.player.inventory != null) { inventory = GameManager.player.inventory; } } GameManager.playerCombat.Inititialize(); GameManager.playerCombat.Image = GameManager.instance.playerIcon; }
public void PrintService() { ReportModel model = new ReportModel(); model.Parameters = new List <ReportParameter> { new ReportParameter("Company", model.Company.ToUpper()), new ReportParameter("Address", model.Address), }; model.ReportDataSource.Name = "BedList"; DataTable dt = new BedManager().BedList(); model.ReportDataSource.Value = dt; model.ReportPath = "GHospital_Care.Report.rptBedList.rdlc"; model.Show(model, this); }
public int LoadPositionedElementData( List<RecProductionFormStd> forms, BedFilter filter ) { _filter = filter; if( forms == null || forms.Count == 0 ) { string msg = string.Format( "No forms defined!" ); throw new FaultException<BusinessFaultContract>( new BusinessFaultContract() { Argument = msg }, "Cannot manage form!" ); } foreach( RecProductionFormStd f in forms ) { _beds.Add( new ExBed( f, filter ) ); } // Load existing elements BedManager mgr = new BedManager(); CastData castData = mgr.LoadBedPlanning( filter, null ); List<RecProductionFormStd> existingData = castData.CastList; foreach( ExBed bed in _beds ) { bed.AddExistingData( existingData ); } return 0; }