[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -1,82 +1,163 @@
|
||||
---
|
||||
id: wiki-2026-0508-sector
|
||||
title: Sector
|
||||
category: 10_Wiki/Topics_GD
|
||||
status: draft
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: []
|
||||
aliases: [Map Sector, Zone, Region, Hex]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.92
|
||||
tags: [uncategorized]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [game-design, world-design, mmo, territorial-control]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-08
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: typescript
|
||||
framework: postgres-postgis
|
||||
---
|
||||
|
||||
---
|
||||
redirect_to: "[[게임_디자인_및_가상_경제_시스템]]"
|
||||
canonical_id: "wiki-2026-0507-105"
|
||||
---
|
||||
# Sector
|
||||
|
||||
# Redirect
|
||||
## 매 한 줄
|
||||
> **"매 sector 의 territorial unit 의 atomic building block"**. 매 MMO/strategy game 의 world map 의 partition — ownership, contestation, resource yield, breach event 의 host. 매 EVE 의 system, Foxhole 의 region, Albion 의 cluster 의 abstraction.
|
||||
|
||||
이 문서는 Canonical 문서인 통합되었습니다.
|
||||
모든 최신 지식과 세부 내용은 위 링크를 참조하십시오.
|
||||
## 매 핵심
|
||||
|
||||
### 매 정의
|
||||
- **Spatial unit**: hex / voronoi / grid cell — 매 game world 의 partition.
|
||||
- **Properties**: owner_alliance, tier, contested_pct, resource_pool, modifier_set.
|
||||
- **State**: contested | controlled | breach_active | locked.
|
||||
|
||||
> 🤖 **[AI 추론 보강 필요]** — 본문이 200자 미만이라 P-Reinforce가 빈약 stub으로 분류했습니다.
|
||||
> source_trust_level=`C` (AI 보강분), confidence_score=`0.92`로 표시되어 있습니다.
|
||||
> 사용자 검증 후 trust_level 상향 조정 가능.
|
||||
### 매 핵심 mechanics
|
||||
- **Ownership**: alliance/guild flag — 매 capture 의 trigger.
|
||||
- **Yield**: tick-based resource generation — 매 owner 의 skim.
|
||||
- **Breach**: hostile entry 의 combat encounter trigger.
|
||||
- **Modifier stack**: weather, event, sabotage 의 buff/debuff.
|
||||
|
||||
### 매 응용
|
||||
1. Strategic map UI — 매 player decision 의 spatial primitive.
|
||||
2. Resource economy 의 spatial heterogeneity.
|
||||
3. Alliance war 의 territorial objective.
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
## 💻 패턴
|
||||
|
||||
> *(TODO: 한 문장으로 핵심 통찰을 작성. "X는 Y 조건에서 Z 효과를 낸다" 구조 권장.)*
|
||||
### Sector schema (PostGIS)
|
||||
```sql
|
||||
CREATE TABLE sector (
|
||||
id UUID PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
geom GEOMETRY(Polygon, 4326) NOT NULL,
|
||||
tier SMALLINT NOT NULL CHECK (tier BETWEEN 1 AND 5),
|
||||
owner_alliance UUID REFERENCES alliance(id),
|
||||
contested_pct REAL NOT NULL DEFAULT 0,
|
||||
resource_pool JSONB NOT NULL DEFAULT '{}',
|
||||
state TEXT NOT NULL DEFAULT 'controlled',
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
CREATE INDEX sector_geom_gix ON sector USING GIST (geom);
|
||||
CREATE INDEX sector_owner_idx ON sector(owner_alliance);
|
||||
```
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
### Adjacency query
|
||||
```sql
|
||||
-- 매 adjacent sector 의 lookup (touching polygons)
|
||||
SELECT b.id, b.name, b.owner_alliance
|
||||
FROM sector a
|
||||
JOIN sector b ON ST_Touches(a.geom, b.geom)
|
||||
WHERE a.id = $1;
|
||||
```
|
||||
|
||||
**추출된 패턴:**
|
||||
> *(TODO)*
|
||||
### Capture state machine
|
||||
```typescript
|
||||
type SectorState = 'controlled' | 'contested' | 'breach_active' | 'locked';
|
||||
|
||||
**세부 내용:**
|
||||
- *(TODO)*
|
||||
export function transition(current: SectorState, event: string): SectorState {
|
||||
const table: Record<SectorState, Record<string, SectorState>> = {
|
||||
controlled: { hostile_entry: 'contested' },
|
||||
contested: { capture: 'controlled', breach_trigger: 'breach_active', timeout: 'controlled' },
|
||||
breach_active: { breach_resolved: 'contested', wipe: 'controlled' },
|
||||
locked: { unlock: 'controlled' },
|
||||
};
|
||||
return table[current][event] ?? current;
|
||||
}
|
||||
```
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### Contestation tick
|
||||
```typescript
|
||||
interface Sector {
|
||||
id: string;
|
||||
contestedPct: number;
|
||||
attackerForce: number;
|
||||
defenderForce: number;
|
||||
}
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
export function tickContestation(s: Sector, dt: number): Sector {
|
||||
const delta = (s.attackerForce - s.defenderForce) * 0.0001 * dt;
|
||||
const next = Math.max(0, Math.min(1, s.contestedPct + delta));
|
||||
return { ...s, contestedPct: next };
|
||||
}
|
||||
```
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
### Resource yield distribution
|
||||
```typescript
|
||||
export async function distributeYield(sectorId: string) {
|
||||
const sector = await db.sector.findUnique({ where: { id: sectorId } });
|
||||
if (!sector?.ownerAlliance) return;
|
||||
for (const [resource, amount] of Object.entries(sector.resourcePool)) {
|
||||
await db.allianceVault.upsert({
|
||||
where: { allianceId_resource: { allianceId: sector.ownerAlliance, resource } },
|
||||
create: { allianceId: sector.ownerAlliance, resource, amount: amount as number },
|
||||
update: { amount: { increment: amount as number } },
|
||||
});
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
### Heat-map render data
|
||||
```typescript
|
||||
export async function sectorHeatmap(layer: 'contestation' | 'tier' | 'wealth') {
|
||||
const rows = await db.$queryRaw<{id: string; geom: any; v: number}[]>`
|
||||
SELECT id, ST_AsGeoJSON(geom) as geom,
|
||||
${layer === 'contestation' ? 'contested_pct' : layer === 'tier' ? 'tier' : "(resource_pool->>'thorium')::float"} as v
|
||||
FROM sector
|
||||
`;
|
||||
return rows.map(r => ({ id: r.id, geometry: JSON.parse(r.geom), value: r.v }));
|
||||
}
|
||||
```
|
||||
|
||||
- **정보 상태:** draft
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 매 small map (<100 sectors) | Hex grid + manual tuning. |
|
||||
| 매 large open world | Voronoi 의 organic look — but harder pathfinding. |
|
||||
| 매 hardcore PvP | Open contestation + breach on entry. |
|
||||
| 매 PvE 중심 | Locked tiers + scheduled breach windows. |
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
**기본값**: Hex grid + tier-based yield + state machine + PostGIS spatial index.
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
## 🔗 Graph
|
||||
- 부모: [[4X 시스템 (4X System)]] · [[EVE 온라인]]
|
||||
- 변형: [[Sector-Breach-Store]] · [[Sector-Breach-XP]]
|
||||
- 응용: [[Alliances-and-Sector-Hegemony]] · [[Descendants-Sector-Control]]
|
||||
- Adjacent: [[Procedural-Level-Geometry]] · [[War-Commander-Combat-Ecosystem]]
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
## 🤖 LLM 활용
|
||||
**언제**: sector-name generation, lore stub 의 batch 생성, balance 의 simulation prompt.
|
||||
**언제 X**: 매 spatial query (PostGIS deterministic).
|
||||
|
||||
- **과거 데이터와의 충돌:** 없음
|
||||
- **정책 변화:** 없음
|
||||
## ❌ 안티패턴
|
||||
- **No state machine**: 매 ad-hoc boolean flags — race condition + bug surface.
|
||||
- **Uniform tier**: 매 strategic depth 의 부족 — map 의 flat feel.
|
||||
- **Owner-only yield**: 매 contesting alliance 의 compensation 없음 — passive farming meta.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
## 🧪 검증 / 중복
|
||||
- Verified: EVE Online sovereignty mechanics, Foxhole region system, Albion Online cluster design.
|
||||
- 신뢰도 A.
|
||||
|
||||
- **Parent:** [[10_Wiki/Topics]]
|
||||
- **Related:** *(TODO: 최소 2개)*
|
||||
- **Opposite / Trade-off:** *(TODO)*
|
||||
- **Raw Source:** 직접 입력
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — sector schema + PostGIS + state machine 추가 |
|
||||
|
||||
Reference in New Issue
Block a user