@umituz/web-virtual 1.1.2 → 2.0.0

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.
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three'
2
- import type { WorldPreset, WorldEntity, WorldZone } from '../core/types'
2
+ import type { WorldPreset, WorldSlot, WorldZone } from '../core/types'
3
3
  import { MaterialPalette } from '../engine/materials'
4
4
  import { buildOfficeArchitecture } from '../entities/architecture/OfficeArchitectureBuilder'
5
5
  import { createModernWorkstation, createExecutiveDesk, createConferenceTable } from '../entities/furniture/DeskBuilder'
@@ -9,352 +9,81 @@ import { ModelLoader } from '../engine/modelLoader'
9
9
  export const DEFAULT_OFFICE_ZONES: WorldZone[] = [
10
10
  {
11
11
  id: 'executive',
12
- name: 'Yönetim & Strateji Ofisi',
12
+ name: 'Executive & Strategy Office',
13
13
  color: '#8b5cf6',
14
- description: 'Şirket liderliği, genel müdür ve stratejik danışmanlık çalışma alanı.',
14
+ description: 'Company leadership, general manager and strategic advisory workspace.',
15
15
  cameraFocus: [11, 1.2, -5.5],
16
16
  },
17
17
  {
18
18
  id: 'meeting',
19
- name: 'Konferans & Müşteri Salonu',
19
+ name: 'Conference & Client Room',
20
20
  color: '#06b6d4',
21
- description: 'Müşteri görüşmeleri, büyük strateji toplantıları ve lansman odası.',
21
+ description: 'Client meetings, executive strategy sessions and the launch room.',
22
22
  cameraFocus: [11, 1.2, 4.5],
23
23
  },
24
24
  {
25
25
  id: 'creative',
26
- name: 'Kreatif & İçerik Stüdyosu',
26
+ name: 'Creative & Content Studio',
27
27
  color: '#ec4899',
28
- description: 'Görsel tasarım, video prodüksiyon ve yaratıcı metin geliştirme alanı.',
28
+ description: 'Visual design, video production and creative copywriting workspace.',
29
29
  cameraFocus: [-6, 1.0, -6.5],
30
30
  },
31
31
  {
32
32
  id: 'tech',
33
- name: 'Yazılım & Teknoloji Merkezi',
33
+ name: 'Software & Technology Center',
34
34
  color: '#3b82f6',
35
- description: 'Sistem geliştirme, veri analitiği ve platform mühendisliği istasyonu.',
35
+ description: 'System development, data analytics and platform engineering station.',
36
36
  cameraFocus: [-6, 1.0, -1.8],
37
37
  },
38
38
  {
39
39
  id: 'growth',
40
- name: 'Büyüme & Dijital Pazarlama',
40
+ name: 'Growth & Digital Marketing',
41
41
  color: '#10b981',
42
- description: 'Performans reklamları, SEO, e-posta otomasyonu ve büyüme operasyonları.',
42
+ description: 'Performance ads, SEO, email automation and growth operations.',
43
43
  cameraFocus: [-6, 1.0, 3.2],
44
44
  },
45
45
  {
46
46
  id: 'operations',
47
- name: 'Operasyon & Finans Masası',
47
+ name: 'Operations & Finance Desk',
48
48
  color: '#f59e0b',
49
- description: 'Bütçe, fatura, kurumsal arşiv ve operasyonel kalite kontrol merkezi.',
49
+ description: 'Budget, invoicing, corporate archive and operational quality control.',
50
50
  cameraFocus: [-6, 1.0, 7.8],
51
51
  },
52
52
  ]
53
53
 
54
- export interface DepartmentInfo {
55
- id: string
56
- name: string
57
- slug: string
58
- description: string
59
- managerSlotId: string
60
- managerRole: string
61
- color: string
62
- slotIds: string[]
63
- iconName?: 'briefcase' | 'palette' | 'megaphone' | 'shield' | 'globe'
64
- }
54
+ type OfficeDeskKind = 'executive' | 'workstation' | 'meeting'
65
55
 
