2019. 10. 19. 06:51ㆍ카테고리 없음
# 설명
client Photon방생성 -> Webhook -> ords_Server
# ORDS_SERVER
Webhooks https://doc.photonengine.com/en-us/realtime/current/gameplay/web-extensions/webhooks
Webhooks | Photon Engine
MULTIPLAYER REALTIME PUN BOLT QUANTUM COMMUNICATION CHAT VOICE SELF-HOSTED SERVER We Make Multiplayer Simple Photon Realtime Develop and launch multiplayer games globally whether you are an indie developer or AAA studio. Create synchronous or asynchronous
doc.photonengine.com
데이터를 처리하여 CRUD하게끔 설정.
# 웹훅설정
Photon Dashboard에 접속
WEBHOOK_TEST에 상세정보.
하단 Webhooks 편집
BaseUrl : https://xxx.xxx.xxx
PathCreate : create/room
# MBC_ORDS_RESTFUL API
oracle.cms.etc
경로 -> https://xxx.xxx.xxx/create/room
# 확인쿼리
select id, artist, TO_CHAR(created + INTERVAL '9' hour, 'YYYY:MM:DD HH:MI:SS') as created from TB_xxxx order by created desc ;
# Client - Unity C#
포톤 AppId 셋팅
설정 CustomerProperties 값에 (artist_code , code)
CODE:
roomOptions.CustomRoomProperties = new Hashtable() {};
roomOptions.CustomRoomPropertiesForLobby = new string[] { "CustomRoomProperties에 적용될 모든 key Array" };
EX:
CustomRoomProperties.Add('artist_code' 9000);
CustomRoomProperties.Add('prop_other', 'testValue');
CustomRoomPropertiesForLobby = new string[] { 'artist_code', 'prop_other' }
# 상용 적용시
1. PUN APPID 셋팅 (Client)
2. PHOTON WEBHOOK dashboard에서 상용 도메인주소 적용