xiaohongshu
xiaohongshu
> **도메인:** devian-upm-samples > **정책 문서 버전:** v4
Full skill instructions
도메인: devian-upm-samples 정책 문서 버전: v4
Templates는 com.devian.samples UPM 패키지의 Samples~ 폴더에 포함된 샘플 코드다.
Assets/Samples/로 복사되어 프로젝트 소유가 됨| 원칙 | 설명 |
|---|---|
| 단일 패키지 | 모든 템플릿은 com.devian.samples 패키지에 포함 |
| Samples~ 방식 | Unity의 표준 샘플 제공 방식 사용 |
| 프로젝트 소유 | 설치 후 Assets/Samples/에 복사되어 프로젝트가 소유 |
| 충돌 방지 | Devian + .Network.*, Devian + .Protocol.*, Devian + .Domain.* 네임스페이스 사용 금지 |
com.devian.samples
단일 패키지에 모든 템플릿이 Samples~로 포함됨.
Samples~/<TemplateName>/
예시:
Samples~/Network/Samples~/Game/Devian.Samples.<TemplateName>
Devian.Samples.<TemplateName>.Editor
예시:
Devian.Samples.NetworkDevian.Samples.Network.Editor주의: 위는 asmdef의
name(어셈블리명)이다. 코드의 namespace와 혼동하지 않는다.
모든 샘플 코드는 단일 네임스페이스 Devian을 사용한다.
namespace Devian
asmdef의
rootNamespace도"Devian"으로 설정한다.
어셈블리 제약:
Devian.Protocol.* 어셈블리에서 생성된 *_Handlers.g.cs는 다른 asmdef(샘플 asmdef 포함)에서 partial로 확장할 수 없다.
(C#의 partial class는 동일 어셈블리 내에서만 동작)
따라서 샘플에서 수신 처리 예시는 아래 방법으로 구현한다:
Stub 상속 (권장): Devian.Protocol.{Group}.{ProtocolName}.Stub를 샘플 어셈블리에서 상속 구현
class SampleGame2CStub : Game2C.Stub(참고) 프로토콜 패키지 내부: partial 확장은 프로토콜 패키지 내부에서만 가능 (샘플 범위 밖)
금지 (Hard):
partial class *_Handlers 형태로 확장 시도 금지 (컴파일 불가, 오해 유발)namespace Devian.Protocol.* 사용 금지 (Stub 상속 시에도 namespace Devian 사용)샘플 코드에서 다음 네임스페이스 사용 금지:
Devian.Network.*Devian.Protocol.* (샘플 어셈블리에서 사용 불가 — 3.4.1 참조)Devian.Domain.*Devian.Core.*Devian.Templates.* (샘플 코드 namespace로 사용 금지)Devian.Samples.* (샘플 코드 namespace로 사용 금지 — asmdef name으로만 사용)어셈블리명(asmdef name)은
Devian.Samples.*를 사용하지만, namespace는Devian단일만 사용한다.
framework-cs/upm/com.devian.samples/
├── package.json
├── Samples~/
│ ├── Network/
│ │ ├── Runtime/
│ │ │ ├── [asmdef: Devian.Samples.Network]
│ │ │ └── *.cs
│ │ ├── Editor/
│ │ │ ├── [asmdef: Devian.Samples.Network.Editor]
│ │ │ └── *.cs
│ │ └── README.md
│ └── (다른 템플릿들...)
└── README.md
{upmConfig.packageDir}/com.devian.samples/
Assets/Samples/Devian Templates/{version}/{TemplateName}/
{
"name": "com.devian.samples",
"version": "0.1.0",
"displayName": "Devian Templates",
"description": "Templates for Devian framework.",
"unity": "2021.3",
"samples": [
{
"displayName": "Network",
"description": "WebSocket client template.",
"path": "Samples~/Network"
}
]
}
Devian Templates 패키지 선택Assets/Samples/Devian Samples/0.1.0/Network/
├── README.md
└── Runtime/
├── [asmdef: Devian.Samples.Network]
├── GameNetworkClientSample.cs
├── GameNetworkClient.cs
└── GameNetworkClient_Stub.cs (Game2C.Stub 상속 구현)
Samples~/ 아래에 새 폴더 생성package.json의 samples 배열에 항목 추가skills/devian-unity-samples/에 새 스킬 문서 추가Devian.Network.*/Devian.Protocol.* namespace 코드가 존재partial class *_Handlers 확장 시도 (컴파일 불가)com.devian.samples가 아님xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience