makepad/libs/game/blocks/Cargo.toml
andodeki 435135ed50 feat(arcade): port makepad game libs + arcade from makepad-internal onto the fork
Reintroduce apps/arcade and the ten game crates that were ripped out of
the fork (assets, audio, blocks, coedit, gen, net, pkg, render, script,
session), from makepad-internal/dev. Reconcile against the fork's layout:

- makepad-game-sim/math come from the fork's existing libs/sim + sim/math;
  the copied internal libs/game/{sim,math} are dropped and the kept game
  crates plus arcade point at ../../sim and ../../sim/math.
- arcade AI is rewritten off the removed makepad-ai agent API onto the
  makepad-ai-hub headless ChatProvider worker (example/cad pattern):
  AiWorker{send,cancel,poll}, ai_worker_loop driving
  ClaudeApiChatProvider(ClaudeCli), AiWorkerEvent availability/delta/
  done/error mapped into the chat feed and authoring land_edit, with
  main.rs send_message/cancel_request/event-drain rebuilt around it.
- the game-script sandbox is adapted to the fork's jailed splash storage:
  every isolate gets mod.fs = splash_storage jail; splaes splash_storage
  set_root_for_heap is now public so the ScriptHost (or Splash) can grant
  a per-game jail root. ENT font: build.rs/dispatch.rs entities fill new
  fork sim Entity/Part fields via ..Default::default(); world_raycast now
  borrows mutably and returns the material id.

cargo check -p makepad-arcade and the game + arcade test suites pass.
2026-09-05 05:49:12 +03:00

24 lines
1.1 KiB
TOML

[package]
name = "makepad-game-blocks"
version = "0.1.0"
edition = "2021"
description = "High-level game building blocks (cars, characters, planes, brains, race kit) for Makepad Arcade"
license = "MIT OR Apache-2.0"
[dependencies]
makepad-game-math = { path = "../../sim/math" }
makepad-game-sim = { path = "../../sim" }
makepad-game-audio = { path = "../audio" }
makepad-math = { path = "../../math", version = "1.0.0" }
makepad-box3d = { path = "../../box3d" }
[dev-dependencies]
# Tests only: proving a walker can enter a REAL generated room is the point of
# the interior work, and a synthetic box would prove nothing about it. The
# crate itself stays independent of geometry generation — blocks are behaviour.
makepad-game-gen = { path = "../gen" }
# Tests only, same reason: "the car's body does not float above the road" is a
# claim about a REAL Kenney GLB's vertices placed on a REAL settled chassis.
# Split across two crates it is two half-tests that both pass while the car
# hovers, which is exactly what happened.
makepad-game-render = { path = "../render" }