Giter Club home page Giter Club logo

codestyle's Introduction

코드 스타일

  • 코드 스타일 공유를 위해 개인 연구용 프로젝트의 일부 코드를 공유하는 저장소 입니다.
  • 스타일 참조를 위해 코드의 일부만 공유 드립니다. 완전하지 않은 부분 양해 부탁드립니다.

Sections

  • Unity Scene을 1개이상 관리하는 역활을 하는 Class들 입니다.
  • Section Class를 상속 받은 Scene을 관리하는 Class로 부터 각 Scene이 시작
  • Service에서 전달된 Message를 수신하여 필요한 UI혹은 View에 전달하여 화면에 표현할 수 있도록 합니다.

Networks

  • 패킷등 통신대한 구조를 보여주는 Class들 입니다.
  • NetworkService를 상속받는 Service들을 통하여 통신을 진행하고 INetworkProvidor를 통하여 관리됩니다.

Services

  • Network를 통해 전달되는 패킷들을 처리하는 단위를 Service라 명명.
  • 역할별로 (ex.Battle, Room, User등) 구분되어 정의
  • 역할별 패킷 송수신 담당합니다.
  • 수신된 패킷을 기반으로 Processor에서 처리
  • 송수신 데이터는 Entity에 저장
  • 화면에 표현은 MessageQueue를 통하여 Section에 전달하여 View혹은 UI에서 처리합니다.

Processors

  • Service에서 전달된 Packet을 분석하여 Entity에 저장 / 필요에 따라 연산 및 상태 전환등을 담당
  • Section에 Message를 전송하는 경우도 Processor에서 하며 목표는 보통 대응하는 View에게 전달

Views

  • 화면영역에서 발생하는 것들 담당. 작게는 Activate State 변경 및 Animation State 변경등에서 필요에 따른 연들등을 하는 class들
  • ActorView : Animator를 통하여 Animation 상태를 변경할 View들의 부모로 Attribute를 통하여 이벤트를 등록할 수 있습니다.

codestyle's People

Contributors

venzamin avatar venzaminjang avatar venzaminredjack avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.