Package com.nhn.gameanvil.node.game
Interface IGameNode
- All Superinterfaces:
INode
게임 노드의 기본 구조를 가지고 있는 인터페이스
컨텐츠에서 게임 노드를 사용하기 위해서는 해당 클래스를 구현해서 사용해야 한다
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChannelInfo
(IPayload outPayload) 클라이언트에서 채널 정보를 요청시 호출 (Base.GetChannelInfoReq)void
onChannelRoomInfoUpdate
(ChannelUpdateType type, IChannelRoomInfo channelRoomInfo, int roomId) 같은 채널의 다른 노드에 룸 상태 변화가 있을때 호출void
onChannelUserInfoUpdate
(ChannelUpdateType type, IChannelUserInfo channelUserInfo, int userId, String accountId) 같은 채널의 다른 노드에 유저 변화가 있을때 호출void
onCreate
(IGameNodeContext gameNodeContext) 게임 노드 컨텍스트를 전달하기 위해 호출Methods inherited from interface com.nhn.gameanvil.node.INode
onInit, onPause, onPrepare, onReady, onResume, onShuttingdown, onUpdateGameData
-
Method Details
-
onCreate
게임 노드 컨텍스트를 전달하기 위해 호출 객체가 생성된후 한번 호출된다- Parameters:
gameNodeContext
- 게임 노드 컨텍스트
-
onChannelUserInfoUpdate
void onChannelUserInfoUpdate(ChannelUpdateType type, IChannelUserInfo channelUserInfo, int userId, String accountId) 같은 채널의 다른 노드에 유저 변화가 있을때 호출updateChannelUser() 호출시 발생.
- Parameters:
type
- 채널 정보 변경 타입(갱신/삭제) 인ChannelUpdateType
channelUserInfo
- 변경될 유저 정보인IChannelUserInfo
userId
- 변경 대상의 유저 아이디accountId
- 변경 대상의 어카운트 아이디
-
onChannelRoomInfoUpdate
같은 채널의 다른 노드에 룸 상태 변화가 있을때 호출updateChannelRoomInfo() 호출시 발생
- Parameters:
type
- 채널 정보 변경 타입(갱신/삭제)ChannelUpdateType
channelRoomInfo
- 변경될 룸 정보인IChannelRoomInfo
roomId
- 변경 대상의 룸 아이디
-
onChannelInfo
클라이언트에서 채널 정보를 요청시 호출 (Base.GetChannelInfoReq)- Parameters:
outPayload
- 클라이언트로 전달될 채널 정보
-