public IHttpActionResult Putgame_location(int id, game_location game_location) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if (id != game_location.location_id) { return BadRequest(); } db.Entry(game_location).State = EntityState.Modified; try { db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!game_locationExists(id)) { return NotFound(); } else { throw; } } return StatusCode(HttpStatusCode.NoContent); }
private static void relocateTextMesh(TMPro.TextMeshPro obj, uint con, game_location loc, Vector3 poi) { obj.transform.position = UIHelper.getCamGoodPosition(Program.I().ocgcore.get_point_worldposition(new GPS { controller = con, location = (UInt32)loc }) + poi, -2); }
public IHttpActionResult Getgame_location(int id) { game_location game_location = db.game_location.Find(id); if (game_location == null) { return NotFound(); } return Ok(game_location); }
public gameHiddenButton(game_location l, int p) { ps = new GPS(); ps.controller = (UInt32)p; ps.location = (UInt32)l; ps.position = 0; ps.sequence = 0; Program.I().ocgcore.AddUpdateAction_s(Update); player = p; location = l; gameObject = create(Program.I().mod_ocgcore_hidden_button); }
public IHttpActionResult Postgame_location(game_location game_location) { if (!ModelState.IsValid) { return BadRequest(ModelState); } db.game_location.Add(game_location); db.SaveChanges(); return CreatedAtRoute("DefaultApi", new { id = game_location.location_id }, game_location); }
public IHttpActionResult Deletegame_location(int id) { game_location game_location = db.game_location.Find(id); if (game_location == null) { return NotFound(); } db.game_location.Remove(game_location); db.SaveChanges(); return Ok(game_location); }