Interface IGameNode

All Superinterfaces:
INode

public interface IGameNode extends INode
게임 노드의 기본 구조를 가지고 있는 인터페이스

컨텐츠에서 게임 노드를 사용하기 위해서는 해당 클래스를 구현해서 사용해야 한다

  • Method Details

    • onCreate

      void onCreate(IGameNodeContext gameNodeContext)
      게임 노드 컨텍스트를 전달하기 위해 호출

      객체가 생성된후 한번 호출된다

      Parameters:
      gameNodeContext - 게임 노드 컨텍스트
    • onChannelUserInfoUpdate

      void onChannelUserInfoUpdate(ChannelUpdateType type, IChannelUserInfo channelUserInfo, int userId, String accountId)
      같은 채널의 다른 노드에 유저 변화가 있을때 호출

      updateChannelUser() 호출시 발생.

      Parameters:
      type - 채널 정보 변경 타입(갱신/삭제) 인 ChannelUpdateType
      channelUserInfo - 변경될 유저 정보인 IChannelUserInfo
      userId - 변경 대상의 유저 아이디
      accountId - 변경 대상의 어카운트 아이디
    • onChannelRoomInfoUpdate

      void onChannelRoomInfoUpdate(ChannelUpdateType type, IChannelRoomInfo channelRoomInfo, int roomId)
      같은 채널의 다른 노드에 룸 상태 변화가 있을때 호출

      updateChannelRoomInfo() 호출시 발생

      Parameters:
      type - 채널 정보 변경 타입(갱신/삭제) ChannelUpdateType
      channelRoomInfo - 변경될 룸 정보인 IChannelRoomInfo
      roomId - 변경 대상의 룸 아이디
    • onChannelInfo

      void onChannelInfo(IPayload outPayload)
      클라이언트에서 채널 정보를 요청시 호출 (Base.GetChannelInfoReq)
      Parameters:
      outPayload - 클라이언트로 전달될 채널 정보