66
- export const DEFAULT_OFFICE_DEPARTMENTS: DepartmentInfo[] = [
67
- {
68
- id: 'dept-management',
69
- name: 'Genel Yönetim & Strateji',
70
- slug: 'management',
71
- description: 'Şirket vizyonu, departman koordinasyonu, stratejik iş planlaması ve onay denetimleri.',
72
- managerSlotId: 'slot-1',
73
- managerRole: 'Dijital Ajans Yöneticisi (Genel Müdür)',
74
- color: '#3b82f6',
75
- slotIds: ['slot-1', 'slot-13'],
76
- iconName: 'briefcase',
77
- },
78
- {
79
- id: 'dept-creative',
80
- name: 'İçerik & Kreatif Tasarım',
81
- slug: 'creative',
82
- description: 'Sosyal medya içerikleri, görsel konseptler, reklam kancaları ve viral video prodüksiyonu.',
83
- managerSlotId: 'slot-3',
84
- managerRole: 'Kreatif Görsel Direktörü',
85
- color: '#a855f7',
86
- slotIds: ['slot-2', 'slot-3', 'slot-4', 'slot-5'],
87
- iconName: 'palette',
88
- },
89
- {
90
- id: 'dept-marketing',
91
- name: 'Pazarlama & Büyüme',
92
- slug: 'marketing',
93
- description: 'Google & Meta reklamları, organik SEO, e-posta funnel otomasyonu ve müşteri ilişkileri (CRM).',
94
- managerSlotId: 'slot-6',
95
- managerRole: 'Performans Pazarlama & Medya Satın Alma',
96
- color: '#10b981',
97
- slotIds: ['slot-6', 'slot-7', 'slot-8', 'slot-9', 'slot-14'],
98
- iconName: 'megaphone',
99
- },
100
- {
101
- id: 'dept-tech',
102
- name: 'Teknoloji, UI/UX & Veri',
103
- slug: 'tech',
104
- description: 'Dönüşüm odaklı web arayüzleri, açılış sayfaları tel kafesleri ve kampanya büyüme analitiği.',
105
- managerSlotId: 'slot-11',
106
- managerRole: 'UI/UX & Web Arayüz Tasarımcısı',
107
- color: '#06b6d4',
108
- slotIds: ['slot-11', 'slot-12'],
109
- iconName: 'globe',
110
- },
111
- {
112
- id: 'dept-operations',
113
- name: 'Operasyon, Kalite & Finans',
114
- slug: 'operations',
115
- description: 'Gelir/gider dengesi, bütçe denetimi, kalite güvence kontrolleri ve kurumsal bilgi arşivi.',
116
- managerSlotId: 'slot-10',
117
- managerRole: 'Ajans Muhasebecisi & Finans Uzmanı',
118
- color: '#f59e0b',
119
- slotIds: ['slot-10', 'slot-15', 'slot-16', 'slot-17'],
120
- iconName: 'shield',
121
- },
122
- ]
123
-
124
- // 17 standard desk positions matching the reference architectural layout
125
- export const DEFAULT_OFFICE_ENTITIES: WorldEntity[] = [
126
- // 1. Genel Müdür / Executive Suite
56
+ /**
57
+ * The 17 architectural anchor points of the office floorplan — the single
58
+ * source of truth for BOTH `buildScene` furniture placement and consumer
59
+ * entity auto-placement. Slots describe WHERE someone can sit, never WHO.
60
+ */
61
+ export const OFFICE_SLOTS: WorldSlot[] = [
127
62
  {
128
63
  id: 'slot-1',
129
- type: 'person',
130
- name: 'Genel Müdür (CEO)',
131
- role: 'Şirket Direktörü & Orkestratör',
132
- department: 'Yönetim',
64
+ label: 'Executive desk',
65
+ position: [11, 0, -5.5],
133
66
  zoneId: 'executive',
134
- status: 'idle',
135
67
  pinNumber: 1,
136
- position: [11, 0, -5.5],
137
- rotation: [0, 0, 0],
138
68
  avatarColor: '#1e293b',
139
- avatarHair: '#0f172a',
140
- },
141
- // Row 1 (Creative & Ads)
142
- {
143
- id: 'slot-2',
144
- type: 'person',
145
- name: 'Performans Pazarlama Uzmanı',
146
- role: 'Ads & Kampanya Optimizasyonu',
147
- department: 'Pazarlama',
148
- zoneId: 'growth',
149
- status: 'idle',
150
- pinNumber: 2,
151
- position: [-13, 0, -6.8],
152
- rotation: [0, 0, 0],
153
- avatarColor: '#0284c7',
154
- },
155
- {
156
- id: 'slot-3',
157
- type: 'person',
158
- name: 'Kreatif Direktör',
159
- role: 'Görsel Kimlik & Tasarım',
160
- department: 'Kreatif',
161
- zoneId: 'creative',
162
- status: 'idle',
163
- pinNumber: 3,
164
- position: [-9, 0, -6.8],
165
- rotation: [0, 0, 0],
166
- avatarColor: '#db2777',
167
- },
168
- {
169
- id: 'slot-4',
170
- type: 'person',
171
- name: 'Reklam Yöneticisi',
172
- role: 'Bütçe & Dönüşüm Stratejisi',
173
- department: 'Pazarlama',
174
- zoneId: 'growth',
175
- status: 'idle',
176
- pinNumber: 4,
177
- position: [-5, 0, -6.8],
178
- rotation: [0, 0, 0],
179
- avatarColor: '#2563eb',
180
- },
181
- {
182
- id: 'slot-5',
183
- type: 'person',
184
- name: 'E-Posta Pazarlama Uzmanı',
185
- role: 'CRM & Bülten Akışları',
186
- department: 'Pazarlama',
187
- zoneId: 'growth',
188
- status: 'idle',
189
- pinNumber: 5,
190
- position: [-1, 0, -6.8],
191
- rotation: [0, 0, 0],
192
- avatarColor: '#7c3aed',
193
- },
194
-
195
- // Row 2 (Content, Video, Management)
196
- {
197
- id: 'slot-6',
198
- type: 'person',
199
- name: 'Sosyal Medya Yöneticisi',
200
- role: 'Topluluk & Gönderi Takvimi',
201
- department: 'Kreatif',
202
- zoneId: 'creative',
203
- status: 'idle',
204
- pinNumber: 6,
205
- position: [-13, 0, -2.0],
206
- rotation: [0, 0, 0],
207
- avatarColor: '#ea580c',
208
- },
209
- {
210
- id: 'slot-7',
211
- type: 'person',
212
- name: 'Ajans Operasyon Lideri',
213
- role: 'Süreç & İş Akışı Takibi',
214
- department: 'Operasyon',
215
- zoneId: 'operations',
216
- status: 'idle',
217
- pinNumber: 7,
218
- position: [-9, 0, -2.0],
219
- rotation: [0, 0, 0],
220
- avatarColor: '#059669',
221
- },
222
- {
223
- id: 'slot-8',
224
- type: 'person',
225
- name: 'Video & Motion Producer',
226
- role: 'Reels, Kurgu & Animasyon',
227
- department: 'Kreatif',
228
- zoneId: 'creative',
229
- status: 'idle',
230
- pinNumber: 8,
231
- position: [-5, 0, -2.0],
232
- rotation: [0, 0, 0],
233
- avatarColor: '#dc2626',
234
- },
235
- {
236
- id: 'slot-9',
237
- type: 'person',
238
- name: 'Dijital Ajans Yöneticisi',
239
- role: 'Ekip Koordinasyonu',
240
- department: 'Yönetim',
241
- zoneId: 'executive',
242
- status: 'idle',
243
- pinNumber: 9,
244
- position: [-1, 0, -2.0],
245
- rotation: [0, 0, 0],
246
- avatarColor: '#4f46e5',
247
- },
248
-
249
- // Row 3 (Copywriter, Research, SEO)
250
- {
251
- id: 'slot-10',
252
- type: 'person',
253
- name: 'Metin Yazarı & Copywriter',
254
- role: 'Landing & Reklam Metinleri',
255
- department: 'Kreatif',
256
- zoneId: 'creative',
257
- status: 'idle',
258
- pinNumber: 10,
259
- position: [-13, 0, 2.8],
260
- rotation: [0, 0, 0],
261
- avatarColor: '#0891b2',
262
- },
263
- {
264
- id: 'slot-11',
265
- type: 'person',
266
- name: 'Pazar Araştırmacısı',
267
- role: 'Rakip & Trend Analizi',
268
- department: 'Pazarlama',
269
- zoneId: 'growth',
270
- status: 'idle',
271
- pinNumber: 11,
272
- position: [-9, 0, 2.8],
273
- rotation: [0, 0, 0],
274
- avatarColor: '#16a34a',
275
- },
276
- {
277
- id: 'slot-12',
278
- type: 'person',
279
- name: 'Marka Stratejisti',
280
- role: 'Konumlandırma & Mesajlaşma',
281
- department: 'Yönetim',
282
- zoneId: 'executive',
283
- status: 'idle',
284
- pinNumber: 12,
285
- position: [-5, 0, 2.8],
286
- rotation: [0, 0, 0],
287
- avatarColor: '#9333ea',
288
- },
289
- {
290
- id: 'slot-13',
291
- type: 'person',
292
- name: 'SEO & Organik Büyüme',
293
- role: 'Arama Motoru & İçerik Dağıtımı',
294
- department: 'Pazarlama',
295
- zoneId: 'growth',
296
- status: 'idle',
297
- pinNumber: 13,
298
- position: [-1, 0, 2.8],
299
- rotation: [0, 0, 0],
300
- avatarColor: '#0284c7',
301
- },
302
-
303
- // Front Hub (Art Direction & Design)
304
- {
305
- id: 'slot-14',
306
- type: 'person',
307
- name: 'Görsel Tasarımcı (UI/UX)',
308
- role: 'Arayüz & Web Tasarımı',
309
- department: 'Teknoloji',
310
- zoneId: 'tech',
311
- status: 'idle',
312
- pinNumber: 14,
313
- position: [-10, 0, 7.5],
314
- rotation: [0, 0, 0],
315
- avatarColor: '#e11d48',
316
- },
317
- {
318
- id: 'slot-15',
319
- type: 'person',
320
- name: 'Görsel Yönetmen (Midjourney)',
321
- role: 'Yapay Zeka Sanatçısı',
322
- department: 'Kreatif',
323
- zoneId: 'creative',
324
- status: 'idle',
325
- pinNumber: 15,
326
- position: [-4, 0, 7.5],
327
- rotation: [0, 0, 0],
328
- avatarColor: '#475569',
329
- },
330
-
331
- // Meeting Room Desks / Client Relations
332
- {
333
- id: 'slot-16',
334
- type: 'person',
335
- name: 'Bilgi Kütüphanecisi & QA',
336
- role: 'Süreç Doğrulama & Dokümantasyon',
337
- department: 'Operasyon',
338
- zoneId: 'operations',
339
- status: 'idle',
340
- pinNumber: 16,
341
- position: [7.5, 0, 7.5],
342
- rotation: [0, -Math.PI / 4, 0],
343
- avatarColor: '#ca8a04',
344
- },
345
- {
346
- id: 'slot-17',
347
- type: 'person',
348
- name: 'Müşteri İlişkileri Lideri',
349
- role: 'Onboarding & İletişim',
350
- department: 'Operasyon',
351
- zoneId: 'meeting',
352
- status: 'idle',
353
- pinNumber: 17,
354
- position: [13.5, 0, 7.5],
355
- rotation: [0, Math.PI / 4, 0],
356
- avatarColor: '#059669',
357
- },
69
+ metadata: { desk: 'executive' as OfficeDeskKind },
70
+ },
71
+ { id: 'slot-2', label: 'Workstation 2', position: [-13, 0, -6.8], zoneId: 'growth', pinNumber: 2, avatarColor: '#0284c7', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
72
+ { id: 'slot-3', label: 'Workstation 3', position: [-9, 0, -6.8], zoneId: 'creative', pinNumber: 3, avatarColor: '#db2777', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
73
+ { id: 'slot-4', label: 'Workstation 4', position: [-5, 0, -6.8], zoneId: 'growth', pinNumber: 4, avatarColor: '#2563eb', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
74
+ { id: 'slot-5', label: 'Workstation 5', position: [-1, 0, -6.8], zoneId: 'growth', pinNumber: 5, avatarColor: '#7c3aed', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
75
+ { id: 'slot-6', label: 'Workstation 6', position: [-13, 0, -2.0], zoneId: 'creative', pinNumber: 6, avatarColor: '#ea580c', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
76
+ { id: 'slot-7', label: 'Workstation 7', position: [-9, 0, -2.0], zoneId: 'operations', pinNumber: 7, avatarColor: '#059669', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
77
+ { id: 'slot-8', label: 'Workstation 8', position: [-5, 0, -2.0], zoneId: 'creative', pinNumber: 8, avatarColor: '#dc2626', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
78
+ { id: 'slot-9', label: 'Workstation 9', position: [-1, 0, -2.0], zoneId: 'executive', pinNumber: 9, avatarColor: '#4f46e5', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
79
+ { id: 'slot-10', label: 'Workstation 10', position: [-13, 0, 2.8], zoneId: 'creative', pinNumber: 10, avatarColor: '#0891b2', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
80
+ { id: 'slot-11', label: 'Workstation 11', position: [-9, 0, 2.8], zoneId: 'growth', pinNumber: 11, avatarColor: '#16a34a', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: false } },
81
+ { id: 'slot-12', label: 'Workstation 12', position: [-5, 0, 2.8], zoneId: 'executive', pinNumber: 12, avatarColor: '#9333ea', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
82
+ { id: 'slot-13', label: 'Workstation 13', position: [-1, 0, 2.8], zoneId: 'growth', pinNumber: 13, avatarColor: '#0284c7', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
83
+ { id: 'slot-14', label: 'Workstation 14', position: [-10, 0, 7.5], zoneId: 'tech', pinNumber: 14, avatarColor: '#e11d48', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
84
+ { id: 'slot-15', label: 'Workstation 15', position: [-4, 0, 7.5], zoneId: 'creative', pinNumber: 15, avatarColor: '#475569', metadata: { desk: 'workstation' as OfficeDeskKind, dualMonitor: true } },
85
+ { id: 'slot-16', label: 'Meeting room desk A', position: [7.5, 0, 7.5], rotation: [0, -Math.PI / 4, 0], zoneId: 'operations', pinNumber: 16, avatarColor: '#ca8a04', metadata: { desk: 'meeting' as OfficeDeskKind, dualMonitor: false } },
86
+ { id: 'slot-17', label: 'Meeting room desk B', position: [13.5, 0, 7.5], rotation: [0, Math.PI / 4, 0], zoneId: 'meeting', pinNumber: 17, avatarColor: '#059669', metadata: { desk: 'meeting' as OfficeDeskKind, dualMonitor: true } },
358
87
  ]
359
88
 
360
89
  export const officePreset: WorldPreset = {
@@ -404,7 +133,7 @@ export const officePreset: WorldPreset = {
404
133
  nightBackgroundColor: '#0f172a',
405
134
  },
406
135
  zones: DEFAULT_OFFICE_ZONES,
407
- defaultEntities: DEFAULT_OFFICE_ENTITIES,
136
+ slots: OFFICE_SLOTS,
408
137
 
409
138
  buildScene: (scene: THREE.Scene, options) => {
410
139
  const materials = new MaterialPalette()
@@ -417,56 +146,36 @@ export const officePreset: WorldPreset = {
417
146
  })
418
147
  scene.add(arch)
419
148
 
420
- // 2. Executive Suite Desk (Slot 1)
421
- const execDesk = createExecutiveDesk(materials, { entityId: 'slot-1' })
422
- execDesk.position.set(11, 0, -5.5)
423
- scene.add(execDesk)
424
-
425
- // 3. Conference Table in Meeting Room (Center of east parquet wing)
426
- const confTable = createConferenceTable(materials)
427
- confTable.position.set(11, 0, 2.5)
428
- scene.add(confTable)
429
-
430
- // 4. Meeting Room Desks (Slots 16 & 17)
431
- const desk16 = createModernWorkstation(materials, { entityId: 'slot-16', dualMonitor: false })
432
- desk16.position.set(7.5, 0, 7.5)
433
- desk16.rotation.y = -Math.PI / 4
434
- scene.add(desk16)
435
-
436
- const desk17 = createModernWorkstation(materials, { entityId: 'slot-17', dualMonitor: true })
437
- desk17.position.set(13.5, 0, 7.5)
438
- desk17.rotation.y = Math.PI / 4
439
- scene.add(desk17)
440
-
441
- // 5. Open Office Desks (Slots 2-15)
442
- const workstationSlots: Array<{ id: string; pos: [number, number, number]; dual: boolean }> = [
443
- { id: 'slot-2', pos: [-13, 0, -6.8], dual: false },
444
- { id: 'slot-3', pos: [-9, 0, -6.8], dual: true },
445
- { id: 'slot-4', pos: [-5, 0, -6.8], dual: false },
446
- { id: 'slot-5', pos: [-1, 0, -6.8], dual: true },
447
- { id: 'slot-6', pos: [-13, 0, -2.0], dual: false },
448
- { id: 'slot-7', pos: [-9, 0, -2.0], dual: true },
449
- { id: 'slot-8', pos: [-5, 0, -2.0], dual: true },
450
- { id: 'slot-9', pos: [-1, 0, -2.0], dual: false },
451
- { id: 'slot-10', pos: [-13, 0, 2.8], dual: false },
452
- { id: 'slot-11', pos: [-9, 0, 2.8], dual: false },
453
- { id: 'slot-12', pos: [-5, 0, 2.8], dual: true },
454
- { id: 'slot-13', pos: [-1, 0, 2.8], dual: true },
455
- { id: 'slot-14', pos: [-10, 0, 7.5], dual: true },
456
- { id: 'slot-15', pos: [-4, 0, 7.5], dual: true },
457
- ]
149
+ // 2. Desk furniture is generated from the architectural slot anchors —
150
+ // the same data consumer entities are auto-placed onto.
151
+ for (const slot of OFFICE_SLOTS) {
152
+ const kind = (slot.metadata?.desk as OfficeDeskKind) || 'workstation'
153
+ const dual = slot.metadata?.dualMonitor !== false
154
+
155
+ if (kind === 'executive') {
156
+ const desk = createExecutiveDesk(materials, { entityId: slot.id })
157
+ desk.position.set(slot.position[0], slot.position[1], slot.position[2])
158
+ if (slot.rotation) desk.rotation.set(slot.rotation[0], slot.rotation[1], slot.rotation[2])
159
+ scene.add(desk)
160
+ continue
161
+ }
458
162
 
459
- for (const ws of workstationSlots) {
460
163
  const desk = createModernWorkstation(materials, {
461
- entityId: ws.id,
462
- dualMonitor: ws.dual,
164
+ entityId: slot.id,
165
+ dualMonitor: dual,
463
166
  hasLaptop: true,
464
167
  })
465
- desk.position.set(ws.pos[0], ws.pos[1], ws.pos[2])
168
+ desk.position.set(slot.position[0], slot.position[1], slot.position[2])
169
+ if (slot.rotation) desk.rotation.set(slot.rotation[0], slot.rotation[1], slot.rotation[2])
466
170
  scene.add(desk)
467
171
  }
468
172
 
469
- // 6. Architectural Ficus Indoor Plants
173
+ // 3. Conference Table in Meeting Room (Center of east parquet wing)
174
+ const confTable = createConferenceTable(materials)
175
+ confTable.position.set(11, 0, 2.5)
176
+ scene.add(confTable)
177
+
178
+ // 4. Architectural Ficus Indoor Plants
470
179
  const plantCoords: [number, number][] = [
471
180
  [-17, -9],
472
181
  [-17, 9],
@@ -482,7 +191,7 @@ export const officePreset: WorldPreset = {
482
191
  scene.add(plant)
483
192
  }
484
193
 
485
- // 7. Executive Bookcases & Lounge Breakout Real 3D Models
194
+ // 5. Executive Bookcases & Lounge Breakout Real 3D Models
486
195
  const loader = ModelLoader.getInstance()
487
196
  void loader.load('furniture:bookcaseOpen').then((bookcase) => {
488
197
  if (bookcase) {
@@ -1,58 +1,37 @@
1
1
  import * as THREE from 'three'
2
- import type { WorldPreset, WorldEntity, WorldZone } from '../core/types'
2
+ import type { WorldPreset, WorldSlot, WorldZone } from '../core/types'
3
3
  import { MaterialPalette } from '../engine/materials'
4
4
 
5
5
  export const DEFAULT_SCHOOL_ZONES: WorldZone[] = [
6
6
  {
7
7
  id: 'lecture_hall',
8
- name: 'Ana Amfi & Derslik',
8
+ name: 'Main Lecture Hall & Classroom',
9
9
  color: '#6366f1',
10
- description: 'Etkileşimli akıllı tahta ve öğrenci sıraları alanı.',
10
+ description: 'Interactive smartboard and student seating area.',
11
11
  cameraFocus: [-6, 1.2, 0],
12
12
  },
13
13
  {
14
14
  id: 'stem_lab',
15
- name: 'STEM & Robotik Laboratuvarı',
15
+ name: 'STEM & Robotics Lab',
16
16
  color: '#06b6d4',
17
- description: 'Deney masaları ve prototipleme istasyonu.',
17
+ description: 'Experiment benches and prototyping stations.',
18
18
  cameraFocus: [6, 1.0, -3],
19
19
  },
20
20
  {
21
21
  id: 'library',
22
- name: 'Kütüphane & Çalışma Salonu',
22
+ name: 'Library & Study Hall',
23
23
  color: '#8b5cf6',
24
- description: 'Sessiz araştırma ve kitaplık bölümü.',
24
+ description: 'Quiet research and stacks section.',
25
25
  cameraFocus: [6, 1.0, 4],
26
26
  },
27
27
  ]
28
28
 
29
- export const DEFAULT_SCHOOL_ENTITIES: WorldEntity[] = [
30
- {
31
- id: 'teacher-1',
32
- type: 'person',
33
- name: 'Prof. Deniz — Bölüm Başkanı',
34
- role: 'Ders Anlatımı & Mentorluk',
35
- department: 'Akademik',
36
- zoneId: 'lecture_hall',
37
- status: 'working',
38
- pinNumber: 1,
39
- position: [-6, 0, -4],
40
- avatarColor: '#4338ca',
41
- },
42
- {
43
- id: 'student-1',
44
- type: 'person',
45
- name: 'Zeynep — Lisansüstü Araştırmacı',
46
- role: 'STEM Deney Uygulayıcısı',
47
- department: 'Araştırma',
48
- zoneId: 'stem_lab',
49
- status: 'idle',
50
- pinNumber: 2,
51
- position: [6, 0, -3],
52
- avatarColor: '#0891b2',
53
- },
29
+ export const SCHOOL_SLOTS: WorldSlot[] = [
30
+ { id: 'slot-1', label: 'Lecture hall station', position: [-6, 0, -4], zoneId: 'lecture_hall', pinNumber: 1, avatarColor: '#4338ca' },
31
+ { id: 'slot-2', label: 'STEM lab bench', position: [6, 0, -3], zoneId: 'stem_lab', pinNumber: 2, avatarColor: '#0891b2' },
54
32
  ]
55
33
 
34
+
56
35
  export const schoolPreset: WorldPreset = {
57
36
  id: 'preset-school',
58
37
  name: 'Modern University & Academy Campus',
@@ -86,7 +65,7 @@ export const schoolPreset: WorldPreset = {
86
65
  backgroundColor: '#0f172a',
87
66
  },
88
67
  zones: DEFAULT_SCHOOL_ZONES,
89
- defaultEntities: DEFAULT_SCHOOL_ENTITIES,
68
+ slots: SCHOOL_SLOTS,
90
69
 
91
70
  buildScene: (scene: THREE.Scene, options) => {
92
71
  const materials = new MaterialPalette()