MetaverseCapstone / 2024Capstone

0 stars 0 forks source link

[ProtocolConverter] Convert Protocol to schema #27

Closed Park-junseo closed 6 months ago

Park-junseo commented 6 months ago

스키마 프로토콜 읽기 재정의

AssetCreateScheam: .CastEmpty() .CastAnyFromProperty(objData, nameof(ObjectData.ast_id)) .CastAnyFromProperty(objData, nameof(ObjectData.obj_id)) .CastVector(objData.transform.position) .CastVector(objData.transform.rotation) .CastVector(objData.transform.scale) .CastAnyFromProperty(objData, nameof(ObjectData.type)) .CastAnyFromProperty(objData, nameof(ObjectData.isMeshCollider)) .CastAnyFromProperty(objData, nameof(ObjectData.isMeshCollider));

MapChangeSchema: .CastEmpty().CastInt32(ref map_id);

PlayerJoinSchema: .CastString(ref joinPlayerId) .CastString(ref joinPlayerNickname);

PlayerLeaveSchema: .CastString(ref leavePlayerId);

PlayerMoveSchema: .CastString(ref movePlayerId) .CastVector(ref movePosition) .CastVector(ref moveRotation);