Skip to content

v1.2.0

Choose a tag to compare

@Overflower706 Overflower706 released this 08 Aug 20:25
· 56 commits to main since this release

v1.2.0 - 시스템 인터페이스 개선

# 🔧 OVFL ECS v1.2.0 - 시스템 인터페이스 개선

더 깔끔하고 사용하기 쉬운 시스템 인터페이스로 업데이트되었습니다!

## 🚨 Breaking Changes

### 📝 메서드명 변경
- `Systems.Add()` → `Systems.AddSystem()` (명확성 향상)

### 🏗️ 시스템 인터페이스 개선
**Context 파라미터 제거 - 더 깔끔한 시그니처**
```csharp
// Before
public class MySystem : ITickSystem
{
    public void Tick(Context context) { }
}

// After
public class MySystem : ITickSystem
{
    public Context Context { get; set; }  // 자동 할당
    
    public void Tick() { }  // 파라미터 제거
}

자동 Context 할당
var systems = new Systems()
    .AddSystem<MySystem>()  // Context가 자동으로 할당됨
    .SetContext(context);

### ✨ 주요 개선사항
- 타입 안정성 향상: 컴파일 타임 타입 검사 강화
- 코드 간결성: Context 파라미터 제거로 메서드 시그니처 단순화
- 사용성 향상: 시스템 등록 시 Context 자동 할당

### 📦 설치 방법
https://github.com/Overflower706/ecs.git?path=/Packages/com.ovfl.ecs#v1.2.0

### 🔄 마이그레이션 가이드
1. Systems.Add() → Systems.AddSystem()로 변경
2. 시스템 클래스에 public Context Context { get; set; } 속성 추가
3. 모든 시스템 메서드에서 Context 파라미터 제거
4. 메서드 내에서 this.Context 사용
5. 전체 변경사항은 CHANGELOG.md를 참고하세요.