public void OnResponse_MSG_GC_CREATE_CHARACTER(MemoryStream stream) { MSG_GC_CREATE_CHARACTER MSG_GC_CREATE_CHARACTER = MessagePacker.ProtobufHelper.Deserialize <MSG_GC_CREATE_CHARACTER>(stream); if (MSG_GC_CREATE_CHARACTER.Result == (int)ErrorCode.Success) { Request_MSG_CG_TO_ZONE(MSG_GC_CREATE_CHARACTER.Character.Uid); } else { Log.WriteLine("create charactor fail!"); } }
public void OnResponse_MSG_GC_CREATE_CHARACTER(MemoryStream stream) { MSG_GC_CREATE_CHARACTER MSG_GC_CREATE_CHARACTER = ProtoBuf.Serializer.Deserialize <MSG_GC_CREATE_CHARACTER>(stream); if (MSG_GC_CREATE_CHARACTER.result == (int)ErrorCode.Success) { player.CharInfo = MSG_GC_CREATE_CHARACTER.character; Request_MSG_CG_TO_ZONE(MSG_GC_CREATE_CHARACTER.character.Uid); } else { Log.WriteLine("create charactor fail : errocode {0}", MSG_GC_CREATE_CHARACTER.result); } }