public Oven(string name) : base(name) { this.OnPlaceAudio = "stonePlace"; this.OnRemoveAudio = "stoneDelete"; this.SideAll = "stonebricks"; this.SideXPlus = "ovenunlitfront"; this.DestructionTime = 800; this.NPCLimit = 0; this.RotatableXPlus = "ovenx+"; this.RotatableXMinus = "ovenx-"; this.RotatableZPlus = "ovenz+"; this.RotatableZMinus = "ovenz-"; this.IsPlaceable = true; this.IsAutoRotatable = true; CustomDataItem[] customData = { new CustomDataItem("volume", 0.2f), new CustomDataItem("intensity", 2.0f), new CustomDataItem("range", 8.0f), new CustomDataItem("red", 195.0f), new CustomDataItem("green", 135.0f), new CustomDataItem("blue", 46.0f), }; CustomDataHelper c = new CustomDataHelper(customData); this.CustomData = c.customDataNode; this.Register(); }
public ActionResult QueryLatestMovies([DataSourceRequest] DataSourceRequest request) { try { var movies = _movieRepository.GetAllQueryable().OrderByDescending(x => x.RowId).ToList(); var viewModel = from m in movies select new MovieListViewModel { MovieId = m.RowId, Poster = m.Poster, Plot = m.Plot, ReleaseYear = m.ReleaseYear, Title = CustomDataHelper.HtmlMovieDisplay(new UserItem() { Name = m.Title, RowId = m.RowId }), Actors = CustomDataHelper.HtmlActorDisplay(m.ActorMovieRelationships.Select(a => new UserItem() { RowId = a.RowId, Name = a.Actor.Name }).ToList()), Producer = CustomDataHelper.HtmlProducerDisplay(new UserItem() { Name = m.Producer.Name, RowId = m.ProducerId }) }; return(Json(viewModel.ToDataSourceResult(request))); } catch (Exception ex) { throw ex; } }
public void Init() { const string site = "site"; const string user = "******"; const string password = "******"; _helper = new CustomDataImportHelper(site, user, password, "https://secure.eloqua.com/API/bulk/1.0/"); _dataHelper = new CustomDataHelper(site, user, password, "https://secure.eloqua.com/API/bulk/1.0/"); }
public Furnace(string name) : base(name) { this.OnPlaceAudio = "stonePlace"; this.OnRemoveAudio = "stoneDelete"; this.IsAutoRotatable = true; this.IsPlaceable = true; this.SideAll = "furnaceside"; this.SideYPlus = "furnacelittop"; this.SideXPlus = "furnacelitfront"; this.DestructionTime = 800; this.NPCLimit = 0; this.RotatableXPlus = "furnacex+"; this.RotatableXMinus = "furnacex-"; this.RotatableZPlus = "furnacez+"; this.RotatableZMinus = "furnacez-"; CustomDataItem[] customDataUp = { new CustomDataItem("volume", 0.3f), new CustomDataItem("intensity", 2.5f), new CustomDataItem("range", 8.0f), new CustomDataItem("red", 195.0f), new CustomDataItem("green", 135.0f), new CustomDataItem("blue", 46.0f), }; CustomDataItem[] customDataSide = { new CustomDataItem("volume", 0.2f), new CustomDataItem("intensity", 1.0f), new CustomDataItem("range", 8.0f), new CustomDataItem("red", 195.0f), new CustomDataItem("green", 135.0f), new CustomDataItem("blue", 46.0f), }; Pipliz.JSON.JSONNode tempCustomDataNode = new Pipliz.JSON.JSONNode(Pipliz.JSON.NodeType.Object); CustomDataHelper cu = new CustomDataHelper(customDataUp); tempCustomDataNode.SetAs("up", cu.customDataNode); CustomDataHelper cs = new CustomDataHelper("side", customDataSide, cu.customDataNode); tempCustomDataNode.SetAs("side", cs.customDataNode); this.CustomData = tempCustomDataNode; this.Register(); }
public Banner(string name) : base(name) { this.OnPlaceAudio = "woodPlace"; this.OnRemoveAudio = "woodDeleteLight"; this.OnRemoveAmount = 0; this.IsSolid = false; this.NeedsBase = true; this.AllowCreative = true; this.Mesh = "banner"; CustomDataItem[] customData = { new CustomDataItem("farShadows", true) }; CustomDataHelper c = new CustomDataHelper(customData); this.CustomData = c.customDataNode; this.Register(); }
public InfiniteIron(string name) : base(name) { this.OnRemoveAudio = "stoneDelete"; this.DestructionTime = 1250; this.IsDestructible = false; Classes.ItemHelper.OnRemove[] onRemoveNode = { new Classes.ItemHelper.OnRemove("ironore", 1, 1.0f), }; this.OnRemove = onRemoveNode; CustomDataItem[] customData = { new CustomDataItem("minerIsMineable", true), new CustomDataItem("minerMiningTime", 8.0f) }; CustomDataHelper c = new CustomDataHelper(customData); this.CustomData = c.customDataNode; this.Register(); }
public Torch(string name) : base(name) { this.OnRemoveAudio = "woodDeleteLight"; this.OnPlaceAudio = "woodPlace"; this.MaxStackSize = 600; this.IsSolid = false; this.NPCLimit = 0; this.IsPlaceable = true; CustomDataItem[] customData = { new CustomDataItem("volume", 0.5f), new CustomDataItem("intensity", 13.5f), new CustomDataItem("range", 16.0f), new CustomDataItem("red", 195.0f), new CustomDataItem("green", 135.0f), new CustomDataItem("blue", 46.0f), }; CustomDataHelper c = new CustomDataHelper(customData); this.CustomData = c.customDataNode; this.Register(); }
public ChickenCoop(string name) : base(name) { this.OnPlaceAudio = "woodPlace"; this.OnRemoveAudio = "woodDeleteLight"; this.Mesh = "ChickenCoop"; this.SideAll = "planks"; this.IsPlaceable = true; this.AllowCreative = true; CustomDataItem[] customData = { new CustomDataItem("minerIsMineable", true), new CustomDataItem("minerMiningTime", 8.0f) }; CustomDataHelper c = new CustomDataHelper(customData); this.CustomData = c.customDataNode; Classes.ItemHelper.OnRemove[] onRemoveNode = { new Classes.ItemHelper.OnRemove("feather", 2, 1.0f) }; this.OnRemove = onRemoveNode; this.Register(); }
public void Init() { _helper = new CustomDataHelper("site", "user", "password", "https://secure.eloqua.com/API/bulk/1.0/"); }