roamwright 0.61.2 → 0.61.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +13 -1
- package/motion/crowd-pose.js +3 -5
- package/package.json +1 -1
- package/rendering/crowd-batches.js +51 -20
- package/rendering/crowd-system.js +15 -0
- package/rendering/farm-livestock.js +109 -0
package/index.js
CHANGED
|
@@ -63,6 +63,7 @@ export { createIrrigatedFieldSurface, IRRIGATED_FIELD_KIND, IRRIGATED_FIELD_SURF
|
|
|
63
63
|
export { DRYSTONE_WALL, FIELD_STONE, drystoneStone, planDrystoneWall } from './geometry/drystone-wall.js';
|
|
64
64
|
export { FARM_BOUNDARIES, planFieldBoundaries } from './geometry/farm-boundaries.js';
|
|
65
65
|
export { meshFarmCells, scatterFarmLots } from './rendering/farm-cells.js';
|
|
66
|
+
export { DEFAULT_LIVESTOCK_CASTS, createLivestockCache } from './rendering/farm-livestock.js';
|
|
66
67
|
export { DEFAULT_FARM_HERDS, FARM_LIFE, herdPlaces, parcelPlaces, planFarmLife, ploughSite } from './geometry/farm-life.js';
|
|
67
68
|
export { STOOK, createStook } from './geometry/prop-stook.js';
|
|
68
69
|
export { PLOUGH, ploughGear } from './geometry/prop-plough.js';
|
|
@@ -169,7 +170,18 @@ export { planCrewAtStations, planTownsfolk } from './motion/crowd-town.js';
|
|
|
169
170
|
export { driveToWater, trekToWater, waterNear } from './motion/crowd-water.js';
|
|
170
171
|
export { createCrowdVisibility } from './rendering/crowd-visibility.js';
|
|
171
172
|
export { createHerdRenderer, createHerdSkins } from './rendering/crowd-herd.js';
|
|
172
|
-
export {
|
|
173
|
+
export {
|
|
174
|
+
DEFAULT_BEARERS,
|
|
175
|
+
DEFAULT_BY_ROLE,
|
|
176
|
+
DEFAULT_CROWD_HAIR,
|
|
177
|
+
DEFAULT_CROWD_LOOKS,
|
|
178
|
+
DEFAULT_CROWD_SKINS,
|
|
179
|
+
DEFAULT_SOLDIER_BEARER,
|
|
180
|
+
DEFAULT_UNIFORMS,
|
|
181
|
+
bakeCrowdWalks,
|
|
182
|
+
createCrowdBatches,
|
|
183
|
+
createLookPicker,
|
|
184
|
+
} from './rendering/crowd-batches.js';
|
|
173
185
|
export { createCrowdUpdater, registerCrowd } from './rendering/crowd-update.js';
|
|
174
186
|
export { createCrowdSystem } from './rendering/crowd-system.js';
|
|
175
187
|
|
package/motion/crowd-pose.js
CHANGED
|
@@ -74,23 +74,21 @@ export function crowdMotion() {
|
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Creates a crowd poser bound to a world's seeded hash, kind-to-bearing mapper, busy-focus predicate,
|
|
77
|
-
* and
|
|
77
|
+
* and well crank dimensions. Callers pass the target pose-texture buffer directly on each call.
|
|
78
78
|
*
|
|
79
79
|
* @param {object} [options]
|
|
80
80
|
* @param {(x: number, y: number, salt?: number) => number} [options.hash] Seeded 2D hash for combat rhythm variation.
|
|
81
81
|
* @param {(kind: string, focus: string|undefined) => import('./crowd-attention.js').CrowdBearing} [options.bearing] Maps crowd kind + focus to engine bearing.
|
|
82
82
|
* @param {(focus: string|undefined) => boolean} [options.busy] Returns true for focuses that ignore stage/alarm attention.
|
|
83
|
-
* @param {() => Float32Array|null} [options.getPoseData] Optional default target buffer when `data` is omitted.
|
|
84
83
|
* @param {number} [options.wellStand=WELL_STAND] Distance from well crank axle (metres).
|
|
85
84
|
* @param {number} [options.wellArm=WELL_ARM] Well crank arm radius (metres).
|
|
86
85
|
* @param {number} [options.wellCrank=WELL_CRANK] Well crank axle height (metres).
|
|
87
|
-
* @returns {(g: object, variant: object, row: number, motion: ReturnType<typeof crowdMotion>, data
|
|
86
|
+
* @returns {(g: object, variant: object, row: number, motion: ReturnType<typeof crowdMotion>, data: Float32Array) => void}
|
|
88
87
|
*/
|
|
89
88
|
export function createCrowdPoser({
|
|
90
89
|
hash = defaultHash,
|
|
91
90
|
bearing = defaultBearing,
|
|
92
91
|
busy = defaultBusy,
|
|
93
|
-
getPoseData = null,
|
|
94
92
|
wellStand = WELL_STAND,
|
|
95
93
|
wellArm = WELL_ARM,
|
|
96
94
|
wellCrank = WELL_CRANK,
|
|
@@ -167,7 +165,7 @@ export function createCrowdPoser({
|
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
|
|
170
|
-
return function crowdPose(g, variant, row, motion, data
|
|
168
|
+
return function crowdPose(g, variant, row, motion, data) {
|
|
171
169
|
const { t, phase, speed, ground, focus } = motion,
|
|
172
170
|
{ head, lidA, cloak, rig } = variant,
|
|
173
171
|
b = rig.bones;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roamwright",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.3",
|
|
4
4
|
"description": "A procedural worldbuilding engine built on top of Three.js. Generate landscapes with rivers and changing weather, animate crowds, and explore on foot or in flight.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"threejs",
|
|
@@ -122,21 +122,38 @@ export function bakeCrowdWalks(geos, variant, crowdPose) {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Creates a crowd look picker from generic or world-extended uniform, bearer, and role tables.
|
|
127
|
+
*
|
|
128
|
+
* @param {object} [options]
|
|
129
|
+
* @param {Record<string, number[]>} [options.uniforms=DEFAULT_UNIFORMS] Uniformed look index lists keyed by crowd kind.
|
|
130
|
+
* @param {Record<string, number>} [options.bearers=DEFAULT_BEARERS] Bearer look indices keyed by crowd kind.
|
|
131
|
+
* @param {number} [options.soldierBearer=DEFAULT_SOLDIER_BEARER] Fallback bearer look index for kinds absent from `bearers`.
|
|
132
|
+
* @param {Record<string, number[]>} [options.byRole=DEFAULT_BY_ROLE] Civilian look index pools keyed by member role.
|
|
133
|
+
* @returns {(group: object, member: object, index: number, pick: Function) => number}
|
|
134
|
+
*/
|
|
135
|
+
export function createLookPicker({
|
|
136
|
+
uniforms = DEFAULT_UNIFORMS,
|
|
137
|
+
bearers = DEFAULT_BEARERS,
|
|
138
|
+
soldierBearer = DEFAULT_SOLDIER_BEARER,
|
|
139
|
+
byRole = DEFAULT_BY_ROLE,
|
|
140
|
+
} = {}) {
|
|
141
|
+
return function pickLook(group, member, index, pick) {
|
|
142
|
+
const choices =
|
|
143
|
+
uniforms[group.kind] ||
|
|
144
|
+
(group.kind === 'camp' || group.kind === 'guard'
|
|
145
|
+
? [6]
|
|
146
|
+
: group.kind === 'sappers'
|
|
147
|
+
? [14]
|
|
148
|
+
: group.kind === 'plain'
|
|
149
|
+
? [7]
|
|
150
|
+
: group.festival
|
|
151
|
+
? [8, 8, 0, 5]
|
|
152
|
+
: group.kind === 'mob'
|
|
153
|
+
? [0, 1, 2, 3, 4, 5]
|
|
154
|
+
: byRole[member.role] || [0, 2, 3, 5]);
|
|
155
|
+
return member.held ? (bearers[group.kind] ?? soldierBearer) : pick(index, 38, choices);
|
|
156
|
+
};
|
|
140
157
|
}
|
|
141
158
|
|
|
142
159
|
/**
|
|
@@ -153,9 +170,14 @@ function defaultPickLook(group, member, index, pick) {
|
|
|
153
170
|
* @param {Array<[string, object]>} [config.looks=DEFAULT_CROWD_LOOKS] Look table `[kindName, figureLookSpec]`.
|
|
154
171
|
* @param {number[]} [config.skins=DEFAULT_CROWD_SKINS] Default skin hex palette.
|
|
155
172
|
* @param {number[]} [config.hair=DEFAULT_CROWD_HAIR] Default hair hex palette.
|
|
173
|
+
* @param {Record<string, { skins?: number[], hair?: number[] }>|null} [config.palettesByKind=null] Optional per-crowd-kind skin/hair palette overrides.
|
|
156
174
|
* @param {(x: number, y: number, salt?: number) => number} [config.hash] Seeded 2D hash for look and palette picking.
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
175
|
+
* @param {Record<string, number[]>} [config.uniforms=DEFAULT_UNIFORMS] Uniformed look index lists keyed by crowd kind (used when `pickLook` is omitted).
|
|
176
|
+
* @param {Record<string, number>} [config.bearers=DEFAULT_BEARERS] Bearer look indices keyed by crowd kind (used when `pickLook` is omitted).
|
|
177
|
+
* @param {number} [config.soldierBearer=DEFAULT_SOLDIER_BEARER] Fallback bearer look index (used when `pickLook` is omitted).
|
|
178
|
+
* @param {Record<string, number[]>} [config.byRole=DEFAULT_BY_ROLE] Civilian look index pools keyed by member role (used when `pickLook` is omitted).
|
|
179
|
+
* @param {((group: object, member: object, index: number, pick: Function) => number)|null} [config.pickLook=null] Optional custom look picker overriding table-based lookup.
|
|
180
|
+
* @param {((group: object, member: object, index: number, pick: Function) => [number, number])|null} [config.pickSkinHair=null] Optional custom `[skinHex, hairHex]` picker overriding `palettesByKind`/`skins`/`hair`.
|
|
159
181
|
* @param {(kind: string) => boolean} [config.hasFirewood=carriesFirewood] Predicate for whether a look carries firewood.
|
|
160
182
|
* @param {(kind: string) => number} [config.carryBendOf] Forearm bend (radians) for left-hand carried items (`0` if none).
|
|
161
183
|
*/
|
|
@@ -169,12 +191,18 @@ export function createCrowdBatches({
|
|
|
169
191
|
looks = DEFAULT_CROWD_LOOKS,
|
|
170
192
|
skins = DEFAULT_CROWD_SKINS,
|
|
171
193
|
hair = DEFAULT_CROWD_HAIR,
|
|
194
|
+
palettesByKind = null,
|
|
172
195
|
hash = defaultHash,
|
|
173
|
-
|
|
196
|
+
uniforms = DEFAULT_UNIFORMS,
|
|
197
|
+
bearers = DEFAULT_BEARERS,
|
|
198
|
+
soldierBearer = DEFAULT_SOLDIER_BEARER,
|
|
199
|
+
byRole = DEFAULT_BY_ROLE,
|
|
200
|
+
pickLook = null,
|
|
174
201
|
pickSkinHair = null,
|
|
175
202
|
hasFirewood = carriesFirewood,
|
|
176
203
|
carryBendOf = kind => (kind === 'basket' ? -0.68 : kind === 'sack' ? -0.16 : 0),
|
|
177
204
|
}) {
|
|
205
|
+
const resolveLook = pickLook ?? createLookPicker({ uniforms, bearers, soldierBearer, byRole });
|
|
178
206
|
let poseTexture = null,
|
|
179
207
|
activeBatches = null,
|
|
180
208
|
warmFigure = null,
|
|
@@ -338,7 +366,7 @@ export function createCrowdBatches({
|
|
|
338
366
|
for (const c of groups)
|
|
339
367
|
for (let i = 0; i < c.list.length; i++) {
|
|
340
368
|
const g = c.list[i];
|
|
341
|
-
const look =
|
|
369
|
+
const look = resolveLook(c, g, i, pick);
|
|
342
370
|
g.look = look;
|
|
343
371
|
g.row = row++;
|
|
344
372
|
g.lod = 0;
|
|
@@ -349,7 +377,10 @@ export function createCrowdBatches({
|
|
|
349
377
|
sizes[look]++;
|
|
350
378
|
const offset = (g.row * CROWD_POSE_WIDTH + CROWD_BONES * 3) * 4;
|
|
351
379
|
g.c1.toArray(data, offset);
|
|
352
|
-
const
|
|
380
|
+
const kindPalette = palettesByKind?.[c.kind];
|
|
381
|
+
const [skinHex, hairHex] = pickSkinHair
|
|
382
|
+
? pickSkinHair(c, g, i, pick)
|
|
383
|
+
: [pick(i, 39, kindPalette?.skins ?? skins), pick(i, 40, kindPalette?.hair ?? hair)];
|
|
353
384
|
_cc.setHex(skinHex).toArray(data, offset + 4);
|
|
354
385
|
_cc.setHex(hairHex).toArray(data, offset + 8);
|
|
355
386
|
}
|
|
@@ -51,7 +51,12 @@ import { createFigureAssembler } from './figure-skeleton.js';
|
|
|
51
51
|
* @param {Array<[string, object]>} [config.looks] Crowd look table forwarded to `createCrowdBatches`.
|
|
52
52
|
* @param {number[]} [config.skins] Skin tone hex palette forwarded to `createCrowdBatches`.
|
|
53
53
|
* @param {number[]} [config.hair] Hair tone hex palette forwarded to `createCrowdBatches`.
|
|
54
|
+
* @param {Record<string, { skins?: number[], hair?: number[] }>|null} [config.palettesByKind] Per-crowd-kind skin/hair overrides forwarded to `createCrowdBatches`.
|
|
54
55
|
* @param {(x: number, y: number, salt?: number) => number} [config.hash] Seeded 2D hash forwarded to `createCrowdBatches` and `registerCrowd`.
|
|
56
|
+
* @param {Record<string, number[]>} [config.uniforms] Uniform look lists forwarded to `createCrowdBatches`.
|
|
57
|
+
* @param {Record<string, number>} [config.bearers] Bearer look indices forwarded to `createCrowdBatches`.
|
|
58
|
+
* @param {number} [config.soldierBearer] Fallback bearer look index forwarded to `createCrowdBatches`.
|
|
59
|
+
* @param {Record<string, number[]>} [config.byRole] Role look pools forwarded to `createCrowdBatches`.
|
|
55
60
|
* @param {Function} [config.pickLook] Custom look picker forwarded to `createCrowdBatches`.
|
|
56
61
|
* @param {Function|null} [config.pickSkinHair] Custom skin/hair picker forwarded to `createCrowdBatches`.
|
|
57
62
|
* @param {Function} [config.hasFirewood] Firewood predicate forwarded to `createCrowdBatches`.
|
|
@@ -90,7 +95,12 @@ export function createCrowdSystem({
|
|
|
90
95
|
looks,
|
|
91
96
|
skins,
|
|
92
97
|
hair,
|
|
98
|
+
palettesByKind,
|
|
93
99
|
hash,
|
|
100
|
+
uniforms,
|
|
101
|
+
bearers,
|
|
102
|
+
soldierBearer,
|
|
103
|
+
byRole,
|
|
94
104
|
pickLook,
|
|
95
105
|
pickSkinHair,
|
|
96
106
|
hasFirewood,
|
|
@@ -132,7 +142,12 @@ export function createCrowdSystem({
|
|
|
132
142
|
if (looks) batchConfig.looks = looks;
|
|
133
143
|
if (skins) batchConfig.skins = skins;
|
|
134
144
|
if (hair) batchConfig.hair = hair;
|
|
145
|
+
if (palettesByKind) batchConfig.palettesByKind = palettesByKind;
|
|
135
146
|
if (hash) batchConfig.hash = hash;
|
|
147
|
+
if (uniforms) batchConfig.uniforms = uniforms;
|
|
148
|
+
if (bearers) batchConfig.bearers = bearers;
|
|
149
|
+
if (soldierBearer !== undefined) batchConfig.soldierBearer = soldierBearer;
|
|
150
|
+
if (byRole) batchConfig.byRole = byRole;
|
|
136
151
|
if (pickLook) batchConfig.pickLook = pickLook;
|
|
137
152
|
if (pickSkinHair) batchConfig.pickSkinHair = pickSkinHair;
|
|
138
153
|
if (hasFirewood) batchConfig.hasFirewood = hasFirewood;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker-backed geometry cache for static posed farm livestock (cattle, oxen, sheep): pre-casts
|
|
3
|
+
* standing and grazing near/far geometries on background workers while a land loads, hands each
|
|
4
|
+
* pre-built geometry out once when consumed, and falls back synchronously to `castCattle`.
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { geometryOf as defaultGeometryOf } from '../geometry/builder.js';
|
|
9
|
+
import { NO_ANIMAL_OPTIONS } from '../geometry/animal-options.js';
|
|
10
|
+
import { castCattle } from '../motion/animal-cattle-cast.js';
|
|
11
|
+
|
|
12
|
+
const BOTH = Object.freeze([
|
|
13
|
+
Object.freeze([true, false]),
|
|
14
|
+
Object.freeze([true, true]),
|
|
15
|
+
Object.freeze([false, false]),
|
|
16
|
+
Object.freeze([false, true]),
|
|
17
|
+
]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Default farm livestock cast plan per animal build: `[grazing, far]` pairs for cows and sheep
|
|
21
|
+
* (both head poses and both LOD skins) plus a standing near ox for plough teams and carts.
|
|
22
|
+
*/
|
|
23
|
+
export const DEFAULT_LIVESTOCK_CASTS = Object.freeze({
|
|
24
|
+
cow: BOTH,
|
|
25
|
+
sheep: BOTH,
|
|
26
|
+
ox: Object.freeze([Object.freeze([false, false])]),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const castKey = (build, grazing, far) => `${build}:${grazing}:${far}`;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Creates a page-scoped cache for pre-cast farm livestock geometries backed by an optional worker
|
|
33
|
+
* pool, with synchronous fallback via `castCattle`.
|
|
34
|
+
*
|
|
35
|
+
* @param {object} [options]
|
|
36
|
+
* @param {import('../geometry/animal-options.js').AnimalKitOptions} [options.animals=NO_ANIMAL_OPTIONS] World animal kit tuning forwarded to `castCattle`.
|
|
37
|
+
* @param {Record<string, ReadonlyArray<readonly [boolean, boolean]>>} [options.casts=DEFAULT_LIVESTOCK_CASTS] Map of build name to `[grazing, far]` pairs pre-cast by `castFarmBeasts`.
|
|
38
|
+
* @param {() => boolean} [options.pooled] Returns true when a worker pool is ready to accept jobs.
|
|
39
|
+
* @param {((job: string, spec: { build: string, casts: ReadonlyArray<readonly [boolean, boolean]> }) => Promise<object[]>)|null} [options.run=null] Worker job runner returning packed attribute arrays per cast.
|
|
40
|
+
* @param {string} [options.job='farm beasts'] Worker job name passed to `run`.
|
|
41
|
+
* @param {(arrays: object) => import('three').BufferGeometry} [options.geometryOf] Converts worker attribute arrays into a `THREE.BufferGeometry`.
|
|
42
|
+
* @returns {{
|
|
43
|
+
* castFarmBeasts: () => Promise<void> | null,
|
|
44
|
+
* cattleGeometry: (grazing: boolean, far: boolean, build?: string, fallen?: boolean) => import('three').BufferGeometry,
|
|
45
|
+
* clear: () => void,
|
|
46
|
+
* sheepGeometry: (grazing: boolean, far: boolean) => import('three').BufferGeometry,
|
|
47
|
+
* takeFarmBeasts: () => Promise<void> | null,
|
|
48
|
+
* }}
|
|
49
|
+
*/
|
|
50
|
+
export function createLivestockCache({
|
|
51
|
+
animals = NO_ANIMAL_OPTIONS,
|
|
52
|
+
casts = DEFAULT_LIVESTOCK_CASTS,
|
|
53
|
+
pooled = () => false,
|
|
54
|
+
run = null,
|
|
55
|
+
job = 'farm beasts',
|
|
56
|
+
geometryOf = defaultGeometryOf,
|
|
57
|
+
} = {}) {
|
|
58
|
+
const cast = new Map();
|
|
59
|
+
let casting = null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns a plain geometry for a cow, ox, or sheep facing +z on y = 0, consuming a pre-cast
|
|
63
|
+
* worker geometry when available or casting synchronously otherwise.
|
|
64
|
+
*
|
|
65
|
+
* @param {boolean} grazing True for head down grazing, false for head up standing.
|
|
66
|
+
* @param {boolean} far True for the lighter distant skin.
|
|
67
|
+
* @param {string} [build='cow'] Animal build (`'cow'`, `'ox'`, `'sheep'`, etc.).
|
|
68
|
+
* @param {boolean} [fallen=false] True for a dead animal pose (always cast synchronously).
|
|
69
|
+
* @returns {import('three').BufferGeometry}
|
|
70
|
+
*/
|
|
71
|
+
function cattleGeometry(grazing, far, build = 'cow', fallen = false) {
|
|
72
|
+
const key = castKey(build, grazing, far),
|
|
73
|
+
done = !fallen && cast.get(key);
|
|
74
|
+
if (!done) return castCattle(grazing, far, build, fallen, animals);
|
|
75
|
+
cast.delete(key);
|
|
76
|
+
return done;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Dispatches worker jobs to cast every `[grazing, far]` variant declared in `casts` while the
|
|
81
|
+
* caller builds the rest of the land. Clears the cache on failure so synchronous fallback runs.
|
|
82
|
+
*
|
|
83
|
+
* @returns {Promise<void> | null} The in-flight casting promise, or `null` if no worker pool is active.
|
|
84
|
+
*/
|
|
85
|
+
function castFarmBeasts() {
|
|
86
|
+
if (!pooled() || !run) return null;
|
|
87
|
+
const builds = Object.keys(casts);
|
|
88
|
+
casting = Promise.all(builds.map(build => run(job, { build, casts: casts[build] })))
|
|
89
|
+
.then(lists => {
|
|
90
|
+
lists.forEach((list, i) => list.forEach((arrays, k) => cast.set(castKey(builds[i], ...casts[builds[i]][k]), geometryOf(arrays))));
|
|
91
|
+
})
|
|
92
|
+
.catch(() => cast.clear());
|
|
93
|
+
return casting;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Returns the promise from the latest `castFarmBeasts()` call, or `null` if none was started. */
|
|
97
|
+
const takeFarmBeasts = () => casting;
|
|
98
|
+
|
|
99
|
+
/** Convenience wrapper returning a posed sheep geometry facing +z on y = 0. */
|
|
100
|
+
const sheepGeometry = (grazing, far) => cattleGeometry(grazing, far, 'sheep');
|
|
101
|
+
|
|
102
|
+
/** Drops any cached geometries and clears the pending worker promise. */
|
|
103
|
+
function clear() {
|
|
104
|
+
cast.clear();
|
|
105
|
+
casting = null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return { castFarmBeasts, cattleGeometry, clear, sheepGeometry, takeFarmBeasts };
|
|
109
|
+
}
|