강의

멘토링

커뮤니티

Inflearn Community Q&A

liu's profile image
liu

asked

[MMORPG Game Development with C++ and Unreal Series] Part 4: Game Server

Object Pool

object에서 staic 함수의 목적이 궁급합니다

Written on

·

247

0

Pop / Push /MakeShared 와 같은 함수들을

static으로 따로 분리하는 이유가 궁금합니다.

windows-serverMMORPGnetwork

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

딱히 중요한 부분은 아니고 그냥 편리하게 사용하기 위해서입니다.
굳이 함수를 static으로 하지 않고,
객체를 싱글턴을 쓰거나 전역 변수를 사용하거나 뭐 다양한 방법이 있을 수 있습니다.

liu's profile image
liu

asked

Ask a question